diff options
author | Lou Berger <lberger@labn.net> | 2016-01-12 19:42:00 +0100 |
---|---|---|
committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-05-26 17:33:34 +0200 |
commit | 0014c3011f59c0bb6fce4880ce6c243e9b11c069 (patch) | |
tree | 7357214d1feb1d3e7338eba1709510ca27ae1c54 /bgpd/bgp_ecommunity.h | |
parent | bgpd: kill unused variable in bgp_socket() (diff) | |
download | frr-0014c3011f59c0bb6fce4880ce6c243e9b11c069.tar.xz frr-0014c3011f59c0bb6fce4880ce6c243e9b11c069.zip |
bgpd: encap: extend extcommunity handling
Add code to print ENCAP communities.
Signed-off-by: Lou Berger <lberger@labn.net>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 5a81fc9ae610ff343902ebabc12237d6e40d91cb)
Diffstat (limited to '')
-rw-r--r-- | bgpd/bgp_ecommunity.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bgpd/bgp_ecommunity.h b/bgpd/bgp_ecommunity.h index 92affccca..993fd5acf 100644 --- a/bgpd/bgp_ecommunity.h +++ b/bgpd/bgp_ecommunity.h @@ -25,11 +25,15 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA #define ECOMMUNITY_ENCODE_AS 0x00 #define ECOMMUNITY_ENCODE_IP 0x01 #define ECOMMUNITY_ENCODE_AS4 0x02 +#define ECOMMUNITY_ENCODE_OPAQUE 0x03 -/* Low-order octet of the Extended Communityes type field. */ +/* Low-order octet of the Extended Communities type field. */ #define ECOMMUNITY_ROUTE_TARGET 0x02 #define ECOMMUNITY_SITE_ORIGIN 0x03 +/* Low-order octet of the Extended Communities type field for OPAQUE types */ +#define ECOMMUNITY_OPAQUE_SUBTYPE_ENCAP 0x0c + /* Extended communities attribute string format. */ #define ECOMMUNITY_FORMAT_ROUTE_MAP 0 #define ECOMMUNITY_FORMAT_COMMUNITY_LIST 1 |