summaryrefslogtreecommitdiffstats
path: root/zebra/rib.h
diff options
context:
space:
mode:
authorpilot <pilot>2007-08-13 16:03:06 +0000
committerpilot <pilot>2007-08-13 16:03:06 +0000
commit56152f1d3a60292b87970e124f611dd08cb6e0b9 (patch)
tree05905bd97e33fc18891348df7753d718344a84e7 /zebra/rib.h
parent2707a5a83925d6e7b1e9b55705dc08b37a45bf05 (diff)
downloadquagga-56152f1d3a60292b87970e124f611dd08cb6e0b9.tar.bz2
quagga-56152f1d3a60292b87970e124f611dd08cb6e0b9.tar.xz
Merged own patch for the bug #391 (debugging and comments mostly).
Diffstat (limited to 'zebra/rib.h')
-rw-r--r--zebra/rib.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/zebra/rib.h b/zebra/rib.h
index 7b2bd426..796a30eb 100644
--- a/zebra/rib.h
+++ b/zebra/rib.h
@@ -211,6 +211,15 @@ extern struct nexthop *nexthop_ifname_add (struct rib *, char *);
extern struct nexthop *nexthop_blackhole_add (struct rib *);
extern struct nexthop *nexthop_ipv4_add (struct rib *, struct in_addr *,
struct in_addr *);
+extern void rib_lookup_and_dump (struct prefix_ipv4 *);
+extern void rib_dump (const char *, const struct prefix_ipv4 *, const struct rib *);
+extern int rib_lookup_ipv4_route (struct prefix_ipv4 *, union sockunion *);
+#define ZEBRA_RIB_LOOKUP_ERROR -1
+#define ZEBRA_RIB_FOUND_EXACT 0
+#define ZEBRA_RIB_FOUND_NOGATE 1
+#define ZEBRA_RIB_FOUND_CONNECTED 2
+#define ZEBRA_RIB_NOTFOUND 3
+
#ifdef HAVE_IPV6
extern struct nexthop *nexthop_ipv6_add (struct rib *, struct in6_addr *);
#endif /* HAVE_IPV6 */