From 72add8133589c3cf0fa0ef5b5ea85bc8cc8678ff Mon Sep 17 00:00:00 2001 From: phessler Date: Mon, 26 Jun 2017 10:09:13 +0000 Subject: [PATCH] don't print the WELLKNOWN string for unknown well-known communities from Job Snijders ok phessler@ benno@ --- usr.sbin/bgpctl/bgpctl.c | 4 ++-- 1 file 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 @@ -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 -- 2.20.1