summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-03-31 19:37:47 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-04-01 14:46:55 +0900
commit0bd939e92677a03436d7b7f2ec97e953d736464b (patch)
treea6f3f7cf38471ee023c87b0c23c1b112346076d6 /packet/bgp
parent311324fab8bf7d9e39365d53f7e810af90476d85 (diff)
docs/packet: s/draft-ietf-idr-flowspec-redirect-rt-bis-05/RFC7674
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp')
-rw-r--r--packet/bgp/bgp.go7
1 files changed, 3 insertions, 4 deletions
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])