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.

61 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../pptpd/pptpd-1.3.4-pptpctrl-remotenumber.patch
  5. # Copyright (C) 2011 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. From f8f1373c079c9108b283255d39c0ccc083174b4f Mon Sep 17 00:00:00 2001
  17. From: Christian Wiese <christian.wiese@securepoint.de>
  18. Date: Wed, 24 Aug 2011 13:37:13 +0200
  19. Subject: [PATCH] pptpctrl: changed to call pppd with remotenumber command line argument
  20. Note:
  21. This will workaround a problem when using the RADIUS plugin in pppd, it send
  22. Caller-Station-ID attribuse to radius server, but pppd needs to know remote
  23. user IP.
  24. Origin: http://patch-tracker.debian.org/patch/misc/dl/pptpd/1.3.4-5/pptpctrl.c
  25. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=610375
  26. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=625459
  27. ---
  28. pptpctrl.c | 5 ++++-
  29. 1 files changed, 4 insertions(+), 1 deletions(-)
  30. diff --git pptpd-1.3.4.orig/pptpctrl.c 1.3.4/pptpctrl.c
  31. index b4e52dc..480827b 100644
  32. --- pptpd-1.3.4.orig/pptpctrl.c
  33. +++ 1.3.4/pptpctrl.c
  34. @@ -657,7 +657,7 @@ static int startCall(char **pppaddrs, struct in_addr *inetaddrs)
  35. */
  36. static void launch_pppd(char **pppaddrs, struct in_addr *inetaddrs)
  37. {
  38. - char *pppd_argv[14];
  39. + char *pppd_argv[16];
  40. int an = 0;
  41. sigset_t sigs;
  42. @@ -777,6 +777,9 @@ static void launch_pppd(char **pppaddrs, struct in_addr *inetaddrs)
  43. pppd_argv[an++] = "pptpd-original-ip";
  44. pppd_argv[an++] = inet_ntoa(inetaddrs[1]);
  45. }
  46. +
  47. + pppd_argv[an++] = "remotenumber";
  48. + pppd_argv[an++] = inet_ntoa(inetaddrs[1]);
  49. /* argv arrays must always be NULL terminated */
  50. pppd_argv[an++] = NULL;
  51. --
  52. 1.6.6.2