]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: fix kernel-route's deletion on vrf
authorHiroki Shirokura <slank.dev@gmail.com>
Wed, 18 Dec 2019 09:05:59 +0000 (18:05 +0900)
committerHiroki Shirokura <hiroki.shirokura@linecorp.com>
Mon, 23 Dec 2019 06:25:12 +0000 (15:25 +0900)
commit760f39dc082c6739d342225cd71863ada9471a87
treecd8d5928e7bf79477635d2ed083b55896d51727f
parent7655aa34c9d81c72e4d523d1c8bd959d8e6c43d9
zebra: fix kernel-route's deletion on vrf

zebra can catch the kernel's route deletion by netlink.
but current FRR can't delete kernel-route on vrf(l3mdev)
when kernel operator delete the route on out-side of FRR.
It looks problem about kernel-route deletion.

This problem is caused around _nexthop_cmp_no_labels(nh1,nh2)
that checks the each nexthop's member 'vrf_id'.
And _nexthop_cmp_no_labels's caller doesn't set the vrf_id
of nexthop structure. This commit fix that case.

Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
zebra/rt_netlink.c