mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-26 23:23:35 +00:00
babeld: Do not remove route when replacing
When sending down a babel route do not remove then add it back. Just send down the change. This change will not cause packets to be dropped now. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
b4c88abe9f
commit
63e2c092a3
@ -92,13 +92,9 @@ kernel_route(enum babel_kernel_routes operation, const unsigned char *pref,
|
|||||||
case ROUTE_MODIFY:
|
case ROUTE_MODIFY:
|
||||||
if(newmetric == metric && memcmp(newgate, gate, 16) == 0 &&
|
if(newmetric == metric && memcmp(newgate, gate, 16) == 0 &&
|
||||||
newifindex == ifindex)
|
newifindex == ifindex)
|
||||||
return 0;
|
return 0;
|
||||||
debugf(BABEL_DEBUG_ROUTE, "Modify route: delete old; add new.");
|
|
||||||
rc = zebra_route(0, family, pref, plen, gate, ifindex, metric);
|
|
||||||
if (rc < 0)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
rc = zebra_route(1, family, pref, plen, newgate, newifindex,
|
rc = zebra_route(1, family, pref, plen, newgate, newifindex,
|
||||||
newmetric);
|
newmetric);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user