]> The Tcpdump Group git mirrors - tcpdump/commit
Check for a negative "advance" value, which indicates an error.
authorguy <guy>
Wed, 20 Apr 2005 20:45:34 +0000 (20:45 +0000)
committerguy <guy>
Wed, 20 Apr 2005 20:45:34 +0000 (20:45 +0000)
commit2fd4391eb963a9797b03c901847bc1374b21e84b
tree66c7598810797110b12dc739337c4d554bb3ff58
parent000d739130b4d6120a0eb340772c94831321e4c4
Check for a negative "advance" value, which indicates an error.

Don't make the last statement in a loop a break statement, as that means
the body of the loop will be executed at most once.

When looping over the data in a TCP segment containing BGP packets, loop
until we reach the first of the end of the captured data or the end of
the segment, not just the end of the captured data.
print-bgp.c