From: phessler Date: Mon, 26 Jun 2017 10:09:13 +0000 (+0000) Subject: don't print the WELLKNOWN string for unknown well-known communities X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=72add8133589c3cf0fa0ef5b5ea85bc8cc8678ff;p=openbsd don't print the WELLKNOWN string for unknown well-known communities from Job Snijders ok phessler@ benno@ --- 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 @@ -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