diff options
Diffstat (limited to 'zebra/zserv.c')
| -rw-r--r-- | zebra/zserv.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c index dbf4262bd8..6f72ad1758 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -54,6 +54,7 @@ #include "zebra/rtadv.h" #include "zebra/zebra_mpls.h" #include "zebra/zebra_fpm.h" +#include "zebra/zebra_mroute.h" /* Event list of zebra. */ enum event { ZEBRA_SERV, ZEBRA_READ, ZEBRA_WRITE }; @@ -785,8 +786,6 @@ zsend_write_nexthop (struct stream *s, struct nexthop *nexthop) switch (nexthop->type) { case NEXTHOP_TYPE_IPV4: - stream_put_in_addr (s, &nexthop->gate.ipv4); - break; case NEXTHOP_TYPE_IPV4_IFINDEX: stream_put_in_addr (s, &nexthop->gate.ipv4); stream_putl (s, nexthop->ifindex); @@ -2051,6 +2050,9 @@ zebra_client_read (struct thread *thread) case ZEBRA_MPLS_LABELS_DELETE: zread_mpls_labels (command, client, length, vrf_id); break; + case ZEBRA_IPMR_ROUTE_STATS: + zebra_ipmr_route_stats (client, sock, length, zvrf); + break; default: zlog_info ("Zebra received unknown command %d", command); break; @@ -2386,7 +2388,7 @@ zebra_find_client (u_char proto) return NULL; } - +#ifdef HAVE_NETLINK /* Display default rtm_table for all clients. */ DEFUN (show_table, show_table_cmd, @@ -2419,6 +2421,7 @@ DEFUN (no_config_table, zebrad.rtm_table_default = 0; return CMD_SUCCESS; } +#endif DEFUN (ip_forwarding, ip_forwarding_cmd, |
