summaryrefslogtreecommitdiff
path: root/zebra/rib.h
diff options
context:
space:
mode:
authorpaul <paul>2003-05-25 21:35:06 +0000
committerpaul <paul>2003-05-25 21:35:06 +0000
commit595db7f16506d2c82a3478e9f8dab00c8733d386 (patch)
tree240d477dd4b5262ba78cc50fda4b81de09e2c91c /zebra/rib.h
parent726f9b2bbdd5a607f7b0a10a64547739b807e361 (diff)
Add back support for null0 interface blackhole routes.
Diffstat (limited to 'zebra/rib.h')
-rw-r--r--zebra/rib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/rib.h b/zebra/rib.h
index d416c152..5b0dcfe9 100644
--- a/zebra/rib.h
+++ b/zebra/rib.h
@@ -76,6 +76,7 @@ struct static_ipv4
u_char type;
#define STATIC_IPV4_GATEWAY 1
#define STATIC_IPV4_IFNAME 2
+#define STATIC_IPV4_BLACKHOLE 3
/* Nexthop value. */
union
@@ -137,6 +138,7 @@ struct nexthop
#define NEXTHOP_TYPE_IPV6 6 /* IPv6 nexthop. */
#define NEXTHOP_TYPE_IPV6_IFINDEX 7 /* IPv6 nexthop with ifindex. */
#define NEXTHOP_TYPE_IPV6_IFNAME 8 /* IPv6 nexthop with ifname. */
+#define NEXTHOP_TYPE_BLACKHOLE 9 /* Null0 nexthop. */
u_char flags;
#define NEXTHOP_FLAG_ACTIVE (1 << 0) /* This nexthop is alive. */
@@ -194,6 +196,7 @@ struct vrf
struct nexthop *nexthop_ifindex_add (struct rib *, unsigned int);
struct nexthop *nexthop_ifname_add (struct rib *, char *);
+struct nexthop *nexthop_blackhole_add (struct rib *);
struct nexthop *nexthop_ipv4_add (struct rib *, struct in_addr *);
#ifdef HAVE_IPV6
struct nexthop *nexthop_ipv6_add (struct rib *, struct in6_addr *);