OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../openl2tp/openl2tp-ppp_setup_timer_with_norpc.patch
  5. # Copyright (C) 2012 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. When building without L2TP_FEATURE_RPC_MANAGEMENT ppp setup timer, that is
  17. created in plugins/ppp_unix.c:1222, always expire. The only code path that
  18. deactivates it is triggered by openl2tp.so pppd plugin hook. This plugging
  19. doesn't seem to contain any RPC code now and use unix socket to communicate
  20. with opel2tpd and trigger l2tp_session_ppp_updown_ind that calls
  21. ppp_unix_session_ppp_created_hook to stop ppp setup timer. Uncommenting this
  22. plugin loading makes non-rpc version usable.
  23. Patch URL: http://sourceforge.net/tracker/download.php?group_id=118353&atid=680935&file_id=397349&aid=3149171
  24. Patch Reference: http://sourceforge.net/tracker/?func=detail&aid=3149171&group_id=118353&atid=680935
  25. plugins/ppp_unix.c | 2 --
  26. 1 files changed, 0 insertions(+), 2 deletions(-)
  27. diff --git a/plugins/ppp_unix.c b/plugins/ppp_unix.c
  28. index 869066f..6e1b60b 100644
  29. --- a/plugins/ppp_unix.c
  30. +++ b/plugins/ppp_unix.c
  31. @@ -892,11 +892,9 @@ static int ppp_unix_pppd_spawn(struct ppp_context *ppp)
  32. argv[arg++] = "plugin";
  33. argv[arg++] = "pppol2tp.so";
  34. -#ifdef L2TP_FEATURE_RPC_MANAGEMENT
  35. /* This plugin requires pppol2tp.so to be loaded first */
  36. argv[arg++] = "plugin";
  37. argv[arg++] = "openl2tp.so";
  38. -#endif
  39. if (!ppp_unix_use_dummy_pppd()) {
  40. int flags;