aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ieee8023.c
AgeCommit message (Collapse)AuthorFilesLines
2013-09-05Remove commented out expert_add_info_formatMichael Mann1-5/+0
svn path=/trunk/; revision=51762
2013-09-05Add filterable expert info to dissect_802_3() and clean up the shrapnel.Michael Mann1-1/+5
svn path=/trunk/; revision=51761
2013-02-28Update a comment.Guy Harris1-4/+4
svn path=/trunk/; revision=47947
2013-02-27Move show_exception() and show_reported_bounds_error() toGuy Harris1-34/+22
epan/show_exception.c, as it's used outside epan/dissectors/packet-frame.c. Update their callers to include <epan/show_exception.h> to get their declaration. Add a CATCH_NONFATAL_ERRORS macro that catches all exceptions that, if there's more stuff in the packet to dissect after the dissector call that threw the exception, doesn't mean you shouldn't go ahead and dissect that stuff. Use it in all those cases, including ones where BoundsError was inappropriately being caught (you want those passed up to the top level, so that the packet is reported as having been cut short in the capture process). Add a CATCH_BOUNDS_ERRORS macro that catches all exceptions that correspond to running past the end of the data for a tvbuff; use it rather than explicitly catching those exceptions individually, and rather than just catching all exceptions (the only place that DissectorError should be caught, for example, is at the top level, so dissector bugs show up in the protocol tree). Don't catch and then immediately rethrow exceptions without doing anything else; just let the exceptions go up to the final catcher. Use show_exception() to report non-fatal errors, rather than doing it yourself. If a dissector is called from Lua, catch all non-fatal errors and use show_exception() to report them rather than catching only ReportedBoundsError and adding a proto_malformed item. Don't catch exceptions when constructing a trailer tvbuff in packet-ieee8023.c - just construct it after the payload has been dissected, and let whatever exceptions that throws be handled at the top level. Avoid some TRY/CATCH/ENDTRY cases by using checks such as tvb_bytes_exist() before even looking in the tvbuff. svn path=/trunk/; revision=47924
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45017
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2010-10-08Restore pinfo->private_data after an exception was thrown by a subdissector.Jeff Morriss1-0/+9
This is necessary in case a subdissector had changed it but was unable to restore it (due to the exception). Remove check_col(). svn path=/trunk/; revision=34436
2010-06-19Use top level tree when using dissectors from "eth.trailer" heuristics.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=33255
2009-08-16Switch a bunch of dissectors over to using tvb_new_subset_remaining()Kovarththanan Rajaratnam1-1/+1
svn path=/trunk/; revision=29446
2009-01-18From Matt P:Jaap Keuter1-3/+12
CCSDS packets may reside within an 802.3 packet. This patch provides a way for the CCSDS dissector to be called from the 802.3 dissector. svn path=/trunk/; revision=27257
2008-07-13If we know that an Ethernet packet includes the FCS, remove the FCS fromGuy Harris1-6/+25
the payload we hand to the next dissector. Check whether the length field in an 802.3 header doesn't go past the (presumed) end of the payload. svn path=/trunk/; revision=25731
2007-12-16Big 2104 - From Benn Bollay:Sake Blok1-1/+1
This patch adds a heuristic dissector to the ethernet trailer under the keystring "eth.trailer". This allows for other protocol plugins which coopt the ethernet trailer for their own devices to register for trailer traffic without requiring any further changes to the executable. svn path=/trunk/; revision=23880
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2005-08-13Construct the tvbuff for the payload of an 802.3 packet to have theGuy Harris1-28/+11
appropriate length (min(reported length, captured data present)). svn path=/trunk/; revision=15343
2005-05-30From Steve Grubb: Initialize some variables. Fixes part of bug 217.Gerald Combs1-2/+2
svn path=/trunk/; revision=14497
2005-05-14When we catch an exception, make sure we don't throw the same exception againGerald Combs1-3/+13
(and catch it again in the process). Fixes bug 170. svn path=/trunk/; revision=14368
2005-01-16throw the new FieldError exception, if a dissector tries to add a field with ↵Ulf Lamping1-1/+1
invalid parameters add a message parameter to the show_exception function svn path=/trunk/; revision=13074
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+121
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