summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp_test.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-01-10 17:00:19 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-01-10 17:01:21 +0900
commit9f147ed832a50d105ba63ad92238219db7bdf4a7 (patch)
treefee1222a0f635720981fa9baa5a6c35f304b9666 /packet/bgp_test.go
parent366179fcc9892b0cbc0bf27da5edbff171d7a444 (diff)
packet: add origin validation extended community
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp_test.go')
-rw-r--r--packet/bgp_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/packet/bgp_test.go b/packet/bgp_test.go
index b7b26d38..d8e41e68 100644
--- a/packet/bgp_test.go
+++ b/packet/bgp_test.go
@@ -68,7 +68,10 @@ func update() *BGPMessage {
NewFourOctetAsSpecificExtended(EC_SUBTYPE_ROUTE_TARGET, 1<<20, 300, isTransitive),
NewIPv4AddressSpecificExtended(EC_SUBTYPE_ROUTE_TARGET, "192.2.1.2", 3000, isTransitive),
&OpaqueExtended{
- Value: &DefaultOpaqueExtendedValue{[]byte{0, 1, 2, 3, 4, 5, 6, 7}},
+ Value: &DefaultOpaqueExtendedValue{[]byte{255, 1, 2, 3, 4, 5, 6, 7}},
+ },
+ &OpaqueExtended{
+ Value: &ValidationExtended{Value: VALIDATION_STATE_INVALID},
},
&UnknownExtended{Type: 99, Value: []byte{0, 1, 2, 3, 4, 5, 6, 7}},
NewESILabelExtended(1000, true),