aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ieee8023.c
Commit message (Collapse)AuthorAgeFilesLines
* Move dissectors to epan/dissectors directory.Gilbert Ramirez2004-07-181-121/+0
| | | | | | | | | | Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410
* Set the svn:eol-style property on all text files to "native", so thatGuy Harris2004-07-181-1/+1
| | | | | | | | | they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
* Save the current_proto value before calling subdissectors, and restoreGuy Harris2004-02-211-2/+7
| | | | | | | it if we catch an exception (after showing the exception), so that subsequent exceptions will have the right protocol. svn path=/trunk/; revision=10159
* Handle exceptions the same way we handle them in the DCE RPC dissector -Guy Harris2004-02-211-32/+14
| | | | | | | | rethrow BoundsError, call "show_exception()" for all other errors, and then fall through to dissect the trailer outside the TRY/CATCH/ENDRY construct. svn path=/trunk/; revision=10149
* Handle the case where, after an exception is thrown dissecting the bodyGuy Harris2004-02-201-10/+31
| | | | | | | of the 802.3 packet, we get *another* exception when dissecting the trailer (consider a truncated frame with a malformed body). svn path=/trunk/; revision=10123
* Have a pseudo-header for Ethernet packets, giving the size of the FCS -Guy Harris2003-10-011-4/+5
| | | | | | | | | | | | | | | | | | 0 means "there is no FCS in the packet data", 4 means "there is an FCS in the packet data", -1 means "I don't know whether there's an FCS in the packet data, guess based on the packet size". Assume that Ethernet encapsulated inside other protocols has no FCS, by having the "eth" dissector assume that (and not check for an Ethernet pseudo-header). Have "ethertype()" take an argument giving the FCS size; pass 0 when appropriate. Fix up Wiretap routines to set the pseudo-header. This means we no longer use the "generic" seek-and-read routine, so get rid of it. svn path=/trunk/; revision=8574
* Sometimes Ethernet captures include an FCS at the end of the packet.Guy Harris2003-08-211-26/+9
| | | | | | | | | | | An Ethernet trailer is only needed to pad the packet to 60 bytes of Ethernet header plus payload; if the packet has what appears to be a trailer, and it's 4 or more bytes (i.e., long enough to include an FCS), and the Ethernet frame was claimed to have 64 or more bytes (i.e., it has at least an FCS worth of data more than the minimum 60 bytes), assume that the last 4 bytes of the frame were an FCS. svn path=/trunk/; revision=8207
* Removed trailing whitespaces from .h and .c files using theJörg Mayer2002-08-281-4/+4
| | | | | | | winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
* Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer2002-08-021-5/+1
| | | | | | | | equivalents for the toplevel directory. The removal of winsock2.h will hopefully not cause any problems under MSVC++, as those files using struct timeval still include wtap.h, which still includes winsock2.h. svn path=/trunk/; revision=5932
* Include files from the "epan" directory and subdirectories thereof withGuy Harris2002-01-211-4/+3
| | | | | | | | | | | | | "epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). svn path=/trunk/; revision=4586
* Pull a lot of common code for handling 802.3 frames (i.e., frames with aGuy Harris2001-02-081-0/+134
length field rather than an Ethernet type field) into a "dissect_802_3()" routine. In that routine, catch exceptions thrown by the IPX or LLC dissector or dissectors under them, so that the trailer information is added to the tree even if an exception is thrown (similar to what "ethertype()" does). svn path=/trunk/; revision=3002