aboutsummaryrefslogtreecommitdiffstats
path: root/packet-icq.c
AgeCommit message (Collapse)AuthorFilesLines
2000-05-11Add tvbuff class.Gilbert Ramirez1-80/+112
Add exceptions routines. Convert proto_tree_add_*() routines to require tvbuff_t* argument. Convert all dissectors to pass NULL argument ("NullTVB" macro == NULL) as the tvbuff_t* argument to proto_tree_add_*() routines. dissect_packet() creates a tvbuff_t, wraps the next dissect call in a TRY block, will print "Short Frame" on the proto_tree if a BoundsError exception is caught. The FDDI dissector is converted to use tvbuff's. svn path=/trunk/; revision=1939
2000-04-08Move calls to "dissector_add()" out of the register routines for TCP andGuy Harris1-10/+18
UDP and into the handoff registration routines for the protocols in question. Make the dissectors for those protocols static if they're not called outside the dissector's source file. Get rid of header files if all they did was declare dissectors that are now static; remove declarations of now-static dissectors from header files that do more than just declare the dissector. svn path=/trunk/; revision=1823
2000-03-14Convert two instances of proto_tree_add_uint_format() toGilbert Ramirez1-5/+5
proto_tree_add_protocol_format(). I had converted them incorrectly when I changed them from their original proto_tree_add_item_format(). svn path=/trunk/; revision=1717
2000-03-12Break proto_tree_add_item_format() into multiple functions:Gilbert Ramirez1-33/+33
proto_tree_add_protocol_format() proto_tree_add_uint_format() proto_tree_add_ipxnet_format() proto_tree_add_ipv4_format() proto_tree_add_ipv6_format() proto_tree_add_bytes_format() proto_tree_add_string_format() proto_tree_add_ether_format() proto_tree_add_time_format() proto_tree_add_double_format() proto_tree_add_boolean_format() If using GCC 2.x, we can check the print-format against the variable args passed in. Regardless of compiler, we can now check at run-time that the field type passed into the function corresponds to what that function expects (FT_UINT, FT_BOOLEAN, etc.) Note that proto_tree_add_protocol_format() does not require a value field, since the value of a protocol is always NULL. It's more intuitive w/o the vestigial argument. Fixed a proto_tree_add_item_format-related bug in packet-isis-hello.c Fixed a variable usage bug in packet-v120.c. (ett_* was used instead of hf_*) Checked in Guy's fix for the function declearation for proto_tree_add_text() and proto_tree_add_notext(). svn path=/trunk/; revision=1713
2000-03-07Fix some "proto_tree_add_text()" calls.Guy Harris1-64/+73
Reorganize "icqv5_cmd_send_text_code()" a bit so that it only puts an item into the tree if it's present in the packet. svn path=/trunk/; revision=1697
2000-01-24Fix a bunch of dissectors to use "pi.captured_len" rather thanGuy Harris1-5/+2
"fd->cap_len" for the frame length - or to use macros such as "BYTES_ARE_IN_FRAME()", "IS_DATA_IN_FRAME()", and "END_OF_FRAME", which use "pi.captured_len" - so that they correctly handle frames where the actual data length of the packet is less than the size of the raw frame, e.g. with encapsulations such as ISL. svn path=/trunk/; revision=1530
1999-12-05Updates from Kojak.Guy Harris1-144/+312
svn path=/trunk/; revision=1221
1999-12-01Fix the "proto_tree_add_item_format()" call for CMD_STATUS_CHANGE.Guy Harris1-1/+2
svn path=/trunk/; revision=1176
1999-11-18Clean up some ANSI C nits pointed out by "gcc -pedantic".Guy Harris1-2/+2
svn path=/trunk/; revision=1060
1999-11-16Replace the ETT_ "enum" members, declared in "packet.h", withGuy Harris1-37/+52
dynamically-assigned "ett_" integer values, assigned by "proto_register_subtree_array()"; this: obviates the need to update "packet.h" whenever you add a new subtree type - you only have to add a call to "proto_register_subtree_array()" to a "register" routine and an array of pointers to "ett_", if they're not already there, and add a pointer to the new "ett_" variable to the array, if they are there; would allow run-time-loaded dissectors to allocate subtree types when they're loaded. svn path=/trunk/; revision=1043
1999-11-06Updates to the ICQ decoder, from Kojak.Guy Harris1-229/+1433
svn path=/trunk/; revision=981
1999-11-03Include <time.h>, so as to declare "ctime()" on systems whereGuy Harris1-1/+2
<sys/time.h> doesn't include <time.h>. svn path=/trunk/; revision=968
1999-10-25Ensure that "password" is '\0'-terminated.Guy Harris1-2/+3
svn path=/trunk/; revision=925
1999-10-25Update from Kojak to dissect ICQ login packets and text messages.Guy Harris1-55/+499
svn path=/trunk/; revision=924
1999-10-24Kojak's ICQ dissector.Guy Harris1-0/+563
svn path=/trunk/; revision=919