pppd: support the nomp option if multilink support is disabled
[openwrt/svn-archive/archive.git] / package / ppp / patches / 405-no_multilink_option.patch
1 --- a/pppd/options.c
2 +++ b/pppd/options.c
3 @@ -309,13 +309,14 @@ option_t general_options[] = {
4 "Enable multilink operation", OPT_PRIOSUB | OPT_ALIAS | 1 },
5 { "nomultilink", o_bool, &multilink,
6 "Disable multilink operation", OPT_PRIOSUB | 0 },
7 - { "nomp", o_bool, &multilink,
8 - "Disable multilink operation", OPT_PRIOSUB | OPT_ALIAS | 0 },
9
10 { "bundle", o_string, &bundle_name,
11 "Bundle name for multilink", OPT_PRIO },
12 #endif /* HAVE_MULTILINK */
13
14 + { "nomp", o_bool, &multilink,
15 + "Disable multilink operation", OPT_PRIOSUB | OPT_ALIAS | 0 },
16 +
17 #ifdef PLUGIN
18 { "plugin", o_special, (void *)loadplugin,
19 "Load a plug-in module into pppd", OPT_PRIV | OPT_A2LIST },