aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-frame.c
AgeCommit message (Collapse)AuthorFilesLines
2006-01-25Use the right treeLuis Ontanon1-1/+1
svn path=/trunk/; revision=17099
2006-01-24Add register_postdissector() to the API.Luis Ontanon1-4/+3
Dissectors registered with register_postdissector() will be called after all other dissectors have been called. Use it to register mate. svn path=/trunk/; revision=17089
2006-01-22add Win32 Structured Exception Handling (SEH) at the same place we're ↵Ulf Lamping1-2/+26
already doing the Portable Exception Handling. This way we (hopefully) can continue dissecting with the next packet, even if a more serious exception had occured, e.g. a memory access violation or a divide by zero exception. Obviously, not all problems solved, as SEH won't protect us from other problems, e.g. endless loops and such svn path=/trunk/; revision=17070
2006-01-21add matched coloring rule name and string to the frame dissector output (or ↵Ulf Lamping1-1/+23
nothing if no coloring rule matched or none was set) svn path=/trunk/; revision=17068
2005-12-16From Stig BRonnie Sahlberg1-0/+27
Patch for COTP reassembly. There does not seem to be any reasonable or cleaner way to fix COTP reassembly than adding the frame.[ch] patch. svn path=/trunk/; revision=16813
2005-09-28Have show_exception() take a "const char *" as its exception message,Guy Harris1-3/+1
and not free the string to which it points. Pass to REPORT_DISSECTOR_BUG() strings allocated with ep_strdup_printf(), so that they're freed automatically. svn path=/trunk/; revision=16039
2005-09-23show the same [Packet size limited during capture] message in the column ↵Ulf Lamping1-1/+1
info, instead of the former (unintuitive) [Short Frame] svn path=/trunk/; revision=15979
2005-09-18as discussed in the Users list: replace "Short Frame" by "Packet size ↵Ulf Lamping1-3/+3
limited during capture" message svn path=/trunk/; revision=15855
2005-09-13add to the protocol item a short description what a "Short Frame" isUlf Lamping1-1/+1
svn path=/trunk/; revision=15786
2005-09-13don't simply remove the expert_info output at BoundsError, but add the ↵Ulf Lamping1-0/+5
comment from Guy why this (usually) isn't a bug (because of a short snapshot length). svn path=/trunk/; revision=15781
2005-09-13Move the definition of GNUC_FORMAT_CHECK() to its own header, use it inGuy Harris1-4/+3
column-utils.h, and add it to expert.h, so we check the arguments to "expert_add_info_format()", at least if the format argument is a constant string. Fix some more calls to "expert_add_info_format()" to pass it a format string. Don't record BoundsError exceptions as expert events - they merely reflect a capture done with a snapshot length too short to capture all of the packet (any case where it's caused by something else is a bug). svn path=/trunk/; revision=15776
2005-09-11I'm adding the "Expert Info" prototype now, as it seems to be in a state ↵Ulf Lamping1-4/+16
where others might have a look and probably already find it useful :-). Anyway, we can easily disable it at one or two places in the code if it get's in our way of a new release. Please see: http://wiki.ethereal.com/Development/ExpertInfo for a complete overview of the intended feature and it's current state of implementation. While I'm working on this, I've also added some more status result codes to the DCE/RPC and DCOM dissectors. svn path=/trunk/; revision=15754
2005-08-24EVERYTHING IN THE BUILDBOT IS GOING TO BE RED!!! Sorry! Ulf Lamping1-6/+3
I've done more than a day to change the timestamp resolution from microseconds to nanoseconds. As I really don't want to loose those changes, I'm going to check in the changes I've done so far. Hopefully someone else will give me a helping hand with the things left ... What's done: I've changed the timestamp resolution from usec to nsec in almost any place in the sources. I've changed parts of the implementation in nstime.s/.h and a lot of places elsewhere. As I don't understand the editcap source (well, I'm maybe just too tired right now), hopefully someone else might be able to fix this soon. Doing all those changes, we get native nanosecond timestamp resolution in Ethereal. After fixing all the remaining issues, I'll take a look how to display this in a convenient way... As I've also changed the wiretap timestamp resolution from usec to nsec we might want to change the wiretap version number... svn path=/trunk/; revision=15520
2005-08-06If a dissector writer directly throws DissectorError, don't punish theGuy Harris1-16/+26
user by crashing due to a null pointer dereference, punish the dissector writer by saying he or she didn't bother providing an explanation of the error. The exception message isn't a const string any more; make the "exception_message" argument to "show_exception()" a "char *", not a "const char *". svn path=/trunk/; revision=15251
2005-08-06Support throwing an exception with a null message pointer, and have theGuy Harris1-0/+1
message not be const (as we generate messages with "g_strdup_sprintf()", which means they need to be freed; using a null message means that we don't have to use a special string for exceptions with no message, and don't have to worry about not freeing that). Have THROW() throw an exception with a null message pointer. (This means that you crash if you throw DissectorError with THROW(). Don't do that - it means you don't get a more detailed explanation of the dissector problem. Use the DISSECTOR_ASSERT, etc. macros in epan/proto.h instead.) Free the exception message for DissectorError, as it's mallocated. svn path=/trunk/; revision=15250
2005-08-06In packet-frame.c, don't free static memory when we throw aGerald Combs1-1/+0
DissectorError. In packet-kerberos.c, restore pinfo->private_data if we throw an exception, which keeps the SMB dissector from throwing a DissectorError. Initialize variables in other places to squelch valgrind warnings. svn path=/trunk/; revision=15235
2005-08-04Exception handling fixes, and a fix to packet-frame.c,Gilbert Ramirez1-0/+9
from Richard van der Hoff. svn path=/trunk/; revision=15205
2005-06-22add a dummy variable frame_number to dissect_frame() and assign it the ↵Ronnie Sahlberg1-1/+6
current frame number so that the crashdump that buildbot generates will show which frame the problem occured in. this is useful since some bugs only trigger ia crash on some platforms. example bug 255 which does not trigger a crash on linux redhat 7.1 svn path=/trunk/; revision=14727
2005-06-01mark some fields as generated and clarify some field descriptionsUlf Lamping1-6/+10
svn path=/trunk/; revision=14517
2005-05-30More bug fixes from Steve Grubb. See bug 217 for details.Gerald Combs1-1/+1
svn path=/trunk/; revision=14496
2005-05-02- Add support for libpcap files for MTP2 with a per packet headerMichael Tüxen1-0/+19
indicating the direction, narrowband/broadband, and interface number. - Add support to display the direction and interface number. - Add support to packet-mtp2.c to use the broadband/narrowband indication. svn path=/trunk/; revision=14265
2005-04-11Major speed improvement for filtering and dissection.Ronnie Sahlberg1-7/+21
It should not dump core as far as all my tests are concerned and Menu_Statistics/ProtocolHierStats work It needs more testing and there might still be cases where it will crash that will need to be fixed but I feel it will be worth it since it will decrease the time to filter very large capture files dramatically. Real significant performance boost for very large captures. (If we cant fix all the problems we can just revert this patch) svn path=/trunk/; revision=14051
2005-01-20Squelch some compiler warnings.Guy Harris1-1/+1
svn path=/trunk/; revision=13133
2005-01-19Add a field called "frame.protocols" which shows the protocols presentGerald Combs1-2/+16
in the frame. The filter "frame.protocols contains ip:icmp:ip" could be used to find any ICMP packets containing IP headers. Clean up whitespace. svn path=/trunk/; revision=13118
2005-01-16Rename the FieldError exception to DissectorError.Guy Harris1-10/+15
Add a DISSECTOR_ASSERT() macro, which is the usual type of assertion macro, but throws a DissectorError exception with a message giving the flien and line number and the failed test as a string. Use that macro in "alloc_field_info()". Report that exception in the Info column and the protocol tree, as well as logging the exception failure with g_warning(). svn path=/trunk/; revision=13078
2005-01-16throw the new FieldError exception, if a dissector tries to add a field with ↵Ulf Lamping1-2/+14
invalid parameters add a message parameter to the show_exception function svn path=/trunk/; revision=13074
2004-11-28From LEGO if Mate is pressent call it.Anders Broman1-0/+5
svn path=/trunk/; revision=12615
2004-09-29Move the tap infrastructure to the epan directory.Guy Harris1-1/+1
svn path=/trunk/; revision=12128
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+342
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