aboutsummaryrefslogtreecommitdiffstats
path: root/xdlc.h
Commit message (Collapse)AuthorAgeFilesLines
* From Joerg Mayer: get rid of unused function arguments.Guy Harris2002-03-311-2/+2
| | | | svn path=/trunk/; revision=5053
* Miscellaneous code cleaningLaurent Deniel2000-08-111-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add <stdarg.h> or <varargs.h> in snprintf.h and remove those inclusions in the other #ifdef NEED_SNPRINTF_H codes - remove the check of multiple inclusions in source (.c) code (there is a bit loss of _cpp_ performance, but I prefer the gain of code reading and maintenance; and nowadays, disk caches and VM are correctly optimized ;-). - protect all (well almost) header files against multiple inclusions - add header (i.e. GPL license) in some include files - reorganize a bit the way header files are included: First: #include <system_include_files> #include <external_package_include_files (e.g. gtk, glib etc.)> Then #include "ethereal_include_files" with the correct HAVE_XXX or NEED_XXX protections. - add some HAVE_XXX checks before including some system header files - add the same HAVE_XXX in wiretap as in ethereal Please forgive me, if I break something (I've only compiled and regression tested on Linux). svn path=/trunk/; revision=2254
* Convert LAPD and V.120 dissector to use tvbuff. Convert xdlc dissector-helper,Gilbert Ramirez2000-05-311-2/+2
| | | | | | too. svn path=/trunk/; revision=2030
* xDLC frames other than I and UI frames may have a payload, e.g. TESTGuy Harris2000-01-241-4/+5
| | | | | | | | frames; rename "XDLC_HAS_PAYLOAD()" to "XDLC_IS_INFORMATION()", and if the frame isn't an "information" frame, dissect its payload (if any) as data. svn path=/trunk/; revision=1528
* Fix Gerald's e-mail address.Guy Harris2000-01-071-2/+2
| | | | svn path=/trunk/; revision=1437
* Replace the ETT_ "enum" members, declared in "packet.h", withGuy Harris1999-11-161-2/+3
| | | | | | | | | | | | | | | | | 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
* "XDLC_CONTROL_LEN()" actually returned the length of the entire xDLCGuy Harris1999-11-111-3/+3
| | | | | | | | | | header, under the assumption that the address field was two octets. It should return the length of the *control* field, and leave it up to its caller to add in the length of the address field. (The address field appears to be one byte in SNA, not two bytes.) svn path=/trunk/; revision=1006
* Changed the macro XDLC_HAS_PAYLOAD(control) to look at only the firstGilbert Ramirez1999-10-101-2/+2
| | | | | | | | | | | bit of 'control' to check to see if it's an information frame: #define XDLC_HAS_PAYLOAD(control) \ (((control) & 0x1) == XDLC_I || (control) == (XDLC_UI|XDLC_U)) I had erroneously AND'ed with 0x3 when I first put the AND in there. svn path=/trunk/; revision=797
* Replace the parens around 'control' in the two macros that I modified. IGilbert Ramirez1999-09-271-3/+3
| | | | | | accidentally removed them. svn path=/trunk/; revision=732
* When checking whether a control field is for a UI frame, you have toGuy Harris1999-09-271-2/+2
| | | | | | | check all the bits of the control field (otherwise, you're just checking whether it's a U frame). svn path=/trunk/; revision=730
* Mask out unnecessary bits in control guint16 in order to properlyGilbert Ramirez1999-09-271-3/+3
| | | | | | | compare against XDLC_I, XDLC_UI, and XDLC_U in XDLC_HAS_PAYLOAD() and XDLC_CONTROL_LEN() macros. svn path=/trunk/; revision=729
* Have "get_xdlc_control()" and "dissect_xdlc_control()" return theGuy Harris1999-09-261-1/+44
| | | | | | | | | | | 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
* Have "get_xdlc_control()" and "dissect_xdlc_control()" just return aGuy Harris1999-08-231-26/+1
| | | | | | Boolean indicating whether the frame has any payload to dissect or not. svn path=/trunk/; revision=556
* The only LLC frame types that should be dissected based on their SAP or,Guy Harris1999-08-231-1/+29
| | | | | | | | 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
* Add a "dissect_xdlc_control()" routine, to dissect the control field ofGuy Harris1999-08-041-0/+36
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