]> The Tcpdump Group git mirrors - tcpdump/commit
Don't treat going past the end of the buffer in check_add_path() as an error.
authorGuy Harris <[email protected]>
Sun, 31 Dec 2017 09:49:47 +0000 (01:49 -0800)
committerGuy Harris <[email protected]>
Sun, 31 Dec 2017 09:49:47 +0000 (01:49 -0800)
commit57ad83491add64cb7e3eaae0ba5205b75b3a5253
tree237d963d49480ca9588baa6ed1e98808179d3c50
parentb0ed96d8b4f034022b54f704859f2bffeb23c7ec
Don't treat going past the end of the buffer in check_add_path() as an error.

It's just a heuristic test to try to guess whether the NLRI information
has path IDs or not.  If we run past the end of the packet data, just
stop processing before we try to fetch data past the end, don't return
an error.

This keeps us from showing truncation in non-truncated packets.

Update tests to reflect that change.
print-bgp.c
tests/bgp_vpn_attrset.out
tests/bgp_vpn_rt-oobr.out
tests/mpbgp-linklocal-nexthop.out