From 9f147ed832a50d105ba63ad92238219db7bdf4a7 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sun, 10 Jan 2016 17:00:19 +0900 Subject: packet: add origin validation extended community Signed-off-by: ISHIDA Wataru --- packet/bgp_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'packet/bgp_test.go') 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), -- cgit v1.2.3