Skip to content

Commit

Permalink
zebra: notify nht client about protocol type change
Browse files Browse the repository at this point in the history
The protocol type is of interest to NHT clients. Comparea the
field for changes.

Signed-off-by: Enke Chen <[email protected]>
  • Loading branch information
enkechen-panw committed Oct 15, 2024
1 parent d1433ee commit 0aa2408
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zebra/zebra_rnh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1123,6 +1123,9 @@ static bool compare_state(struct route_entry *r1,
if ((!r1 && r2) || (r1 && !r2))
return true;

if (r1->type != r2->type)
return true;

if (r1->distance != r2->distance)
return true;

Expand Down

0 comments on commit 0aa2408

Please sign in to comment.