diff options
Diffstat (limited to 'bgpd/bgp_zebra.c')
-rw-r--r-- | bgpd/bgp_zebra.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index f18d916f..146a7153 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -38,6 +38,7 @@ Boston, MA 02111-1307, USA. */ #include "bgpd/bgp_fsm.h" #include "bgpd/bgp_debug.h" #include "bgpd/bgp_mpath.h" +#include "bgpd/bgp_nexthop.h" /* All information about zebra. */ struct zclient *zclient = NULL; @@ -74,6 +75,15 @@ bgp_router_id_update (int command, struct zclient *zclient, zebra_size_t length) return 0; } +/* Nexthop update message from zebra. */ +static int +bgp_read_nexthop_update (int command, struct zclient *zclient, + zebra_size_t length) +{ + bgp_parse_nexthop_update(); + return 0; +} + /* Inteface addition message from zebra. */ static int bgp_interface_add (int command, struct zclient *zclient, zebra_size_t length) @@ -1095,6 +1105,7 @@ bgp_zebra_init (void) zclient->ipv6_route_add = zebra_read_ipv6; zclient->ipv6_route_delete = zebra_read_ipv6; #endif /* HAVE_IPV6 */ + zclient->nexthop_update = bgp_read_nexthop_update; /* Interface related init. */ if_init (); |