aboutsummaryrefslogtreecommitdiffstats
path: root/packet-tpkt.h
AgeCommit message (Collapse)AuthorFilesLines
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-4/+4
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-05-13Have "is_tpkt()" take a minimum-payload-length argument and checkGuy Harris1-2/+6
whether the length value in the TPKT header is large enough to include that much payload - if not, report the packet as not being a TPKT packet. Have the heuristic Q.931 dissector supply the appropriate value. svn path=/trunk/; revision=5457
2002-02-23"is_tpkt()" is always used to check a TCP segment to see if it mightGuy Harris1-5/+4
have a TPKT header at the beginning, so there's not need for it to have an offset as an argument; its callers don't have to know how big the TPKT header is (or we can put a #define in "packet-tpkt.h" for it). Get rid of the second argument. svn path=/trunk/; revision=4791
2002-02-22Handle TPKT packets split across segment boundaries, and multiple TPKTGuy Harris1-10/+6
packets per segment. Instead of having a routine for dissectors such as the Q.931 dissector to call to dissect the TPKT header, have a routine that does all the reassembly and multiple-packets-per-segment work, and have the Q.931 dissector call it. Export "is_tpkt()", and the new routine, to plugins. Add preferences for TPKT and Q.931 reassembly. svn path=/trunk/; revision=4778
2002-02-02Clean up the heuristic code in the Q.931 dissector. If it's a heuristicGuy Harris1-6/+7
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
2001-06-12Give a number of files RCS IDs.Guy Harris1-2/+3
Give "proto_hier_stats.h" a standard header. svn path=/trunk/; revision=3540
2001-03-28Handle, in the Q.931 heuristic dissector, the case where TPKT isn'tGuy Harris1-2/+2
enabled. Fix comments to explain that a return of -1 from "dissect_tpkt_header()" means "TPKT wasn't enabled". svn path=/trunk/; revision=3200
2001-03-28Support for TPKT being used for its original purpose (TCP port > 102,Guy Harris1-3/+17
containing OSI transport layer PDUs). Enable the Q.931-inside-TPKT code (but not the H.225 stuff, as that requires Andreas Sikkema's H.225 dissector). Update it to match his current modified Q.931 dissector. svn path=/trunk/; revision=3199
2000-10-19Andreas Sikkema's new H.261 and TPKT dissectors, replacement RTCP andGuy Harris1-0/+30
RTP dissectors, and changes to the Q.931 dissector for use with H.323. svn path=/trunk/; revision=2511