aboutsummaryrefslogtreecommitdiffstats
path: root/xdlc.h
AgeCommit message (Collapse)AuthorFilesLines
2000-01-24xDLC frames other than I and UI frames may have a payload, e.g. TESTGuy Harris1-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
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-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
1999-11-11"XDLC_CONTROL_LEN()" actually returned the length of the entire xDLCGuy Harris1-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
1999-10-10Changed the macro XDLC_HAS_PAYLOAD(control) to look at only the firstGilbert Ramirez1-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
1999-09-27Replace the parens around 'control' in the two macros that I modified. IGilbert Ramirez1-3/+3
accidentally removed them. svn path=/trunk/; revision=732
1999-09-27When checking whether a control field is for a UI frame, you have toGuy Harris1-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
1999-09-27Mask out unnecessary bits in control guint16 in order to properlyGilbert Ramirez1-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
1999-09-26Have "get_xdlc_control()" and "dissect_xdlc_control()" return theGuy Harris1-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
1999-08-23Have "get_xdlc_control()" and "dissect_xdlc_control()" just return aGuy Harris1-26/+1
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-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
1999-08-04Add a "dissect_xdlc_control()" routine, to dissect the control field ofGuy Harris1-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