1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

Don't delete sticky routes when unconfiguring the interface.

Deleting all routes that match the interface is sufficient.
This commit is contained in:
Brian Somers 2000-08-14 08:43:40 +00:00
parent 64145a4abe
commit c837ca39c6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64637
2 changed files with 0 additions and 14 deletions

View File

@ -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);

View File

@ -569,18 +569,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)