diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2018-06-21 13:41:53 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-06-21 21:17:04 +0900 |
commit | 954562d65a90af4e8d2e9bf29e4c2bccc4420b38 (patch) | |
tree | f7a52842d6545447ddc2638bad4f1a54ceb5c712 /tools/route-server | |
parent | e2752ae0bb8318920a54771c086d66cbddbd149a (diff) |
packet/bgp: Fix length calc when multiple RTM NLRIs
When multiple RTM NLRIs are composed in a single MP_REACH_NLRI, the
current implementation will fail to decode those NLRIs because
RouteTargetMembershipNLRI.DecodeFromBytes() tests the length of the
given bytes even if including the subsequent bytes.
This patch fixes to cut the bytes by using the prefix length before
testing the byte length.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'tools/route-server')
0 files changed, 0 insertions, 0 deletions