]> git.pld-linux.org Git - packages/ppp.git/blame - ppp-static.patch
- updated to 2.4.6
[packages/ppp.git] / ppp-static.patch
CommitLineData
9113567e 1--- ppp-2.3.7/pppd/ipcp.c Fri Mar 19 05:22:51 1999
2+++ ppp-2.3.7.new/pppd/ipcp.c Wed Apr 28 20:24:32 1999
3@@ -218,6 +218,13 @@
4 static pid_t ipcp_script_pid;
5
6 /*
7+ * Added to allow static and dynamic ip(s)
8+ * Hold the static address from pap-secrets
9+ */
10+u_int32_t staticaddr;
11+/******************************************/
12+
13+/*
14 * Make a string representation of a network IP address.
15 */
16 char *
17@@ -1055,6 +1062,15 @@
18 orc = CONFNAK;
19 if (!reject_if_disagree) {
20 DECPTR(sizeof(u_int32_t), p);
21+
22+ /*
23+ * Added to allow static and dynamic ip(s)
24+ * Are they asking for their static ip from pap-secrets?
25+ */
26+ if(ciaddr1 !=0 && ciaddr1 == staticaddr)
27+ wo->hisaddr = staticaddr; /* Let them use the static ip */
28+ /*******************************************/
29+
30 tl = ntohl(wo->hisaddr);
31 PUTLONG(tl, p);
32 }
33@@ -1078,6 +1094,15 @@
34 orc = CONFNAK;
35 if (!reject_if_disagree) {
36 DECPTR(sizeof(u_int32_t), p);
37+
38+ /*
39+ * Added to allow static and dynamic ip(s)
40+ * Are they asking for their static ip from pap-secrets?
41+ */
42+ if(ciaddr1 !=0 && ciaddr1 == staticaddr)
43+ wo->hisaddr = staticaddr; /* Let them use the static ip */
44+ /*******************************************/
45+
46 tl = ntohl(wo->ouraddr);
47 PUTLONG(tl, p);
48 }
49--- ppp-2.3.7/pppd/ipcp.h Tue Mar 2 06:34:34 1999
50+++ ppp-2.3.7.new/pppd/ipcp.h Wed Apr 28 20:27:15 1999
51@@ -70,4 +70,10 @@
52
53 char *ip_ntoa __P((u_int32_t));
54
55+/* Added to allow static and dynamic ip(s).
56+ * Holds the static ip from pap-secrets
57+ */
624ed3e4 58+extern u_int32_t staticaddr;
9113567e 59+/******************************************/
60+
61 extern struct protent ipcp_protent;
This page took 0.03521 seconds and 4 git commands to generate.