X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fipcp.c;h=aeac233bf816e1d60448dc0d15cb0cb01da41c67;hb=10d17d19d3f7fe61e3b1f46a97198c521b535589;hp=d928c9f4946738a3685987c7ecd063c376b8f361;hpb=f8d4251d802e4441927b1a33680f172cbb0fc41b;p=ppp.git diff --git a/pppd/ipcp.c b/pppd/ipcp.c index d928c9f..aeac233 100644 --- a/pppd/ipcp.c +++ b/pppd/ipcp.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: ipcp.c,v 1.45 1999/05/04 06:57:27 paulus Exp $"; +static char rcsid[] = "$Id: ipcp.c,v 1.46 1999/05/13 00:35:23 paulus Exp $"; #endif /* @@ -1524,8 +1524,9 @@ ipcp_down(f) fsm *f; { IPCPDEBUG(("ipcp: down")); - if (get_ppp_stats(f->unit, &link_stats)) - link_stats_valid = 1; + /* XXX a bit IPv4-centric here, we only need to get the stats + * before the interface is marked down. */ + update_link_stats(f->unit); if (ipcp_is_up) { ipcp_is_up = 0; np_down(f->unit, PPP_IP);