X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=pppd%2Fipcp.c;h=41eabd2192ed0363394a5bc6e611ec80d43dff2f;hb=5ba9d88b943e9d5a3ababdadf1d2e246581dfdc6;hp=a0956d9903884a52b5d352daa978d7d1062d3658;hpb=1e7bc3ea35208555bf233daacee9d85ded13f999;p=ppp.git diff --git a/pppd/ipcp.c b/pppd/ipcp.c index a0956d9..41eabd2 100644 --- a/pppd/ipcp.c +++ b/pppd/ipcp.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: ipcp.c,v 1.41 1999/03/16 22:54:38 paulus Exp $"; +static char rcsid[] = "$Id: ipcp.c,v 1.43 1999/03/19 04:23:39 paulus Exp $"; #endif /* @@ -848,12 +848,9 @@ ipcp_nakci(f, p, len) p = next; } - /* If there is still anything left, this packet is bad. */ - if (len != 0) - goto bad; - /* * OK, the Nak is good. Now we can update state. + * If there are any remaining options, we ignore them. */ if (f->state != OPENED) *go = try; @@ -1523,6 +1520,8 @@ ipcp_down(f) fsm *f; { IPCPDEBUG(("ipcp: down")); + if (get_ppp_stats(f->unit, &link_stats)) + link_stats_valid = 1; if (ipcp_is_up) { ipcp_is_up = 0; np_down(f->unit, PPP_IP);