diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-02-02 02:51:20 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-02-02 02:51:20 +0000 |
commit | 02d0d906824d007d0063188477060e27ec37be89 (patch) | |
tree | f455cdf13d6752fdfd2731b61de4c96a473974d2 /packet-sdp.c | |
parent | 2e5847828aaaf8f33f60a55bc948e9df2722b7c3 (diff) |
Clean up the heuristic code in the Q.931 dissector. If it's a heuristic
dissector, it's looking for Q.931 encapsulated inside TPKT, so it
shouldn't check whether the first byte is NLPID_Q_931 or not, as it
*won't* be NLPID_Q_931, it'll be 3, for the TPKT version. It should
first check whether "is_tpkt()" thinks it's a TPKT packet, and then
check that the packet has at least 3 bytes past the TPKT header, then
check the first byte in the payload to see whether it's NLPID_Q_931. If
that all succeeds, treat it as Q.931 inside TPKT.
Make "is_tpkt()" return the length from the TPKT header on success, and
-1 on failure, and return the offset past the TPKT header via a pointer
(so clients don't have to know that the TPKT header is 4 bytes long).
svn path=/trunk/; revision=4669
Diffstat (limited to 'packet-sdp.c')
0 files changed, 0 insertions, 0 deletions