diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-08-06 07:22:38 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-08-06 07:22:38 +0000 |
commit | 61aefd7470ac7ff134dfa3245033f6fabaae6285 (patch) | |
tree | 15fd7095c9d57da2f1ec8b38841613236c1a1740 /dfilter-int.h | |
parent | 10fe2ebd843b25c2295ac19c8e48cf353d45f165 (diff) | |
download | wireshark-61aefd7470ac7ff134dfa3245033f6fabaae6285.tar.gz |
Don't use "fd->pkt_len" when checking to see if you've run off the end
of the packet, use "pi.captured_len" - "fd->pkt_len" may include data
that isn't in the capture, due to a short snapshot length.
Don't use "fd->cap_len" when checking to see if you've run off the end
of the packe, use "pi.captured_len" - "fd->cap_len" isn't adjusted to
reflect any length fields, but "pi.captured_len" is (removing, for
example, Ethernet padding from the packet).
Use "END_OF_FRAME" rather than "pi.captured_len - offset", to make it a
bit clearer what's being done.
In the V.120 dissector, use "tvb_length()" when adding the top-level
protocol tree entry for V.120, as it's a tvbuffified dissector.
svn path=/trunk/; revision=2214
Diffstat (limited to 'dfilter-int.h')
0 files changed, 0 insertions, 0 deletions