summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordenis <denis@openbsd.org>2018-12-28 11:54:10 +0000
committerdenis <denis@openbsd.org>2018-12-28 11:54:10 +0000
commit66e30f7f36ddd5c533eb3703f08194f5715bd767 (patch)
tree60b3cc3f46457d6925327419deaf135a3c2a5f3a
parentremove the tag workaround for table_create() and table_find(), (diff)
downloadwireguard-openbsd-66e30f7f36ddd5c533eb3703f08194f5715bd767.tar.xz
wireguard-openbsd-66e30f7f36ddd5c533eb3703f08194f5715bd767.zip
print well-known SAFI name instead of value
OK claudio@ sthen@
-rw-r--r--usr.sbin/tcpdump/print-bgp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/print-bgp.c b/usr.sbin/tcpdump/print-bgp.c
index bc9ee5c20d1..6f0a67baf95 100644
--- a/usr.sbin/tcpdump/print-bgp.c
+++ b/usr.sbin/tcpdump/print-bgp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-bgp.c,v 1.26 2018/10/22 16:12:45 kn Exp $ */
+/* $OpenBSD: print-bgp.c,v 1.27 2018/12/28 11:54:10 denis Exp $ */
/*
* Copyright (C) 1999 WIDE Project.
@@ -300,6 +300,12 @@ static const char *bgpattr_nlri_safi[] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 64-66: MPLS BGP RFC3107 */
"Tunnel", "VPLS", "MDT",
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ /* 128-129: RFC4364 + RFC6513 */
+ "L3VPN Unicast", "L3VPN Multicast",
};
#define bgp_attr_nlri_safi(x) \
num_or_str(bgpattr_nlri_safi, \