Always add! all sticky routes in route_Change so that

``set mode ddial'' followed by ``set mode auto'' removes
and re-adds all routes as expected.
This commit is contained in:
Brian Somers 1998-05-16 21:19:00 +00:00
parent dd0645c5b7
commit b102f4bc26
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/cvs2svn/branches/MP/; revision=36104

View file

@ -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.42.2.23 1998/05/06 00:38:55 brian Exp $
* $Id: route.c,v 1.42.2.24 1998/05/06 23:50:19 brian Exp $
*
*/
@ -457,8 +457,6 @@ route_Change(struct bundle *bundle, struct sticky_route *r,
r->gw = peer;
} else if ((r->type & ROUTE_GWHISADDR) && r->gw.s_addr != peer.s_addr)
r->gw = peer;
else
continue;
bundle_SetRoute(bundle, RTM_ADD, r->dst, r->gw, r->mask, 1);
}
}