diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-24 19:52:59 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-24 19:52:59 -0400 |
| commit | 64682f5e69efa99708839ca25397c37c2ed8b674 (patch) | |
| tree | 3fc6de755329358b199741b0900329d32def1991 /babeld/kernel.c | |
| parent | e4d9c77198db018dff0f212fbefe317b0ccc4c74 (diff) | |
babeld: Send in the ifindex to zebra for route install
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'babeld/kernel.c')
| -rw-r--r-- | babeld/kernel.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |
