summaryrefslogtreecommitdiff
path: root/print-cnfp.c
diff options
context:
space:
mode:
authorguy <guy>2005-04-20 20:45:34 +0000
committerguy <guy>2005-04-20 20:45:34 +0000
commit2fd4391eb963a9797b03c901847bc1374b21e84b (patch)
tree66c7598810797110b12dc739337c4d554bb3ff58 /print-cnfp.c
parent000d739130b4d6120a0eb340772c94831321e4c4 (diff)
downloadtcpdump-2fd4391eb963a9797b03c901847bc1374b21e84b.tar.gz
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.
Diffstat (limited to 'print-cnfp.c')
0 files changed, 0 insertions, 0 deletions