diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-01-24 14:07:37 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-01-24 14:07:37 +0900 |
commit | 4e54f8521f3afdd49683f9d7bb2a0aa51e3db4c7 (patch) | |
tree | 704646f070d069b8ee4688ec8e7db0e507d8053d /packet/bgp_test.go | |
parent | 4656ce8419083536d36f16e4b0dc0203e642efa0 (diff) |
packet: fix mpreach and unreach Serialize()
Fix the a bug that it crashes with empty NLRI.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'packet/bgp_test.go')
-rw-r--r-- | packet/bgp_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
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, |