From 4e54f8521f3afdd49683f9d7bb2a0aa51e3db4c7 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sat, 24 Jan 2015 14:07:37 +0900 Subject: packet: fix mpreach and unreach Serialize() Fix the a bug that it crashes with empty NLRI. Signed-off-by: FUJITA Tomonori --- packet/bgp_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packet/bgp_test.go') diff --git a/packet/bgp_test.go b/packet/bgp_test.go index 5c2525cc..5b2e1736 100644 --- a/packet/bgp_test.go +++ b/packet/bgp_test.go @@ -104,6 +104,8 @@ func update() *BGPMessage { NewPathAttributeMpReachNLRI("fe80::", mp_nlri3), NewPathAttributeMpReachNLRI("129.1.1.1", mp_nlri4), NewPathAttributeMpUnreachNLRI(mp_nlri), + NewPathAttributeMpReachNLRI("112.22.2.0", []AddrPrefixInterface{}), + NewPathAttributeMpUnreachNLRI([]AddrPrefixInterface{}), &PathAttributeUnknown{ PathAttribute: PathAttribute{ Flags: 1, -- cgit v1.2.3