aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ucp.c
AgeCommit message (Collapse)AuthorFilesLines
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-2595/+0
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-03-23If we don't find a trailing / in a parameter, throw the appropriateGuy Harris1-13/+9
exception (that's what the old code that did its own scan did). svn path=/trunk/; revision=10447
2004-03-20Don't use fixed-length buffers for strings - there's no absolute stringGuy Harris1-28/+50
length. svn path=/trunk/; revision=10417
2004-03-05From Tom Uijldert: decode and display alphanumeric message content andGuy Harris1-8/+74
password as well. svn path=/trunk/; revision=10316
2003-11-25From Reinhard Speyerer: handle 10-digit UCP dates, which lack a secondsGuy Harris1-1/+3
value. svn path=/trunk/; revision=9092
2003-06-26From Tom Uijldert: fix some fields to use the appropriate value_stringGuy Harris1-2/+2
tables. svn path=/trunk/; revision=7942
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-5/+5
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-9/+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
2002-07-17From Joerg Mayer:Guy Harris1-5/+1
dftest.c: Remove #if-0-ed includes packet-ieee80211.c, packet-wtls.c, packet-afp.c, packet-wsp.c, packet-wtp.c, ethereal_gen.py: Remove redundant include varargs (already in snprintf.h, and required only for snprintf.h) Remove unused include of snprintf.h from files not using "snprintf()". svn path=/trunk/; revision=5889
2002-06-20From Tom Uijldert:Guy Harris1-3/+4
- Remove compiler warnings - Support operation '0' svn path=/trunk/; revision=5715
2002-04-11From Tom Uijldert: create a subtree with "proto_item_add_subtree()",Guy Harris1-29/+33
rather than just using an item as a tree. svn path=/trunk/; revision=5142
2002-03-10Initialize the "tm_isdst" field of a "struct tm" to -1 before passing itGuy Harris1-1/+2
to "mktime()". svn path=/trunk/; revision=4908
2002-02-15Undo the change of "UcpHandleByte(hf_ucp_parm_NT);" toGuy Harris1-2/+2
"UcpHandleString(hf_ucp_parm_NT);" - the field really is one character long, as per the (correct) change from FT_STRING to FT_UINT8. svn path=/trunk/; revision=4739
2002-02-14Register hf_ucp_parm_NT as an FT_UINT8 instead of FT_STRING,Gilbert Ramirez1-3/+3
and use the vals_parm_NT value string in that registration. Thanks to Marcin Gryszkalis <mgryszkalis@cerint.pl> for the bug report. svn path=/trunk/; revision=4736
2002-01-24Replace a bunch of "tvb_length()" and "tvb_length_remaining()" calls inGuy Harris1-3/+2
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
2002-01-21Include files from the "epan" directory and subdirectories thereof withGuy Harris1-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
2001-12-17Get rid of calls to "proto_is_protocol_enabled()" in heuristicGuy Harris1-4/+1
dissectors - the infrastructure for calling heuristic dissectors won't call a heuristic dissector for a protocol if the protocol isn't enabled, so there's no need for the dissector itself to check that. svn path=/trunk/; revision=4419
2001-12-10Move the pointer to the "column_info" structure in the "frame_data"Guy Harris1-8/+8
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
2001-12-03Get rid of the lists of conversation dissectors; instead, have aGuy Harris1-3/+4
dissector table contain both a hash table, to use to look up port numbers to find a dissector, and a list of all dissectors that *could* be assigned to ports in that hash table, to be used by user interface code. Make the "Decode As" dialog box code use that. Also make it *not* let you choose whether to set the dissector for both the UDP and TCP versions of a port; some protocols run only atop TCP, some run only atop UDP, and even those that can run atop both may have different dissector handles to use over TCP and UDP, so handling a single merged list would be a mess. (If the user is setting the dissector for a TCP port, only those protocols that Ethereal can handle over TCP should be listed; if the user is setting the dissector for a UDP port, only those protocols that Ethereal can handle over TCP should be listed; if the user is setting a dissector for both, only those protocols that Ethereal can handle over *both* TCP *and* UDP should be listed, *and* there needs to be a way to let the "Decode As" code get both the TCP handle *and* the UDP handle and use the right ones. If somebody really wants that, they need to implement all of the above if they want the code to be correct.) Fix the code that handles setting the dissection for the IP protocol number to correctly update the lists of protocols being dissected as TCP and as UDP; the code before this change wasn't updating the single such list to add new protocols. svn path=/trunk/; revision=4311
2001-12-03Make "dissector_add()", "dissector_delete()", and "dissector_change()"Guy Harris1-2/+5
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
2001-11-05From Tom Uijldert: have an non-heuristic UCP dissector, and register itGuy Harris1-17/+50
as a TCP conversation dissector, so that it can be selected in the "Decode As" dialog box. svn path=/trunk/; revision=4163
2001-10-15Fixes from Steffen Weinreich:Guy Harris1-4/+8
fix the processing of the month and year fields in the SCTC Timestamp (the month is 1-origin, so subtract 1 from it before putting it in "tm_mon", which is 0-origin; the year is a 2-digit field that is, at least, Y2K-safe (but Y2.1K-unsafe), so if it's less than 90, assume it's in the 21st century); UCP OT 50-57 messages have a fixed number of fields and a special handling of the MT is not necessary, so get rid of that. Also, fix a typo in a comment. svn path=/trunk/; revision=4030
2001-10-08As UCP is atop TCP, its dissector isn't called unless there's at leastGuy Harris1-8/+6
one byte in the tvbuff being handed to it, so the check I added for the existence of that byte is unnecessary. svn path=/trunk/; revision=4011
2001-10-08Remove the check I added to see whether the length of the packet, basedGuy Harris1-5/+1
on the location of the UCB_ETX, is greater than the length of the tvbuff - that can never happen, as the UCB_ETX is, as it was found, definitely inside the tvbuff. svn path=/trunk/; revision=4010
2001-10-08UCP support, from Tom Uijldert.Guy Harris1-0/+2484
svn path=/trunk/; revision=4009