summaryrefslogtreecommitdiff
path: root/zebra/rt_socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/rt_socket.c')
-rw-r--r--zebra/rt_socket.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c
index b2c99d9813..de8cc69a8e 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,12 +391,19 @@ 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_err ("route add: IPv6 sourcedest routes unsupported!");
+ return 1;
+ }
+
if (zserv_privs.change(ZPRIVS_RAISE))
- zlog (NULL, LOG_ERR, "Can't raise privileges");
+ zlog_err("Can't raise privileges");
if (old)
route |= kernel_rtm (RTM_DELETE, p, old);
@@ -405,7 +412,7 @@ kernel_route_rib (struct prefix *p, struct rib *old, struct rib *new)
route |= kernel_rtm (RTM_ADD, p, new);
if (zserv_privs.change(ZPRIVS_LOWER))
- zlog (NULL, LOG_ERR, "Can't lower privileges");
+ zlog_err("Can't lower privileges");
return route;
}
@@ -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;
+}