summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl/bgpctl.c
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2015-10-11 19:53:58 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2015-10-11 19:53:58 +0000
commit525455cc814944a27b4a02645008039fdb9f099c (patch)
tree0e034eca7f788b4becb723342290286d4de79bca /usr.sbin/bgpctl/bgpctl.c
parent3a79118ca42c0ae3eb9b3547cb76f2e3a7044708 (diff)
Handle the blackhole well-known community in bgpctl as well (print it
symbolically, and don't deny its use in 'bgpctl sh rib comm 65535:6666'). ok phessler@
Diffstat (limited to 'usr.sbin/bgpctl/bgpctl.c')
-rw-r--r--usr.sbin/bgpctl/bgpctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c
index 233e9d94e9e..ea3c5c29f22 100644
--- a/usr.sbin/bgpctl/bgpctl.c
+++ b/usr.sbin/bgpctl/bgpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.c,v 1.182 2015/09/16 20:25:41 stsp Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.183 2015/10/11 19:53:57 sthen Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -1466,6 +1466,9 @@ show_community(u_char *data, u_int16_t len)
case COMMUNITY_NO_PEER:
printf("NO_PEER");
break;
+ case COMMUNITY_BLACKHOLE:
+ printf("BLACKHOLE");
+ break;
default:
printf("WELLKNOWN:%hu", v);
break;