summaryrefslogtreecommitdiff
path: root/zebra/zebra_static.h
diff options
context:
space:
mode:
authorDaniel Walton <dwalton76@gmail.com>2017-09-05 12:54:05 -0400
committerGitHub <noreply@github.com>2017-09-05 12:54:05 -0400
commit41bcc4a91e5f68f3cf9c01b63f9d9281ebdfa654 (patch)
treefa38862d2e014806b278b7d5cb8a8b4449fccdfa /zebra/zebra_static.h
parent75048747e9f4e27a1669c2f7dbb1b73d63e7ab5c (diff)
parent57a58d777f65d8fec9efe52c3e69c9341694eb69 (diff)
Merge pull request #1093 from opensourcerouting/static_blackhole_display
zebra: display static blackhole routes consistently
Diffstat (limited to 'zebra/zebra_static.h')
-rw-r--r--zebra/zebra_static.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/zebra/zebra_static.h b/zebra/zebra_static.h
index 458594a289..68fe73b0a3 100644
--- a/zebra/zebra_static.h
+++ b/zebra/zebra_static.h
@@ -31,6 +31,12 @@ struct static_nh_label {
mpls_label_t label[MPLS_MAX_LABELS];
};
+enum static_blackhole_type {
+ STATIC_BLACKHOLE_DROP = 0,
+ STATIC_BLACKHOLE_NULL,
+ STATIC_BLACKHOLE_REJECT
+};
+
typedef enum {
STATIC_IFNAME,
STATIC_IPV4_GATEWAY,
@@ -61,7 +67,7 @@ struct static_route {
/*
* Nexthop value.
*/
- enum blackhole_type bh_type;
+ enum static_blackhole_type bh_type;
union g_addr addr;
ifindex_t ifindex;
@@ -80,9 +86,9 @@ extern void static_uninstall_route(afi_t afi, safi_t safi, struct prefix *p,
extern int static_add_route(afi_t, safi_t safi, u_char type, struct prefix *p,
struct prefix_ipv6 *src_p, union g_addr *gate,
- const char *ifname, enum blackhole_type bh_type,
- route_tag_t tag, u_char distance,
- struct zebra_vrf *zvrf,
+ const char *ifname,
+ enum static_blackhole_type bh_type, route_tag_t tag,
+ u_char distance, struct zebra_vrf *zvrf,
struct static_nh_label *snh_label);
extern int static_delete_route(afi_t, safi_t safi, u_char type,