diff options
author | Matthieu Boutier <boutier@pps.univ-paris-diderot.fr> | 2017-05-24 11:45:47 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-25 01:38:33 +0200 |
commit | e4d9c77198db018dff0f212fbefe317b0ccc4c74 (patch) | |
tree | b09b5e39729ff0339e0c9071bb032b13e753d842 /babeld | |
parent | babeld: Tell zebra to send us stuff about the default vrf (diff) | |
download | frr-e4d9c77198db018dff0f212fbefe317b0ccc4c74.tar.xz frr-e4d9c77198db018dff0f212fbefe317b0ccc4c74.zip |
babeld: Fix VRF for zebra route messages.
Signed-off-by: Matthieu Boutier <boutier@pps.univ-paris-diderot.fr>
Diffstat (limited to 'babeld')
-rw-r--r-- | babeld/kernel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/babeld/kernel.c b/babeld/kernel.c index a0c21833b..fc292d6f9 100644 --- a/babeld/kernel.c +++ b/babeld/kernel.c @@ -160,10 +160,12 @@ kernel_route_v4(int add, quagga_prefix.prefixlen = plen - 96; /* our plen is for v4mapped's addr */ apply_mask_ipv4(&quagga_prefix); + memset(&api, 0, sizeof(api)); api.type = ZEBRA_ROUTE_BABEL; api.flags = 0; api.message = 0; api.safi = SAFI_UNICAST; + api.vrf_id = VRF_DEFAULT; /* Unlike the native Linux and BSD interfaces, Quagga doesn't like there to be both and IPv4 nexthop and an ifindex. Omit the @@ -212,10 +214,13 @@ kernel_route_v6(int add, const unsigned char *pref, unsigned short plen, quagga_prefix.prefixlen = plen; apply_mask_ipv6(&quagga_prefix); + memset(&api, 0, sizeof(api)); api.type = ZEBRA_ROUTE_BABEL; api.flags = 0; api.message = 0; api.safi = SAFI_UNICAST; + api.vrf_id = VRF_DEFAULT; + if(metric >= KERNEL_INFINITY) { api.flags = ZEBRA_FLAG_REJECT; api.nexthop_num = 0; |