From 99a3ab5f04908b4dee1a3a67d353569d821fa441 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 9 Jul 2008 14:36:46 -0700 Subject: Rescan for next hops after static route change Bugfix 3433, 3434 Need to rescan for recursive routes after any change to static route. --- zebra/zebra_rib.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'zebra/zebra_rib.c') diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 5acb644d..2b120120 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -2173,6 +2173,9 @@ static_add_ipv4 (struct prefix *p, struct in_addr *gate, const char *ifname, /* Install into rib. */ static_install_ipv4 (p, si); + /* Scan for possible recursive route changes */ + rib_update(); + return 1; } @@ -2237,6 +2240,9 @@ static_delete_ipv4 (struct prefix *p, struct in_addr *gate, const char *ifname, route_unlock_node (rn); + /* Scan for possible recursive route changes */ + rib_update(); + return 1; } @@ -2719,6 +2725,8 @@ static_add_ipv6 (struct prefix *p, u_char type, struct in6_addr *gate, /* Install into rib. */ static_install_ipv6 (p, si); + /* Scan for possible recursive route changes */ + rib_update(); return 1; } @@ -2772,6 +2780,7 @@ static_delete_ipv6 (struct prefix *p, u_char type, struct in6_addr *gate, XFREE (0, si->ifname); XFREE (MTYPE_STATIC_IPV6, si); + rib_update(); return 1; } #endif /* HAVE_IPV6 */ -- cgit v1.2.3