diff options
author | Denis Ovsienko <infrastation@yandex.ru> | 2012-01-21 23:16:00 +0400 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2012-03-25 17:06:53 +0100 |
commit | a19a3bf94740aebff6fdfc76f3d4b17c0013fae4 (patch) | |
tree | 057e963785a71025500fe3b1e052c348c86c5d67 /babeld | |
parent | ec8d8d5ba648302cf9405f1346e3760d9b9d061c (diff) |
babeld: add MP-specific zclient API fix
Add proper initialization of SAFI field, which is present in the
revisions of zapi_ipv4 and zapi_ipv6 structures specific to
MP-BGP patchset. Without this change no Babel routes could make
into zebra RIB.
Diffstat (limited to 'babeld')
-rw-r--r-- | babeld/kernel_zebra.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/babeld/kernel_zebra.c b/babeld/kernel_zebra.c index 7ddc797d..53da5f40 100644 --- a/babeld/kernel_zebra.c +++ b/babeld/kernel_zebra.c @@ -206,6 +206,7 @@ kernel_route_add_v4(const unsigned char *pref, unsigned short plen, api.type = ZEBRA_ROUTE_BABEL; api.flags = 0; api.message = 0; + api.safi = SAFI_UNICAST; SET_FLAG(api.message, ZAPI_MESSAGE_NEXTHOP); api.nexthop_num = 1; api.nexthop = &nexthop_pointer; @@ -248,6 +249,7 @@ kernel_route_add_v6(const unsigned char *pref, unsigned short plen, api.type = ZEBRA_ROUTE_BABEL; api.flags = 0; api.message = 0; + api.safi = SAFI_UNICAST; SET_FLAG(api.message, ZAPI_MESSAGE_NEXTHOP); api.nexthop_num = 1; api.nexthop = &nexthop_pointer; @@ -291,6 +293,7 @@ kernel_route_delete_v4(const unsigned char *pref, unsigned short plen, api.type = ZEBRA_ROUTE_BABEL; api.flags = 0; api.message = 0; + api.safi = SAFI_UNICAST; SET_FLAG(api.message, ZAPI_MESSAGE_NEXTHOP); api.nexthop_num = 1; api.nexthop = &nexthop_pointer; @@ -334,6 +337,7 @@ kernel_route_delete_v6(const unsigned char *pref, unsigned short plen, api.type = ZEBRA_ROUTE_BABEL; api.flags = 0; api.message = 0; + api.safi = SAFI_UNICAST; SET_FLAG(api.message, ZAPI_MESSAGE_NEXTHOP); api.nexthop_num = 1; api.nexthop = &nexthop_pointer; |