zebra: notify nht client about protocol type change

The protocol type is of interest to NHT clients. Comparea the
field for changes.

Signed-off-by: Enke Chen <enchen@paloaltonetworks.com>
This commit is contained in:
Enke Chen 2024-10-14 22:39:58 -07:00
parent d1433ee9a8
commit 0aa2408323

View file

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