From 64682f5e69efa99708839ca25397c37c2ed8b674 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 24 May 2017 19:52:59 -0400 Subject: [PATCH] babeld: Send in the ifindex to zebra for route install Signed-off-by: Donald Sharp --- babeld/kernel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/babeld/kernel.c b/babeld/kernel.c index fc292d6f94..448613a73b 100644 --- a/babeld/kernel.c +++ b/babeld/kernel.c @@ -164,6 +164,7 @@ kernel_route_v4(int add, api.type = ZEBRA_ROUTE_BABEL; api.flags = 0; api.message = 0; + api.instance = 0; api.safi = SAFI_UNICAST; api.vrf_id = VRF_DEFAULT; @@ -173,13 +174,16 @@ kernel_route_v4(int add, correctly. */ SET_FLAG(api.message, ZAPI_MESSAGE_NEXTHOP); - api.ifindex_num = 0; + SET_FLAG(api.message, ZAPI_MESSAGE_IFINDEX); if(metric >= KERNEL_INFINITY) { api.flags = ZEBRA_FLAG_REJECT; api.nexthop_num = 0; + api.ifindex_num = 0; } else { api.nexthop_num = 1; + api.ifindex_num = 1; api.nexthop = &nexthop_pointer; + api.ifindex = &ifindex; SET_FLAG(api.message, ZAPI_MESSAGE_METRIC); api.metric = metric; } -- 2.39.5