Skip to content

Commit

Permalink
staticd: Fix src-dest route not installed
Browse files Browse the repository at this point in the history
Process IPv6 src-dest routes on nht update, otherwise they are not
installed:

    (config)# ipv6 route 1::1/128 from 2::2/128 fe80::1 eth0

Signed-off-by: Xiao Liang <[email protected]>
  • Loading branch information
leonshaw committed Aug 29, 2024
1 parent 61721d4 commit ef6fd77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions staticd/static_nht.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static void static_nht_update_safi(struct prefix *sp, struct prefix *nhp,
return;
}

for (rn = route_top(stable); rn; rn = route_next(rn)) {
for (rn = route_top(stable); rn; rn = srcdest_route_next(rn)) {
si = static_route_info_from_rnode(rn);
if (!si)
continue;
Expand Down Expand Up @@ -106,7 +106,7 @@ static void static_nht_reset_start_safi(struct prefix *nhp, afi_t afi,
if (!stable)
return;

for (rn = route_top(stable); rn; rn = route_next(rn)) {
for (rn = route_top(stable); rn; rn = srcdest_route_next(rn)) {
si = static_route_info_from_rnode(rn);
if (!si)
continue;
Expand Down

0 comments on commit ef6fd77

Please sign in to comment.