405-no_multilink_option.patch 1.1 KB

12345678910111213141516171819202122232425262728
  1. pppd: Support "nomp" option even if multilink support is off
  2. This patch moves the "nomp" option entry outside of the defines protecting
  3. the multilink specific code. The motivation is to allow "nomp" even if pppd
  4. does not support multilink, so that controlling programs can unconditionally
  5. pass it to pppd regardless of the compile time features.
  6. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
  7. --- a/pppd/options.c
  8. +++ b/pppd/options.c
  9. @@ -336,13 +336,14 @@ option_t general_options[] = {
  10. "Enable multilink operation", OPT_PRIOSUB | OPT_ALIAS | 1 },
  11. { "nomultilink", o_bool, &multilink,
  12. "Disable multilink operation", OPT_PRIOSUB | 0 },
  13. - { "nomp", o_bool, &multilink,
  14. - "Disable multilink operation", OPT_PRIOSUB | OPT_ALIAS | 0 },
  15. { "bundle", o_string, &bundle_name,
  16. "Bundle name for multilink", OPT_PRIO },
  17. #endif /* HAVE_MULTILINK */
  18. + { "nomp", o_bool, &multilink,
  19. + "Disable multilink operation", OPT_PRIOSUB | OPT_ALIAS | 0 },
  20. +
  21. #ifdef PLUGIN
  22. { "plugin", o_special, (void *)loadplugin,
  23. "Load a plug-in module into pppd", OPT_PRIV | OPT_A2LIST },