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
4 static pid_t ipcp_script_pid;
7 + * Added to allow static and dynamic ip(s)
8 + * Hold the static address from pap-secrets
10 +u_int32_t staticaddr;
11 +/******************************************/
14 * Make a string representation of a network IP address.
17 @@ -1055,6 +1062,15 @@
19 if (!reject_if_disagree) {
20 DECPTR(sizeof(u_int32_t), p);
23 + * Added to allow static and dynamic ip(s)
24 + * Are they asking for their static ip from pap-secrets?
26 + if(ciaddr1 !=0 && ciaddr1 == staticaddr)
27 + wo->hisaddr = staticaddr; /* Let them use the static ip */
28 + /*******************************************/
30 tl = ntohl(wo->hisaddr);
33 @@ -1078,6 +1094,15 @@
35 if (!reject_if_disagree) {
36 DECPTR(sizeof(u_int32_t), p);
39 + * Added to allow static and dynamic ip(s)
40 + * Are they asking for their static ip from pap-secrets?
42 + if(ciaddr1 !=0 && ciaddr1 == staticaddr)
43 + wo->hisaddr = staticaddr; /* Let them use the static ip */
44 + /*******************************************/
46 tl = ntohl(wo->ouraddr);
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
53 char *ip_ntoa __P((u_int32_t));
55 +/* Added to allow static and dynamic ip(s).
56 + * Holds the static ip from pap-secrets
58 +u_int32_t staticaddr;
59 +/******************************************/
61 extern struct protent ipcp_protent;