summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphessler <phessler@openbsd.org>2017-06-26 10:09:13 +0000
committerphessler <phessler@openbsd.org>2017-06-26 10:09:13 +0000
commit72add8133589c3cf0fa0ef5b5ea85bc8cc8678ff (patch)
tree120f58c004d40291ab190d4246eeec6112eaa12d
parentlet admins set an unknown well-known community (diff)
downloadwireguard-openbsd-72add8133589c3cf0fa0ef5b5ea85bc8cc8678ff.tar.xz
wireguard-openbsd-72add8133589c3cf0fa0ef5b5ea85bc8cc8678ff.zip
don't print the WELLKNOWN string for unknown well-known communities
from Job Snijders ok phessler@ benno@
-rw-r--r--usr.sbin/bgpctl/bgpctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c
index 55a5312e8f9..dd9969ceeb1 100644
--- a/usr.sbin/bgpctl/bgpctl.c
+++ b/usr.sbin/bgpctl/bgpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.c,v 1.196 2017/06/26 10:05:57 phessler Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.197 2017/06/26 10:09:13 phessler Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -1551,7 +1551,7 @@ show_community(u_char *data, u_int16_t len)
printf("BLACKHOLE");
break;
default:
- printf("WELLKNOWN:%hu", v);
+ printf("%hu:%hu", a, v);
break;
}
else