summaryrefslogtreecommitdiff
path: root/llc.h
Commit message (Collapse)AuthorAgeFilesLines
* remove tcpdump's own CVS keywordsDenis Ovsienko2014-01-031-2/+0
| | | | | | Remove lots of $Header's and a few $Id's that all belong to the former CVS repository of tcpdump itself. These keywords have been frozen since the migration to git in late 2008.
* There's another Cisco-private encapsulation of BPDUs.Guy Harris2013-04-131-0/+1
| | | | | At least according to the Wireshark STP dissector, SNAP frames with the Cisco OUI and a PID of 0x010c contain BPDUs, for "VLAN Bridge".
* From From Carles Kishimoto <carles.kishimoto@gmail.com>:hannes2007-04-131-1/+2
| | | | | add support for per-VLAN spanning tree and per-VLAN rapid spanning tree
* From Carles Kishimoto <carles.kishimoto@gmail.com>:hannes2007-03-191-1/+2
| | | | | add support for unidirectional link detection as per http://www.ietf.org/internet-drafts/draft-foschiano-udld-02.txt
* From Steinar Haug: print basic info about a few more Cisco LANguy2007-02-081-1/+3
| | | | protocols.
* bugfix: bogus SS codepoints, display ctrl field correct, added 'Poll' token ↵hannes2005-12-011-2/+2
| | | | for I/S frames
* rework the LLC printer:hannes2005-09-291-1/+5
| | | | | | | | -remove tok2str() and bittok2str() lookalikes -print length field -print more self-describing tokensstring e.g. "Receiver not ready" instead of "rnr" -add codepoint for SNA
* Make "snap_print()" handle fetching and printing the OUI.guy2005-04-261-34/+2
| | | | | | | | | | | | | | | | | | Don't copy the LLC header to a "struct llc", just construct the individual fields. Fetch the control field early in the dissection process, and check to make sure we have at least 4 bytes of LLC header if it's not a U frame. Fetch both bytes of the control field for I and S frames, and display all 4 hex digits of it. Only dissect UI frames as BPDUs, and pass the BPDU dissector a pointer to the beginning of the BPDU, not the beginning of the LLC header - not all BPDUs are encapsulated in LLC headers. Only dissect UI frames as IP packets. Do bounds checking in "snap_print()".
* move the SNAP OUI values out of the llc printer intohannes2005-04-061-7/+1
| | | | | | | the global oui.c file and make all SNAP printers use it make the display output of the frame-relay SNAP printer consistent to the LLC SNAP printer (= print oui{id,name}, proto-id)
* The "__attribute__((packed))" tag on structures causes some files not toguy2002-12-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | compile with Sun C, as "interface.h" isn't being included before the structures are being declared. Furthermore, in the files that Sun C *can* compile, it doesn't cause Sun C to generate code that's safe with unaligned accesses, as "__attribute__" is defined as a do-nothing macro with compilers that don't support it. Therefore, we get rid of that tag on the structures to which it was added, and instead use "EXTRACT_16BIT()" and "EXTRACT_32BIT()" to fetch 16-bit and 32-bit big-endian quantities from packets. We also fix some other references to multi-byte quantities to get rid of code that tries to do unaligned loads on platforms that don't support them. We also throw in a hack that makes those macros use "__attribute__((packed))" on structures containing only one 16-bit or 32-bit integer to get the compiler to generate unaligned-safe code rather than doing it by hand. (GCC on SPARC produces the same code that doing it by hand does; I don't know if GCC on any other big-endian strict-alignment processor generates better code for that case. On little-endian processors, as "ntohs()" and "ntohl()" might be functions, that might actually produce worse code.) Fix some places to use "%u" rather than "%d" to print unsigned quantities.
* put __attribute__((packed)) to packet headers. s/u_short/u_int16_t/ and soitojun2002-11-091-2/+2
| | | | forth while i'm here
* Support RFC 2684 bridging of Ethernet, 802.5 Token Ring, and FDDI, andguy2002-04-071-2/+23
| | | | RFC 2684 encapsulation of BPDUs.
* Add a #define for the OUI for LLC+SNAP-encapsulated Ethernet.guy2001-06-041-3/+5
| | | | | | Treat LLC+SNAP packets with an OUI of 0x0000f8 the same way we treat encapsulated Ethernet packets - that OUI is used by Cisco for some forms of bridging.
* Demux SNAP packets all in one place, unifying CDP, SNAP-encapsulatedfenner2001-05-101-3/+7
| | | | ethernet, and Appletalk dispatching.
* Fix apparent typos.fenner2001-05-091-3/+3
|
* Document the "netbeui" filter expression keyword.guy2001-01-281-4/+7
| | | | | Add a #define LLCSAP_NETBEUI for the NetBEUI LLC SAP, and use that rather than "0xf0" in the LLC dissector.
* LLC frames with a DSAP and LSAP of 0xe0 are IPX frames, and so are Linuxguy2001-01-151-1/+4
| | | | | cooked frames with a type value of LINUX_SLL_P_802_3; dissect them as such.
* Pass only I frames and UI frames to the NetBEUI printer; thanks and aguy2000-12-181-8/+8
| | | | | | | | tip of the Hatlo hat to Pascal Hennequin <pascal.hennequin@int-evry.fr> for catching this one. Also, the control field in an S or I frame is little-endian; treat it as such, fixing various #defines in "llc.h" to match.
* always use u_intXX_t for protocol format declaration. char/short/int may notitojun2000-10-031-10/+10
| | | | | | come with exact size. while at it, correct signedness of ip/udp header field. nuke most of the use of bitfield. TODO: bitfield in namser.h
* Initial revisionmcr1999-10-071-0/+120