aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
AgeCommit message (Collapse)AuthorFilesLines
2005-12-02new field type FT_OID for OBJECT IDENTIFIERsTomas Kukosa1-0/+32
svn path=/trunk/; revision=16652
2005-09-28Have show_exception() take a "const char *" as its exception message,Guy Harris1-4/+4
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-26Make "REPORT_DISSECTOR_BUG()" (and the macros that use it) callGuy Harris1-1/+6
"abort()" if the ETHEREAL_ABORT_ON_DISSECTOR_BUG environment variable is set; this is for debugging purposes, to make it easier to get a stack trace of the offending call. svn path=/trunk/; revision=16013
2005-09-13Move the definition of GNUC_FORMAT_CHECK() to its own header, use it inGuy Harris1-13/+1
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-18/+43
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-09-06get rid of few warningsTomas Kukosa1-1/+1
svn path=/trunk/; revision=15700
2005-09-05new BASE_DEC_HEX and BASE_HEX_DEC displaying numbers in "dual" formatTomas Kukosa1-1/+5
svn path=/trunk/; revision=15682
2005-08-21The protocol item in the protocol tree will have a gray background now, ↵Ulf Lamping1-5/+30
which makes it much better visible. Add some more optional flags to the protocol items, so more "special cases" can be marked in the protocol tree. New flags: /** The protocol field has a bad checksum */ FI_CHECKSUM_ERROR /** The protocol field has an unusual sequence (e.g. TCP window is zero) */ FI_SEQUENCE_WARNING /** The protocol field has a bad sequence (e.g. TCP segment is lost) */ FI_SEQUENCE_ERROR svn path=/trunk/; revision=15499
2005-07-30Stefan Rompf:Jörg Mayer1-1/+1
Fix warnings of type: proto.c:2219: warning: ISO C forbids conditional expr with only one void side svn path=/trunk/; revision=15156
2005-07-27Revert my previous patch - something else was seriously screwed upJörg Mayer1-2/+0
svn path=/trunk/; revision=15118
2005-07-27gcc-4.0 (GCC) 4.0.2 20050720 (prerelease) (SUSE Linux)Jörg Mayer1-0/+2
fails when trying to use varargs. Due to a missing include config.h we were using varargs with proto.h svn path=/trunk/; revision=15117
2005-07-24Constify to remove a bunch of warnings. Add some casts to squelchGuy Harris1-3/+3
(presumably-)harmless-but-otherwise-unremovable const-to-nonconst warnings. In the TACACS dissector, clean up the variables used in option parsing to avoid some const-to-nonconst warnings. Clean up some white space. svn path=/trunk/; revision=15043
2005-07-23More 'char*' -> 'const char*' changes to fix warnings.Jörg Mayer1-1/+1
svn path=/trunk/; revision=15015
2005-07-20Change proto_register_protocol to use 'const char*' instead of 'char*'Jörg Mayer1-1/+1
svn path=/trunk/; revision=14966
2005-07-19fix three doxygen warningsUlf Lamping1-3/+3
svn path=/trunk/; revision=14959
2005-07-04new field type FT_GUIDTomas Kukosa1-0/+32
svn path=/trunk/; revision=14845
2005-06-24More constification.Guy Harris1-2/+2
svn path=/trunk/; revision=14740
2005-06-20Fix a format string vulneratility in the AFP dissector identifiedGerald Combs1-1/+13
by iDEFENSE. Add constant format strings to proto_item_append_text() in a bunch of other dissectors. Copy a comment from proto.c to proto.h. svn path=/trunk/; revision=14713
2005-06-16Get rid of several megabytes worth of warnings aboutJörg Mayer1-3/+3
"discards qualifier from assignment". svn path=/trunk/; revision=14663
2005-06-02add new function proto_tree_move_item(), which will move an already existing ↵Ulf Lamping1-4/+10
proto_item inside the tree (but it can't be moved to a different "tree level") svn path=/trunk/; revision=14524
2005-04-11Major speed improvement for filtering and dissection.Ronnie Sahlberg1-1/+22
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-04-07From Didier:Ronnie Sahlberg1-1/+1
optimization for COLUMNS to make ethereal faster when filtering optimization to make the slow find_protocol_by_id() fast. (idea from Didier, implementation modified by me to be less intrusive) svn path=/trunk/; revision=14026
2005-03-22add a DISSECTOR_ASSERT_NOT_REACHED() macroUlf Lamping1-0/+8
svn path=/trunk/; revision=13870
2005-03-11from Micheal Duigou: add some doxygen tags and some changes to README.developerUlf Lamping1-1/+1
svn path=/trunk/; revision=13725
2005-01-17Add a REPORT_DISSECTOR_BUG() macro to let caller-specified messages beGuy Harris1-1/+16
used in DissectorError exceptions. svn path=/trunk/; revision=13079
2005-01-16Rename the FieldError exception to DissectorError.Guy Harris1-0/+14
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-07Constify a pointer, so that the array of pointers to ett_ values can beGuy Harris1-1/+1
const, although the pointers can't point to consts (as the values get filled in as they're registered). svn path=/trunk/; revision=12981
2004-12-31"proto_registrar_get_byname()" doesn't modify its argument, so make itGuy Harris1-1/+1
"const char *". svn path=/trunk/; revision=12888
2004-09-10Add a "-G fields2" option which is like "-G fields", but extends the fieldGilbert Ramirez1-2/+7
records by tw fields: base (for integers), and blurb Add a "-G values" option which shows value strings and true_false strings for the fields that have them. svn path=/trunk/; revision=11954
2004-08-22Add "tvb_get_ntoh64()" and "tvb_get_letoh64()" routines to fetch 64-bitGuy Harris1-0/+52
integers. Make FT_INT64 and FT_UINT64 add numerical values, rather than byte-array values, to the protocol tree, and add routines to add specified 64-bit integer values to the protocol tree. Use those routines in the RSVP dissector. svn path=/trunk/; revision=11796
2004-07-29From Lars Roland: With this patch print.(c/h) and ps.(c/h) don't belong to Olivier Biot1-2/+2
the DISSECTOR_SUPPORT_xy files any longer and as a consequence they won't be linked into libethereal. svn path=/trunk/; revision=11559
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-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
2004-05-15remove FI_LINK again,Ulf Lamping1-10/+1
as this info can be derived from the presence of the FT_FRAMENUM field svn path=/trunk/; revision=10901
2004-05-14add support to link from specially marked fields to related packets,Ulf Lamping1-1/+10
a doubleclick will follow the link svn path=/trunk/; revision=10892
2004-05-10prepared for generate documentation using doxygen,Ulf Lamping1-165/+565
added lot's of new (hopefully correct) comments svn path=/trunk/; revision=10841
2004-05-10use GNUC_FORMAT_CHECK in every appropriate functionUlf Lamping1-124/+23
svn path=/trunk/; revision=10838
2004-05-10first try to get rid of annoying double definition of the ↵Ulf Lamping1-9/+8
proto_tree_add_xy_fromat functions, because of GNUC printf format checks svn path=/trunk/; revision=10837
2004-05-09From Lars Roland: add support for building a libethereal.dll with MSVC:Guy Harris1-5/+9
add a config.nmake option to control whether to build libethereal.dll or not; remove "./wiretap" from PATH to prevent problems due to wrongly-loaded files; build dissector.lib with MSVC; move "print.c" and "ps.c" to the dissector helpers, as "print.c" imports variables from packet-frame.c and packet-data.c, which are in libethereal; move "g711.c" out of the dissector helpers, as they're used only by Ethereal in a tap, not in Tethereal or in any dissector; add a .def file for libethereal; arrange to declare global variables exported from libethereal with "__declspec(dllimport)" when building programs that import those variables; update the NSIS installer. Make the "configure" script define ETH_VAR_IMPORT as "extern". svn path=/trunk/; revision=10834
2004-05-09added changed some comments to better reflect current "behaviour"Ulf Lamping1-18/+19
svn path=/trunk/; revision=10833
2004-05-01Squelch a compiler warning (extraneous extern on struct).Olivier Biot1-6/+10
Fix the PROTO_ITEM_IS_XXX and PROTO_ITEM_SET_XXX macros by replacing the if(x) with trigraphs so the macros can still be used in subsequent conditional tests. svn path=/trunk/; revision=10758
2004-05-01prevent null pointer exceptionUlf Lamping1-5/+5
svn path=/trunk/; revision=10755
2004-05-01add PROTO_ITEM_SET_HIDDEN() and PROTO_ITEM_SET_GENERATED(),Ulf Lamping1-26/+62
this sets flags for later rendering of the field data svn path=/trunk/; revision=10752
2004-04-30removed unused thingsUlf Lamping1-5/+1
svn path=/trunk/; revision=10740
2004-03-25From Tomas Kukosa: add APIs to get the parent of a protocol tree itemGuy Harris1-1/+7
and the item N levels up from a protocol tree item. svn path=/trunk/; revision=10486
2004-03-25From Tomas Kukosa: BER dissector enhancements and proto.c updates toGuy Harris1-1/+7
support them. From Ronnie Sahlberg: Kerberos updates with new constants from the current draft, decryption and dissection of Kerberos blobs, and changes to work with the changed BER dissector. svn path=/trunk/; revision=10479
2004-01-03Apply the patches from Tadaaki Nagao for a global version of disabledRichard Sharpe1-4/+4
protocols ... svn path=/trunk/; revision=9538
2003-12-06Add the ability to print packet dissections in PDML (an XML-based format)Gilbert Ramirez1-2/+10
to tethereal. It could be added to Ethereal, but the GUI changes to allow the user to select PDML as a print format have not been added. Provide a python module (EtherealXML.py) to help parse PDML. Provide a sample app (msnchat) which uses tethereal and EtherealXML.py to reconstruct MSN Chat sessions from packet capture files. It produces a nice HTML report of the chat sessions. Document tethereal's PDML and EtherealXML.py usage in doc/README.xml-output Update tethereal's manpage to reflect the new [-T pdml|ps|text] option svn path=/trunk/; revision=9180
2003-12-04It turns out the protocol tree parent link was used, so we need it inGuy Harris1-1/+2
our new scheme. svn path=/trunk/; revision=9172
2003-12-04Don't use GNodes for the protocol tree, put the sibling pointer, andGuy Harris1-9/+13
pointers to the first *and* last child, in the "proto_node" structure itself. That saves us one level of indirection and memory allocation, and lets us append to a tree by appending to the last child directly, rather than having to scan through the list of siblings of the first child to find the end of that list. svn path=/trunk/; revision=9171
2003-12-03The "ptr_u" unions no longer have a "next" pointer - they now just haveGuy Harris1-9/+2
one member - or have one that's not used, so get rid of those unions. svn path=/trunk/; revision=9151