1
--- ppp-2.4.0b4.orig/pppd/ipcp.c
2
+++ ppp-2.4.0b4/pppd/ipcp.c
4
#define CILEN_ADDR 6 /* new-style single address option */
5
#define CILEN_ADDRS 10 /* old-style dual address option */
8
+ * Added to allow static and dynamic ips(s)
9
+ * Hold the static address from pap-secrets
11
+u_int32_t staticaddr;
12
+/******************************************/
15
#define CODENAME(x) ((x) == CONFACK ? "ACK" : \
16
(x) == CONFNAK ? "NAK" : "REJ")
17
@@ -1263,6 +1270,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);