summaryrefslogtreecommitdiffhomepage
path: root/packet/bgp_test.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-11-06 00:28:40 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-11-06 00:28:40 +0900
commitd37e3442c78e34850022b4fb4b2c57d527ef22b6 (patch)
tree3ae055005dfed178dfaa5d4b96ed232300aeff40 /packet/bgp_test.go
parente2652317a7622674146c24cf0b3927053c2c267b (diff)
packet: fix PathAttributeAggregator
PathAttributeAggregator can handle both two-bytes and four-bytes AS number. So its serializer needs to know which way should be used. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp_test.go')
-rw-r--r--packet/bgp_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/packet/bgp_test.go b/packet/bgp_test.go
index 59734ba4..e09ffc44 100644
--- a/packet/bgp_test.go
+++ b/packet/bgp_test.go
@@ -89,7 +89,8 @@ func update() *BGPMessage {
NewPathAttributeMultiExitDisc(1 << 20),
NewPathAttributeLocalPref(1 << 22),
NewPathAttributeAtomicAggregate(),
- NewPathAttributeAggregator(30002, "129.0.2.99"),
+ NewPathAttributeAggregator(uint32(30002), "129.0.2.99"),
+ NewPathAttributeAggregator(uint32(300020), "129.0.2.99"),
NewPathAttributeCommunities([]uint32{1, 3}),
NewPathAttributeOriginatorId("10.10.0.1"),
NewPathAttributeClusterList([]string{"10.10.0.2", "10.10.0.3"}),