diff options
Diffstat (limited to 'zebra/rt_socket.c')
| -rw-r--r-- | zebra/rt_socket.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c index b2c99d9813..a4cc4eed06 100644 --- a/zebra/rt_socket.c +++ b/zebra/rt_socket.c @@ -182,7 +182,7 @@ kernel_rtm_ipv4 (int cmd, struct prefix *p, struct rib *rib) { zlog_debug ("%s: %s: attention! gate not found for rib %p", __func__, prefix_buf, rib); - rib_dump (p, rib); + rib_dump (p, NULL, rib); } else inet_ntop (AF_INET, &sin_gate.sin_addr, gate_buf, INET_ADDRSTRLEN); @@ -391,10 +391,17 @@ kernel_rtm (int cmd, struct prefix *p, struct rib *rib) } int -kernel_route_rib (struct prefix *p, struct rib *old, struct rib *new) +kernel_route_rib (struct prefix *p, struct prefix *src_p, + struct rib *old, struct rib *new) { int route = 0; + if (src_p && src_p->prefixlen) + { + zlog (NULL, LOG_ERR, "route add: IPv6 sourcedest routes unsupported!"); + return 1; + } + if (zserv_privs.change(ZPRIVS_RAISE)) zlog (NULL, LOG_ERR, "Can't raise privileges"); @@ -416,3 +423,9 @@ kernel_neigh_update (int add, int ifindex, uint32_t addr, char *lla, int llalen) /* TODO */ return 0; } + +extern int +kernel_get_ipmr_sg_stats (void *mroute) +{ + return 0; +} |
