diff options
-rw-r--r-- | docs/sources/flowspec.md | 4 | ||||
-rw-r--r-- | packet/bgp/bgp.go | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/docs/sources/flowspec.md b/docs/sources/flowspec.md index 34c20608..1de33fb8 100644 --- a/docs/sources/flowspec.md +++ b/docs/sources/flowspec.md @@ -1,8 +1,8 @@ # Flowspec (RFC5575) GoBGP supports [RFC5575](https://tools.ietf.org/html/rfc5575), -[draft-ietf-idr-flowspec-redirect-rt-bis-05](http://tools.ietf.org/html/draft-ietf-idr-flowspec-redirect-rt-bis-05) -, [draft-ietf-idr-flow-spec-v6-06](https://tools.ietf.org/html/draft-ietf-idr-flow-spec-v6-06) +[RFC7674](https://tools.ietf.org/html/rfc7674), +[draft-ietf-idr-flow-spec-v6-06](https://tools.ietf.org/html/draft-ietf-idr-flow-spec-v6-06) and [draft-ietf-idr-flowspec-l2vpn-03](https://tools.ietf.org/html/draft-ietf-idr-flowspec-l2vpn-03). ## Prerequisites diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go index 34b812a0..b7ee98cb 100644 --- a/packet/bgp/bgp.go +++ b/packet/bgp/bgp.go @@ -88,9 +88,8 @@ const ( EC_TYPE_NON_TRANSITIVE_OPAQUE ExtendedCommunityAttrType = 0x43 EC_TYPE_NON_TRANSITIVE_QOS_MARKING ExtendedCommunityAttrType = 0x44 EC_TYPE_GENERIC_TRANSITIVE_EXPERIMENTAL ExtendedCommunityAttrType = 0x80 - //draft-ietf-idr-flowspec-redirect-rt-bis-05 - EC_TYPE_GENERIC_TRANSITIVE_EXPERIMENTAL2 ExtendedCommunityAttrType = 0x81 - EC_TYPE_GENERIC_TRANSITIVE_EXPERIMENTAL3 ExtendedCommunityAttrType = 0x82 + EC_TYPE_GENERIC_TRANSITIVE_EXPERIMENTAL2 ExtendedCommunityAttrType = 0x81 // RFC7674 + EC_TYPE_GENERIC_TRANSITIVE_EXPERIMENTAL3 ExtendedCommunityAttrType = 0x82 // RFC7674 ) // RFC7153 5.2. Registraction for the "Sub-Type" Field @@ -5577,7 +5576,7 @@ func parseFlowSpecExtended(data []byte) (ExtendedCommunityInterface, error) { sample := (data[7]>>1)&0x1 == 1 return NewTrafficActionExtended(terminal, sample), nil case EC_SUBTYPE_FLOWSPEC_REDIRECT: - //draft-ietf-idr-flowspec-redirect-rt-bis-05 + // RFC7674 switch typ { case EC_TYPE_GENERIC_TRANSITIVE_EXPERIMENTAL: as := binary.BigEndian.Uint16(data[2:4]) |