mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-25 22:30:52 +00:00
Merge pull request #4081 from donaldsharp/rnh_reorder
zebra: Make rnh only send response once on first registration
This commit is contained in:
commit
f765a2ff8e
@ -1107,11 +1107,12 @@ static void zread_rnh_register(ZAPI_HANDLER_ARGS)
|
|||||||
if (orig_flags != rnh->flags)
|
if (orig_flags != rnh->flags)
|
||||||
flag_changed = true;
|
flag_changed = true;
|
||||||
|
|
||||||
zebra_add_rnh_client(rnh, client, type, zvrf_id(zvrf));
|
|
||||||
/* Anything not AF_INET/INET6 has been filtered out above */
|
/* Anything not AF_INET/INET6 has been filtered out above */
|
||||||
if (!exist || flag_changed)
|
if (!exist || flag_changed)
|
||||||
zebra_evaluate_rnh(zvrf, family2afi(p.family), 1, type,
|
zebra_evaluate_rnh(zvrf, family2afi(p.family), 1, type,
|
||||||
&p);
|
&p);
|
||||||
|
|
||||||
|
zebra_add_rnh_client(rnh, client, type, zvrf_id(zvrf));
|
||||||
}
|
}
|
||||||
|
|
||||||
stream_failure:
|
stream_failure:
|
||||||
|
Loading…
Reference in New Issue
Block a user