summaryrefslogtreecommitdiff
path: root/zebra/rib.h
diff options
context:
space:
mode:
authorDenis Ovsienko <linux@pilot.org.ua>2007-08-13 16:03:06 +0000
committerDenis Ovsienko <linux@pilot.org.ua>2007-08-13 16:03:06 +0000
commitdc95824ae13d65156dd873a6e784d9a0eed2f39f (patch)
treefa53aa99e517d9cfe5c56474051afdaa1bc9a666 /zebra/rib.h
parent068fd77cff0ce09b6390641abd84fc09a89c49db (diff)
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 */