diff options
Diffstat (limited to 'babeld/kernel.c')
| -rw-r--r-- | babeld/kernel.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/babeld/kernel.c b/babeld/kernel.c index 6b673c487c..8b1b80665c 100644 --- a/babeld/kernel.c +++ b/babeld/kernel.c @@ -166,7 +166,6 @@ zebra_route(int add, int family, const unsigned char *pref, unsigned short plen, api.type = ZEBRA_ROUTE_BABEL; api.safi = SAFI_UNICAST; api.vrf_id = VRF_DEFAULT; - api.nh_vrf_id = VRF_DEFAULT; api.prefix = quagga_prefix; if(metric >= KERNEL_INFINITY) { @@ -175,8 +174,8 @@ zebra_route(int add, int family, const unsigned char *pref, unsigned short plen, SET_FLAG(api.message, ZAPI_MESSAGE_NEXTHOP); api.nexthop_num = 1; api_nh->ifindex = ifindex; - - switch (family) { + api_nh->vrf_id = VRF_DEFAULT; + switch (family) { case AF_INET: uchar_to_inaddr(&api_nh->gate.ipv4, gate); if (IPV4_ADDR_SAME (&api_nh->gate.ipv4, &quagga_prefix.u.prefix4) && |
