Lines 1-15
Link Here
|
1 |
--- pptpctrl.c.orig Mon Jan 24 23:04:13 2005 |
1 |
--- pptpctrl.c.orig Fri Dec 8 01:01:40 2006 |
2 |
+++ pptpctrl.c Sat May 6 12:48:55 2006 |
2 |
+++ pptpctrl.c Tue Jul 31 07:56:19 2007 |
3 |
@@ -742,7 +742,6 @@ |
3 |
@@ -150,8 +150,13 @@ |
|
|
4 |
syslog(LOG_DEBUG, "CTRL: remote address = %s", pppRemote); |
5 |
if (*speed) |
6 |
syslog(LOG_DEBUG, "CTRL: pppd speed = %s", speed); |
7 |
+#if BSDUSER_PPP |
8 |
+ if (*pppdxfig) |
9 |
+ syslog(LOG_DEBUG, "CTRL: BSD userland ppp system label = %s", pppdxfig); |
10 |
+#else |
11 |
if (*pppdxfig) |
12 |
syslog(LOG_DEBUG, "CTRL: pppd options file = %s", pppdxfig); |
13 |
+#endif |
14 |
} |
15 |
|
16 |
addrlen = sizeof(addr); |
17 |
@@ -693,14 +698,19 @@ |
18 |
|
19 |
/* options for BSDUSER_PPP |
20 |
* |
21 |
- * ignores IP addresses, config file option, speed |
22 |
- * fix usage info in pptpd.c and configure script if this changes |
23 |
+ * Ignore IP addresses and line speed |
24 |
+ * Use -o or --option string as PPP system label |
25 |
+ * Usage info in pptpd.c and configure script have been updated to |
26 |
+ * reflect this change |
27 |
* |
28 |
* IP addresses can be specified in /etc/ppp/ppp.secret per user |
29 |
*/ |
30 |
pppd_argv[an++] = "-direct"; |
31 |
- pppd_argv[an++] = "pptp"; /* XXX this is the system name */ |
32 |
- /* should be dynamic - PMG */ |
33 |
+ if (*pppdxfig) { |
34 |
+ pppd_argv[an++] = pppdxfig; |
35 |
+ } else { |
36 |
+ pppd_argv[an++] = "pptp"; /* XXX this is the system label */ |
37 |
+ } |
38 |
|
39 |
#elif SLIRP |
40 |
|
41 |
@@ -764,7 +774,6 @@ |
4 |
sprintf(pppInterfaceIPs, "%s:%s", pppaddrs[0], pppaddrs[1]); |
42 |
sprintf(pppInterfaceIPs, "%s:%s", pppaddrs[0], pppaddrs[1]); |
5 |
pppd_argv[an++] = pppInterfaceIPs; |
43 |
pppd_argv[an++] = pppInterfaceIPs; |
6 |
} |
44 |
} |
7 |
-#endif |
45 |
-#endif |
8 |
|
46 |
|
9 |
if (!noipparam) { |
47 |
if (!noipparam) { |
10 |
pppd_argv[an++] = "ipparam"; |
48 |
pppd_argv[an++] = "ipparam"; |
11 |
@@ -751,10 +750,11 @@ |
49 |
@@ -773,10 +782,12 @@ |
12 |
|
50 |
|
13 |
if (pptp_logwtmp) { |
51 |
if (pptp_logwtmp) { |
14 |
pppd_argv[an++] = "plugin"; |
52 |
pppd_argv[an++] = "plugin"; |
15 |
- pppd_argv[an++] = "/usr/lib/pptpd/pptpd-logwtmp.so"; |
53 |
- pppd_argv[an++] = "/usr/lib/pptpd/pptpd-logwtmp.so"; |
Lines 17-23
Link Here
|
17 |
pppd_argv[an++] = "pptpd-original-ip"; |
55 |
pppd_argv[an++] = "pptpd-original-ip"; |
18 |
pppd_argv[an++] = inet_ntoa(inetaddrs[1]); |
56 |
pppd_argv[an++] = inet_ntoa(inetaddrs[1]); |
19 |
} |
57 |
} |
|
|
58 |
+ |
20 |
+#endif |
59 |
+#endif |
21 |
|
60 |
|
22 |
/* argv arrays must always be NULL terminated */ |
61 |
/* argv arrays must always be NULL terminated */ |
23 |
pppd_argv[an++] = NULL; |
62 |
pppd_argv[an++] = NULL; |