diff options
Diffstat (limited to 'usr.sbin/ppp/route.c')
-rw-r--r-- | usr.sbin/ppp/route.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/ppp/route.c b/usr.sbin/ppp/route.c index 7f70efb7bd538..a80204d1be25f 100644 --- a/usr.sbin/ppp/route.c +++ b/usr.sbin/ppp/route.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: route.c,v 1.53 1998/08/17 06:42:40 brian Exp $ + * $Id: route.c,v 1.52 1998/07/28 21:54:54 brian Exp $ * */ @@ -61,7 +61,6 @@ #include "bundle.h" #include "route.h" #include "prompt.h" -#include "iface.h" static void p_sockaddr(struct prompt *prompt, struct sockaddr *phost, @@ -362,7 +361,7 @@ route_IfDelete(struct bundle *bundle, int all) char *sp, *cp, *ep; int mib[6]; - log_Printf(LogDEBUG, "route_IfDelete (%d)\n", bundle->iface->index); + log_Printf(LogDEBUG, "route_IfDelete (%d)\n", bundle->ifp.Index); sa_none.s_addr = INADDR_ANY; mib[0] = CTL_NET; @@ -408,7 +407,7 @@ route_IfDelete(struct bundle *bundle, int all) Index2Nam(rtm->rtm_index), rtm->rtm_flags, inet_ntoa(((struct sockaddr_in *) sa)->sin_addr)); if (rtm->rtm_addrs & RTA_DST && rtm->rtm_addrs & RTA_GATEWAY && - rtm->rtm_index == bundle->iface->index && + rtm->rtm_index == bundle->ifp.Index && (all || (rtm->rtm_flags & RTF_GATEWAY))) { sa_dst.s_addr = ((struct sockaddr_in *)sa)->sin_addr.s_addr; sa = (struct sockaddr *)((char *)sa + sa->sa_len); |