aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorUli Heilmeier <uh@heilmeier.eu>2019-12-30 17:40:52 +0100
committerAnders Broman <a.broman58@gmail.com>2020-01-07 13:07:51 +0000
commit984c7a9c42c09caa33641ec91c5c1491177970ed (patch)
tree61786cbe92411b764f0cc572616ab272afdb7b76 /epan/dissectors
parentdc74cfb3f95f35c3a8f5fd8b7256254fad6f40bd (diff)
BGP: update Well-known Communities
Update the well-known communities as defined by https://www.iana.org/assignments/bgp-well-known-communities/bgp-well-known-communities.xhtml Communities for expired drafts has been ignored. Change-Id: I3dedea2bdaad8feda3c7f1d9886092d4c02d6f95 Reviewed-on: https://code.wireshark.org/review/35602 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-bgp.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bgp.c b/epan/dissectors/packet-bgp.c
index 14dcff8c12..3a54352585 100644
--- a/epan/dissectors/packet-bgp.c
+++ b/epan/dissectors/packet-bgp.c
@@ -188,10 +188,15 @@ static dissector_handle_t bgp_handle;
#define BGP_ORF_PERMIT 0x00
#define BGP_ORF_DENY 0x01
-/* well-known communities, from RFC1997 */
+/* well-known communities, as defined by IANA */
+/* https://www.iana.org/assignments/bgp-well-known-communities/bgp-well-known-communities.xhtml */
+#define BGP_COMM_GRACEFUL_SHUTDOWN 0xFFFF0000
+#define BGP_COMM_ACCEPT_OWN 0xFFFF0001
+#define BGP_COMM_BLACKHOLE 0xFFFF029A
#define BGP_COMM_NO_EXPORT 0xFFFFFF01
#define BGP_COMM_NO_ADVERTISE 0xFFFFFF02
#define BGP_COMM_NO_EXPORT_SUBCONFED 0xFFFFFF03
+#define BGP_COMM_NOPEER 0xFFFFFF04
#define FOURHEX0 0x00000000
#define FOURHEXF 0xFFFF0000
@@ -1479,9 +1484,13 @@ static const value_string capability_vals[] = {
};
static const value_string community_vals[] = {
+ { BGP_COMM_GRACEFUL_SHUTDOWN, "GRACEFUL_SHUTDOWN" },
+ { BGP_COMM_ACCEPT_OWN, "ACCEPT_OWN" },
+ { BGP_COMM_BLACKHOLE, "BLACKHOLE" },
{ BGP_COMM_NO_EXPORT, "NO_EXPORT" },
{ BGP_COMM_NO_ADVERTISE, "NO_ADVERTISE" },
{ BGP_COMM_NO_EXPORT_SUBCONFED, "NO_EXPORT_SUBCONFED" },
+ { BGP_COMM_NOPEER, "NOPEER" },
{ 0, NULL }
};