aboutsummaryrefslogtreecommitdiffstats
path: root/packet-bpdu.c
Commit message (Collapse)AuthorAgeFilesLines
* Add tvbuff class.Gilbert Ramirez2000-05-111-19/+19
| | | | | | | | | | | | | | | 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
* Register a "llc.dsap" dissector table for 802.2 LLC, and have dissectorsGuy Harris2000-04-171-1/+8
| | | | | | | | | | for protocols that run inside 802.2 LLC register themselves with it using "dissector_add()". Make various dissectors static if they can be, and remove from header files declarations of those dissectors. svn path=/trunk/; revision=1872
* Break proto_tree_add_item_format() into multiple functions:Gilbert Ramirez2000-03-121-4/+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
* Get rid of the include of "util.h" that some dissectors do - it's notGuy Harris2000-01-161-2/+1
| | | | | | necessary. svn path=/trunk/; revision=1496
* Replace the ETT_ "enum" members, declared in "packet.h", withGuy Harris1999-11-161-3/+8
| | | | | | | | | | | | | | | | | 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
* Replace proto_tree_add_item_format by proto_tree_add_item.Laurent Deniel1999-10-161-26/+30
| | | | svn path=/trunk/; revision=854
* New proto_tree header_field_info stuff. Header_field_infos now containGilbert Ramirez1999-10-121-13/+25
| | | | | | | | | | | | | | | | | | | | | the base for numbers to be displayed in, bitmasks for bitfields, and blurbs (which are one or two sentences describing the field). proto_tree_add*() routines now automatically handle bitfields. You tell it which header field you are adding, and just pass it the value of the entire field, and the proto_tree routines will do the masking and shifting for you. This means that bitfields are more naturally filtered via dfilter now. Added Phil Techau's support for signed integers in dfilters/proto_tree. Added the beginning of the SNA dissector. It's not complete, but I'm committing it now because it has example after example of how to use bitfields with the new header_field_info struct and proto_tree routines. It was the impetus to change how header_field_info works. svn path=/trunk/; revision=815
* - dissect data if type unknownLaurent Deniel1999-10-091-22/+105
| | | | | | - add display filters svn path=/trunk/; revision=793
* The abbreviation for a protocol is generally all-lower-case, as it'sGuy Harris1999-10-081-2/+2
| | | | | | | used as a display filter to match all packets that contain data for that protocol. svn path=/trunk/; revision=791
* Christophe Tronche's BPDU dissector.Guy Harris1999-10-081-0/+160
svn path=/trunk/; revision=790