X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fipcp.c;h=112def979666ec79395711d8b2965022b1d0c9b4;hp=abeae25b4d1cc5fde77b30228669406980ce8ada;hb=d999c23548f44ff477c29d66eda18e1c787ecbe9;hpb=a97eec109848f7812daa7cddaa12d37b741884f5 diff --git a/pppd/ipcp.c b/pppd/ipcp.c index abeae25..112def9 100644 --- a/pppd/ipcp.c +++ b/pppd/ipcp.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: ipcp.c,v 1.16 1995/04/26 06:46:50 paulus Exp $"; +static char rcsid[] = "$Id: ipcp.c,v 1.19 1995/06/01 01:30:38 paulus Exp $"; #endif /* @@ -575,12 +575,13 @@ ipcp_nakci(f, p, len) case CI_ADDR: if (go->neg_addr || no.neg_addr || cilen != CILEN_ADDR) goto bad; - try.neg_addr = 1; try.old_addrs = 0; GETLONG(l, p); ciaddr1 = htonl(l); if (ciaddr1 && go->accept_local) try.ouraddr = ciaddr1; + if (try.ouraddr != 0) + try.neg_addr = 1; no.neg_addr = 1; break; default: @@ -783,6 +784,7 @@ ipcp_reqci(f, inp, len, reject_if_disagree) * If neither we nor he knows his address, reject the option. */ orc = CONFREJ; + wo->req_addr = 0; /* don't NAK with 0.0.0.0 later */ break; } @@ -843,6 +845,7 @@ ipcp_reqci(f, inp, len, reject_if_disagree) * Don't ACK an address of 0.0.0.0 - reject it instead. */ orc = CONFREJ; + wo->req_addr = 0; /* don't NAK with 0.0.0.0 later */ break; } @@ -886,7 +889,7 @@ ipcp_reqci(f, inp, len, reject_if_disagree) } } ho->maxslotindex = maxslotindex; - ho->cflag = wo->cflag; + ho->cflag = cflag; } else { ho->old_vj = 1; ho->maxslotindex = MAX_STATES - 1;