aboutsummaryrefslogtreecommitdiffstats
path: root/packet-quakeworld.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer2002-08-021-5/+1
| | | | | | | | equivalents for the toplevel directory. The removal of winsock2.h will hopefully not cause any problems under MSVC++, as those files using struct timeval still include wtap.h, which still includes winsock2.h. svn path=/trunk/; revision=5932
* Make various text buffers all the same size, so that, for example, weGuy Harris2002-06-091-6/+8
| | | | | | | don't overflow the token buffer if presented with a maximum-sized command. svn path=/trunk/; revision=5659
* From Joerg Mayer:Guy Harris2002-04-141-8/+8
| | | | | | | | | | | | Declares some variables static. Creates a new include file packet-rsvp.h, and make use of it (change some extern decls to #inlcude). Move the file packet-pgm.h into packet-pgm.c as it is not used by anything outside packet-pgm.c. svn path=/trunk/; revision=5162
* code cleanup: removed unused parameterUwe Girlich2002-04-021-3/+3
| | | | svn path=/trunk/; revision=5087
* Replace a bunch of "tvb_length()" and "tvb_length_remaining()" calls inGuy Harris2002-01-241-8/+6
| | | | | | | | | | | | arguments to "proto_tree_add_text()", and to "proto_tree_add_XXX()" calls that add FT_NONE or FT_PROTO items to the protocol tree, with -1. Replace some calls to "tvb_length()" or "tvb_length_remaining()" with calls to "tvb_reported_length()" and "tvb_reported_length_remaining()", as those give the actual length of the data in the packet, not just the data that happened to be captured. svn path=/trunk/; revision=4605
* Include files from the "epan" directory and subdirectories thereof withGuy Harris2002-01-211-2/+2
| | | | | | | | | | | | | "epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). svn path=/trunk/; revision=4586
* Move the pointer to the "column_info" structure in the "frame_data"Guy Harris2001-12-101-11/+11
| | | | | | | | | | | | | | | structure to the "packet_info" structure; only stuff that's permanently stored with each frame should be in the "frame_data" structure, and the "column_info" structure is not guaranteed to hold the column values for that frame at all times - it was only in the "frame_data" structure so that it could be passed to dissectors, and, as all dissectors are now passed a pointer to a "packet_info" structure, it could just as well be put in the "packet_info" structure. That saves memory, by shrinking the "frame_data" structure (there's one of those per frame), and also lets us clean up the code a bit. svn path=/trunk/; revision=4370
* Make "dissector_add()", "dissector_delete()", and "dissector_change()"Guy Harris2001-12-031-6/+8
| | | | | | | | take a dissector handle as an argument, rather than a pointer to a dissector function and a protocol ID. Associate dissector handles with dissector table entries. svn path=/trunk/; revision=4308
* Change "conversation_set_dissector()" to take a dissector handle, ratherGuy Harris2001-11-271-11/+2
| | | | | | | | | | | | | | | | | | | | | than a pointer to a dissector function, as an argument. This means that the conversation dissector is called through "call_dissector()", so the dissector itself doesn't have to worry about checking whether the protocol is enabled or setting "pinfo->current_proto", so get rid of the code that does that in conversation dissectors. Also, make the conversation dissectors static. Get rid of some direct calls to dissectors; replace them with calls through handles, and, again, get rid of code to check whether a protocol is enabled and set "pinfo->current_proto" where that code isn't needed. Make those dissectors static if they aren't already static. Add a routine "create_dissector_handle()" to create a dissector handle without registering it by name, if the dissector isn't used outside the module in which it's defined. svn path=/trunk/; revision=4281
* Switched from using CHECK_DISPLAY_AS_DATA to using CHECK_DISPLAY_AS_XEd Warnicke2001-11-261-2/+2
| | | | | | | which also takes a handle as an argument and thus doesn't call dissect_data directly. svn path=/trunk/; revision=4270
* Switched from calling dissect_data to using call_dissectorEd Warnicke2001-11-251-4/+5
| | | | svn path=/trunk/; revision=4263
* Before calling proto_tree_add_string, the correct proto_tree shouldUwe Girlich2001-07-221-2/+2
| | | | | | be checked and not any upper proto_tree object. svn path=/trunk/; revision=3766
* New function added to dissect a infostring. I'll use it for other games too.Uwe Girlich2001-07-211-80/+121
| | | | | | Connectionless packets are now better splitted in command and arguments. svn path=/trunk/; revision=3763
* The connect request (client to server) is now much more detailed.Uwe Girlich2001-07-211-15/+475
| | | | svn path=/trunk/; revision=3762
* initial checkin of the QuakeWorld network protocol dissectorUwe Girlich2001-06-211-0/+424
svn path=/trunk/; revision=3592