summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp
diff options
context:
space:
mode:
authorAntoine Eiche <antoine.eiche@cloudwatt.com>2016-06-13 16:22:35 +0000
committerAntoine Eiche <antoine.eiche@cloudwatt.com>2016-06-13 18:23:36 +0200
commit6f55b713bb51164fdb4c156285bf2e8101103fa6 (patch)
tree073debcf30c53644b33b6ba8654ddf6bc45d18cc /packet/bgp
parentb8f83f8edebb1d53e2b1ebbb6cb8350f6f94a56d (diff)
bgp: add tunnel type MPLS in UDP
As specified in RFC7510 / RFC Errata 4350
Diffstat (limited to 'packet/bgp')
-rw-r--r--packet/bgp/bgp.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go
index 9d0a2855..1d5b4941 100644
--- a/packet/bgp/bgp.go
+++ b/packet/bgp/bgp.go
@@ -142,6 +142,7 @@ const (
TUNNEL_TYPE_MPLS TunnelType = 10
TUNNEL_TYPE_MPLS_IN_GRE TunnelType = 11
TUNNEL_TYPE_VXLAN_GRE TunnelType = 12
+ TUNNEL_TYPE_MPLS_IN_UDP TunnelType = 13
)
type PmsiTunnelType uint8
@@ -5330,6 +5331,8 @@ func (e *EncapExtended) String() string {
return "MPLS in GRE"
case TUNNEL_TYPE_VXLAN_GRE:
return "VXLAN GRE"
+ case TUNNEL_TYPE_MPLS_IN_UDP:
+ return "MPLS in UDP"
default:
return fmt.Sprintf("tunnel: %d", e.TunnelType)
}