From c7d31e51e535bd1bba1c3ef92278bbd32c510b78 Mon Sep 17 00:00:00 2001 From: Peter Hessler Date: Thu, 27 Oct 2016 08:21:59 +0000 Subject: Huawei squatted on BGP Path Attribute 30, and Cisco squatted on 31. So, IANA moved the Large Communities attribute to 32, which is a nice pun on the problem it is solving. --- usr.sbin/bgpd/rde.h | 4 ++-- usr.sbin/tcpdump/print-bgp.c | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h index edb49c81eca..ca3a66ca67c 100644 --- a/usr.sbin/bgpd/rde.h +++ b/usr.sbin/bgpd/rde.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.h,v 1.150 2016/10/14 16:05:36 phessler Exp $ */ +/* $OpenBSD: rde.h,v 1.151 2016/10/27 08:21:58 phessler Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker and @@ -113,7 +113,7 @@ enum attrtypes { ATTR_EXT_COMMUNITIES=16, ATTR_AS4_PATH=17, ATTR_AS4_AGGREGATOR=18, - ATTR_LARGE_COMMUNITIES=30, + ATTR_LARGE_COMMUNITIES=32, }; /* attribute flags. 4 low order bits reserved */ diff --git a/usr.sbin/tcpdump/print-bgp.c b/usr.sbin/tcpdump/print-bgp.c index 3b525355dae..d028d671893 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.19 2016/10/13 08:48:15 phessler Exp $ */ +/* $OpenBSD: print-bgp.c,v 1.20 2016/10/27 08:21:58 phessler Exp $ */ /* * Copyright (C) 1999 WIDE Project. @@ -134,7 +134,7 @@ struct bgp_attr { #define BGPTYPE_EXTD_COMMUNITIES 16 /* RFC4360 */ #define BGPTYPE_AS4_PATH 17 /* RFC4893 */ #define BGPTYPE_AGGREGATOR4 18 /* RFC4893 */ -#define BGPTYPE_LARGE_COMMUNITIES 30 /* draft-ietf-idr-large-community */ +#define BGPTYPE_LARGE_COMMUNITIES 32 /* draft-ietf-idr-large-community */ #define BGP_AS_SET 1 #define BGP_AS_SEQUENCE 2 @@ -267,7 +267,8 @@ static const char *bgpattr_type[] = { "COMMUNITIES", "ORIGINATOR_ID", "CLUSTER_LIST", "DPA", "ADVERTISERS", "RCID_PATH", "MP_REACH_NLRI", "MP_UNREACH_NLRI", "EXTD_COMMUNITIES", "AS4_PATH", "AGGREGATOR4", NULL, NULL, NULL, - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, "LARGE_COMMUNITIES", + NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, + "LARGE_COMMUNITIES", }; #define bgp_attr_type(x) \ num_or_str(bgpattr_type, \ -- cgit v1.2.3