summaryrefslogtreecommitdiff
path: root/proto/bgp/attrs.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2019-03-08 00:03:04 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2019-03-08 00:15:45 +0100
commit0171af179b9e9538fb91e9f30f51f774779d9402 (patch)
treecd07017eba0796c8028cf9d7f149d7c4f01bb544 /proto/bgp/attrs.c
parent8bb0b0d7575a7f7701c44d8907381f546c001331 (diff)
BGP: Tunnel Encapsulation attributeold/wg-tlv
Refer to draft-ietf-idr-tunnel-encaps-11
Diffstat (limited to 'proto/bgp/attrs.c')
-rw-r--r--proto/bgp/attrs.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c
index dec38d5b..1b245fbd 100644
--- a/proto/bgp/attrs.c
+++ b/proto/bgp/attrs.c
@@ -888,6 +888,15 @@ static const struct bgp_attr_desc bgp_attr_table[] = {
.decode = bgp_decode_mpls_label_stack,
.format = bgp_format_mpls_label_stack,
},
+ [BA_TUNNEL_ENCAP] = {
+ .name = "tunnel_encap",
+ .type = EAF_TYPE_TUNNEL_ENCAP,
+ .flags = BAF_OPTIONAL | BAF_TRANSITIVE,
+ .export = bgp_export_tunnel_encap,
+ .encode = bgp_encode_tunnel_encap,
+ .decode = bgp_decode_tunnel_encap,
+ .format = bgp_format_tunnel_encap,
+ },
};
static inline int