aboutsummaryrefslogtreecommitdiffstats
path: root/xdlc.c
AgeCommit message (Collapse)AuthorFilesLines
2000-05-31Convert LAPD and V.120 dissector to use tvbuff. Convert xdlc dissector-helper,Gilbert Ramirez1-37/+37
too. svn path=/trunk/; revision=2030
2000-05-11Add tvbuff class.Gilbert Ramirez1-24/+24
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-03-14Fix some errors discovered by making GCC do format string/argumentGuy Harris1-5/+5
cross-checking, and by replacing "proto_tree_add_item_format()" by multiple routines to add items of various types. Make the arguments of "proto_tree_add_bytes_format()" and "proto_tree_add_string_format()" that specify the bytes or the string be "const" pointers, so that one can pass a "const" pointer without complaints from the compiler. Squelch a (bogus, but the compiler isn't in a position to know that) complaint about an uninitialized variable. svn path=/trunk/; revision=1716
2000-03-12Break proto_tree_add_item_format() into multiple functions:Gilbert Ramirez1-5/+5
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-01-07Fix Gerald's e-mail address.Guy Harris1-2/+2
svn path=/trunk/; revision=1437
1999-11-16Replace the ETT_ "enum" members, declared in "packet.h", withGuy Harris1-6/+6
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-09-26Have "get_xdlc_control()" and "dissect_xdlc_control()" return theGuy Harris1-54/+13
xDLC control field, so that its caller can not only determine from it whether the frame has a payload, but can also determine how long the control field is. Put macros in "xdlc.h" to determine both of those. Have "capture_llc()" and "dissect_llc()" use that information appropriately. svn path=/trunk/; revision=727
1999-09-26Make Information Frame honor is_extended variable when reading Control.Gilbert Ramirez1-2/+5
svn path=/trunk/; revision=725
1999-08-27No, 0xCC is SNRME. (I *told* you I hated reversing bit strings....)Guy Harris1-2/+1
svn path=/trunk/; revision=588
1999-08-27TEST is 0xE0, not 0xC0; 0xC0 is SNRME. (I hate having to reverse bitGuy Harris1-2/+4
strings....) Thanks to Tom Gallagher at Madge for pointing this out. svn path=/trunk/; revision=587
1999-08-23Have "get_xdlc_control()" and "dissect_xdlc_control()" just return aGuy Harris1-15/+44
Boolean indicating whether the frame has any payload to dissect or not. svn path=/trunk/; revision=556
1999-08-23The only LLC frame types that should be dissected based on their SAP or,Guy Harris1-27/+49
if the SAPs are SNAP, based on their ethertype are I frames and UI frames; others don't have payload to be dissected as belonging to other protocols. svn path=/trunk/; revision=555
1999-08-16Get rid of the comments saying "make ["decode_numeric_bitfield()"] shiftGuy Harris1-7/+1
the value appropriately!" - a change from Olivier Abad did so. svn path=/trunk/; revision=501
1999-08-05Patch from Olivier Abad to make it correctly display non-extendedGuy Harris1-3/+5
informatino frames. svn path=/trunk/; revision=443
1999-08-04Add a "dissect_xdlc_control()" routine, to dissect the control field ofGuy Harris1-0/+402
SDLC-derived protocols such as HDLC and derivatives of it such as LAPB, IEEE 802.2 LLC, and so on. Have the LLC and LAPB dissectors use it. Make "dissect_numeric_bitfield()" put the low-order bit of the bitfield in the low-order bit of an integer when printing it, so that the right value is printed. svn path=/trunk/; revision=434