don't print the WELLKNOWN string for unknown well-known communities
authorphessler <phessler@openbsd.org>
Mon, 26 Jun 2017 10:09:13 +0000 (10:09 +0000)
committerphessler <phessler@openbsd.org>
Mon, 26 Jun 2017 10:09:13 +0000 (10:09 +0000)
from Job Snijders
ok phessler@ benno@

usr.sbin/bgpctl/bgpctl.c

index 55a5312..dd9969c 100644 (file)
@@ -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