diff options
| author | Christian Franke <chris@opensourcerouting.org> | 2016-12-05 20:05:30 +0100 |
|---|---|---|
| committer | Christian Franke <chris@opensourcerouting.org> | 2017-01-30 13:54:46 +0100 |
| commit | 05737783711e7054ace797cea4f079f09193a8df (patch) | |
| tree | 27844c63c7a45eb244aa58ef2286fed683e11016 /zebra/rt_socket.c | |
| parent | a27428eb7164b47b6b227e1be16a87d6e84c551b (diff) | |
zebra: add srcdest support to rib
Add srcdest support to the zebra rib and to the kernel
and redistribution interfaces.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'zebra/rt_socket.c')
| -rw-r--r-- | zebra/rt_socket.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c index f65ec887dd..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"); |
