]> The Tcpdump Group git mirrors - tcpdump/commit
Fix problem found by the folks at www.digit-labs.org. Process all the
authorguy <guy>
Sat, 14 Jul 2007 22:26:35 +0000 (22:26 +0000)
committerguy <guy>
Sat, 14 Jul 2007 22:26:35 +0000 (22:26 +0000)
commit2a0204bd2d43007c4d5a5c674eadf7ca53ea3204
tree08c0457fddbf3c41fd1e94d9f013707486dbcc70
parent9312996715831a0d61ac01d3c56fa2276b503c3f
Fix problem found by the folks at www.digit-labs.org.  Process all the
TLVs in decode_labeled_vpn_l2(), but don't format them unless there's
buffer space left.  If snprintf() returns a negative value, assume we've
filled up the buffer - I think some platforms used to work that way.  If
it returns a value greater than the amount of space left, also assume
we've filled up the buffer.

Fix a typo in a comment.
print-bgp.c