summaryrefslogtreecommitdiff
path: root/randpkt.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-02-23 21:07:48 +0000
committerGuy Harris <guy@alum.mit.edu>2002-02-23 21:07:48 +0000
commitf4f3208a00a0dd4ce9ff90077243c80767902ff1 (patch)
tree05ce9a3b61b183179a9abf2fb860c656233de500 /randpkt.c
parent7027650b5ce8aeeb4e2e7aa91d670d213cde18b2 (diff)
downloadwireshark-f4f3208a00a0dd4ce9ff90077243c80767902ff1.tar.gz
In the Q.931-over-TPKT-over-TCP dissector, if the TCP segment we're
handed looks as if it contains only a TPKT header (4 bytes long, and those 4 bytes look like a TPKT header according to "is_tpkt()"), call the "dissect TPKT over a TCP stream" routine. If we're doing reassembly, that routine will force a reassembly because the TPKT payload isn't in that segment, and the various heuristic XXX-over-TPKT dissectors will be called again, this time with enough data for them to say whether the TPKT payload is for them or not; if we're not doing reassembly, we'll dissect the TPKT header and then call the "dissect a Q.931 PDU" routine, which will throw an exception because there isn't any payload from which to fetch data (and that's what we want to happen). In the "dissect TPKT over a TCP stream" routine, if reassembly is enabled, do the check to see if we need to do reassembly to get the payload before dissecting the TPKT header, so that we don't dissect the TPKT header and then decide "oops, we need some more data to get the TPKT payload". svn path=/trunk/; revision=4792
Diffstat (limited to 'randpkt.c')
0 files changed, 0 insertions, 0 deletions