summaryrefslogtreecommitdiffstats
path: root/ripd
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2011-12-05 13:35:14 +0100
committerDenis Ovsienko <infrastation@yandex.ru>2012-01-23 11:31:42 +0100
commitb4e45f67057be22133b6bec88cdf285d5c8214db (patch)
tree80f775047efb255ef573b2e9d3affb1a7caeb6d1 /ripd
parentzebra: fix recent MP-BGP commits for FreeBSD (diff)
downloadfrr-b4e45f67057be22133b6bec88cdf285d5c8214db.tar.xz
frr-b4e45f67057be22133b6bec88cdf285d5c8214db.zip
fix zebra protocol after MP-BGP changes
The previous commits modified both zebra and bgpd for additional SAFI field, but not any other routing daemon, which led to zebra daemon crashing with failed assertion.
Diffstat (limited to 'ripd')
-rw-r--r--ripd/rip_zebra.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ripd/rip_zebra.c b/ripd/rip_zebra.c
index c476d8f48..1d10b1037 100644
--- a/ripd/rip_zebra.c
+++ b/ripd/rip_zebra.c
@@ -46,6 +46,7 @@ rip_zebra_ipv4_add (struct prefix_ipv4 *p, struct in_addr *nexthop,
api.type = ZEBRA_ROUTE_RIP;
api.flags = 0;
api.message = 0;
+ api.safi = SAFI_UNICAST;
SET_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP);
api.nexthop_num = 1;
api.nexthop = &nexthop;
@@ -76,6 +77,7 @@ rip_zebra_ipv4_delete (struct prefix_ipv4 *p, struct in_addr *nexthop,
api.type = ZEBRA_ROUTE_RIP;
api.flags = 0;
api.message = 0;
+ api.safi = SAFI_UNICAST;
SET_FLAG (api.message, ZAPI_MESSAGE_NEXTHOP);
api.nexthop_num = 1;
api.nexthop = &nexthop;