diff options
author | brian <brian@FreeBSD.org> | 2000-08-14 08:43:40 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-08-14 08:43:40 +0000 |
commit | b6a0e38086413b5b8471128a7d3c0f63e18ee841 (patch) | |
tree | 4f929cf55c2c98cebb759f4975a2afa43b440523 /usr.sbin/ppp | |
parent | 4b4bbbe11c74910b8fefdf840a3d40eada2518f2 (diff) | |
download | FreeBSD-src-b6a0e38086413b5b8471128a7d3c0f63e18ee841.zip FreeBSD-src-b6a0e38086413b5b8471128a7d3c0f63e18ee841.tar.gz |
Don't delete sticky routes when unconfiguring the interface.
Deleting all routes that match the interface is sufficient.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/ipcp.c | 2 | ||||
-rw-r--r-- | usr.sbin/ppp/route.c | 12 |
2 files changed, 0 insertions, 14 deletions
diff --git a/usr.sbin/ppp/ipcp.c b/usr.sbin/ppp/ipcp.c index 2fafac1..fc05447 100644 --- a/usr.sbin/ppp/ipcp.c +++ b/usr.sbin/ppp/ipcp.c @@ -924,8 +924,6 @@ ipcp_CleanInterface(struct ipcp *ipcp) { struct iface *iface = ipcp->fsm.bundle->iface; - route_Clean(ipcp->fsm.bundle, ipcp->route); - if (iface->in_addrs && (Enabled(ipcp->fsm.bundle, OPT_PROXY) || Enabled(ipcp->fsm.bundle, OPT_PROXYALL))) { int s = ID0socket(AF_INET, SOCK_DGRAM, 0); diff --git a/usr.sbin/ppp/route.c b/usr.sbin/ppp/route.c index 6a9b3ba..d820e96 100644 --- a/usr.sbin/ppp/route.c +++ b/usr.sbin/ppp/route.c @@ -570,18 +570,6 @@ route_Change(struct bundle *bundle, struct sticky_route *r, } void -route_Clean(struct bundle *bundle, struct sticky_route *r) -{ - struct in_addr none, del; - - none.s_addr = INADDR_ANY; - for (; r; r = r->next) { - del.s_addr = r->dst.s_addr & r->mask.s_addr; - bundle_SetRoute(bundle, RTM_DELETE, del, none, none, 1, 0); - } -} - -void route_Add(struct sticky_route **rp, int type, struct in_addr dst, struct in_addr mask, struct in_addr gw) { |