summaryrefslogtreecommitdiff
path: root/zebra/rib.h
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2016-12-05 20:05:30 +0100
committerChristian Franke <chris@opensourcerouting.org>2017-01-30 13:54:46 +0100
commit05737783711e7054ace797cea4f079f09193a8df (patch)
tree27844c63c7a45eb244aa58ef2286fed683e11016 /zebra/rib.h
parenta27428eb7164b47b6b227e1be16a87d6e84c551b (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/rib.h')
-rw-r--r--zebra/rib.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/zebra/rib.h b/zebra/rib.h
index fceab93d1a..db56414416 100644
--- a/zebra/rib.h
+++ b/zebra/rib.h
@@ -32,6 +32,7 @@
#include "vrf.h"
#include "if.h"
#include "mpls.h"
+#include "srcdest_table.h"
#define DISTANCE_INFINITY 255
#define ZEBRA_KERNEL_TABLE_MAX 252 /* support for no more than this rt tables */
@@ -311,8 +312,9 @@ extern enum multicast_mode multicast_mode_ipv4_get (void);
extern int nexthop_has_fib_child(struct nexthop *);
extern void rib_lookup_and_dump (struct prefix_ipv4 *, vrf_id_t);
extern void rib_lookup_and_pushup (struct prefix_ipv4 *, vrf_id_t);
-#define rib_dump(prefix ,rib) _rib_dump(__func__, prefix, rib)
+#define rib_dump(prefix, src, rib) _rib_dump(__func__, prefix, src, rib)
extern void _rib_dump (const char *,
+ union prefix46constptr,
union prefix46constptr, const struct rib *);
extern int rib_lookup_ipv4_route (struct prefix_ipv4 *, union sockunion *,
vrf_id_t);
@@ -444,7 +446,7 @@ rib_dest_af (rib_dest_t *dest)
static inline struct route_table *
rib_dest_table (rib_dest_t *dest)
{
- return dest->rnode->table;
+ return srcdest_rnode_table(dest->rnode);
}
/*