030bc39c35
Upstream integrated multiple patches from Distributions and did other changes: * rp-pppoe.so was renamed to pppoe.so * Converted to ANSI C The following patches were applied upstream: * 100-debian_ip-ip_option.patch * 101-debian_close_dev_ppp.patch * 103-debian_fix_link_pidfile.patch * 106-debian_stripMSdomain.patch * 107-debian_pppoatm_wildcard.patch * 110-debian_defaultroute.patch * 202-no_strip.patch Compilation with musl libc was fixed upstream so 140-pppoe_compile_fix.patch is not needed any more Parts of the 203-opt_flags.patch patch were applied in a different way upstream. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
pppd: Support "nomp" option even if multilink support is off
|
|
|
|
This patch moves the "nomp" option entry outside of the defines protecting
|
|
the multilink specific code. The motivation is to allow "nomp" even if pppd
|
|
does not support multilink, so that controlling programs can unconditionally
|
|
pass it to pppd regardless of the compile time features.
|
|
|
|
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
|
|
|
|
--- a/pppd/options.c
|
|
+++ b/pppd/options.c
|
|
@@ -348,13 +348,14 @@ option_t general_options[] = {
|
|
"Enable multilink operation", OPT_PRIOSUB | OPT_ALIAS | 1 },
|
|
{ "nomultilink", o_bool, &multilink,
|
|
"Disable multilink operation", OPT_PRIOSUB | 0 },
|
|
- { "nomp", o_bool, &multilink,
|
|
- "Disable multilink operation", OPT_PRIOSUB | OPT_ALIAS | 0 },
|
|
|
|
{ "bundle", o_string, &bundle_name,
|
|
"Bundle name for multilink", OPT_PRIO },
|
|
#endif /* HAVE_MULTILINK */
|
|
|
|
+ { "nomp", o_bool, &multilink,
|
|
+ "Disable multilink operation", OPT_PRIOSUB | OPT_ALIAS | 0 },
|
|
+
|
|
#ifdef PLUGIN
|
|
{ "plugin", o_special, (void *)loadplugin,
|
|
"Load a plug-in module into pppd", OPT_PRIV | OPT_A2LIST },
|