aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/plugin_api.h
AgeCommit message (Collapse)AuthorFilesLines
2005-03-17Clean up.Lars Roland1-78/+0
Remove obsolete plugin address table and related files. Remove related targets from various makefiles. svn path=/trunk/; revision=13787
2005-02-09Move the following files from /trunk to /trunk/epan:Lars Roland1-2/+2
asn1.[ch] follow.[ch] ptvcursor.[ch] reassemble.[ch] xmlstub.[ch] fix #include statements accordingly. svn path=/trunk/; revision=13366
2005-01-12add some of the DCE/RPC functions to the plugin APIUlf Lamping1-0/+1
svn path=/trunk/; revision=13010
2004-09-29In "plugins/plugin_api.h", don't include stuff required for the pluginGuy Harris1-2/+2
address table if we don't need the plugin address table, so as to catch plugin dissectors that don't directly include stuff they need - eventually, the plugin address table stuff should completely go away, so we don't want dissectors depending on it. Fix those dissectors caught by this. Don't include "simple_dialog.h" in the ASN.1 dissector - it doesn't use it. svn path=/trunk/; revision=12140
2004-09-29Move the tap infrastructure to the epan directory.Guy Harris1-1/+1
svn path=/trunk/; revision=12128
2004-09-28Move the xDLC helper routines into epan.Guy Harris1-1/+1
svn path=/trunk/; revision=12127
2004-09-28Move various checksum routines and headers to epan.Guy Harris1-1/+1
svn path=/trunk/; revision=12117
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-09-23Add proto_tree_add_debug_text(), rtcp_add_address(), andGuy Harris1-0/+2
rtp_add_address() to the list of functions exported from libethereal.dll and exported via the plugin function table. svn path=/trunk/; revision=12067
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-6/+6
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
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-06-30Include "crc16.h" to handle "crc16_ccitt_tvb()".Guy Harris1-1/+2
svn path=/trunk/; revision=11284
2004-06-19From Dennis Lim: add routines used by dissectors for ONC RPC protocolsGuy Harris1-1/+2
to the plugin API. Add them to the list of routines exported from the libethereal DLL on Windows as well. svn path=/trunk/; revision=11186
2004-03-23Make "epan_init()" take, as additional arguments, pointers to routinesGuy Harris1-2/+2
that dissectors should call to report file open and read errors, and have "report_open_failure()" and "report_read_failure()" call through those pointers, rather than being defined and exported by the application using libethereal - instead, the application would define those functions and pass pointers to them to 'epan_init()". Move "report_err.h" to the epan directory, as the functions it declares are now part of the libethereal API. svn path=/trunk/; revision=10470
2004-03-04From Tomas Kukosa: add packet-ber.c routines to the plugin API.Guy Harris1-1/+2
svn path=/trunk/; revision=10295
2004-02-21Include "report_err.h" to declare "report_open_failure()" andGuy Harris1-1/+2
"report_read_failure()". svn path=/trunk/; revision=10167
2004-01-05Bugfix from Lars Roland: included missing xdlc.hUlf Lamping1-1/+2
svn path=/trunk/; revision=9553
2003-10-29There's no need to #define tvb_get_string or tvb_get_stringz - that'sGuy Harris1-4/+2
done in Xplugin_api.h. However, we do need to include "epan/filesystem.h", to declare "get_datafile_path()". svn path=/trunk/; revision=8811
2003-09-24From Tomas Kukosa:Guy Harris1-3/+1
Remove the internal packet-per.c functions "dissect_per_length_determinant()" and "dissect_per_normally_small_nonnegative_whole_number()" from the plugin API, as they shouldn't be used outside the PER dissector. Remove the H.225/H.245 functions "dissect_h225_TransportAddress()" and "dissect_h245_NonStandardParameter()" from the plugin API until we really need them in plugins. Add the string dissector table functions to the plugin API. svn path=/trunk/; revision=8532
2003-08-25Include the header files required by new APIs in the plugin API table.Guy Harris1-1/+4
svn path=/trunk/; revision=8252
2003-07-18From Matthijs Melchior: generate all declarations and definitions forGuy Harris1-249/+3
plugin ABI from a single file. svn path=/trunk/; revision=8038
2003-06-12Export "tvb_get_string()" and "tvb_get_stringz()" to plugins.Guy Harris1-1/+4
svn path=/trunk/; revision=7862
2003-06-03From Lars Roland: Update the plugin API for Glib/GTK+ 2.2 and have NSISGerald Combs1-1/+3
remove the Start menu entries and desktop icon. svn path=/trunk/; revision=7772
2003-05-01From Matthijs Melchior: don't export functions also implemented asGuy Harris1-5/+3
macros, and do export "except_pop()" and "except_setup_try()". svn path=/trunk/; revision=7628
2003-04-30The typedefs in plugins/plugin_table.h must have "addr_" in front of theGuy Harris1-2/+1
function name; make it so. Eliminate the duplicate entry for "except_throw" and the duplicate code for it. svn path=/trunk/; revision=7618
2003-04-30From Matthijs Melchior: export the exception mechanism routines toGuy Harris1-1/+18
plugins on platforms on which plugins need to use the table of functions exported to plugins. svn path=/trunk/; revision=7611
2003-04-29Add a "proto_item_set_end()" routine that sets the length of an itemGuy Harris1-3/+5
given a tvbuff/offset pair referring to the byte past the end of the item. Use it in one place in the SMB dissector (there are plenty of other places where it could be used as well). svn path=/trunk/; revision=7603
2003-04-24From Matthijs Melchior: add the ASN.1 routines to the table of routinesGuy Harris1-1/+27
exported to dissectors. svn path=/trunk/; revision=7552
2003-04-08Add "proto_tree_add_none_format()" to the set of functions exported toGuy Harris1-1/+2
plugins. svn path=/trunk/; revision=7423
2003-03-06From Lars Ronald :Ronnie Sahlberg1-2/+6
MGCP request/response matching and MGCPSTAT RTT calculation. For those with MGCP captures, try -z mgcp,rtd[,filter] svn path=/trunk/; revision=7294
2002-11-14From Tomas Kukosa: export more routines to plugins.Guy Harris1-1/+31
svn path=/trunk/; revision=6630
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-4/+4
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6116
2002-08-14From Tomas Kukosa: add some more routines to the plugin API.Guy Harris1-1/+7
While we're at it, add "extern" to a bunch of function declaration the preceding change *didn't* require to have the "extern" added. svn path=/trunk/; revision=5995
2002-07-12From Anand V. Narwani:Guy Harris1-1/+4
DOCSIS support, including support for "Ethernet" captures where the raw frame is a DOCSIS frame rather than an Ethernet frame (some Cisco cable-modem head-end gear can send out a trace of all traffic on an Ethernet, but what it sends are the raw bytes of DOCSIS frames, not Ethernet frames) Get rid of second AUTHORS entry for Devin Heitmueller, merging its item into the older entry. Clean up the order of some lists of plugin items. svn path=/trunk/; revision=5861
2002-05-05Put the pointer to "tcp_dissect_pdus()" in the function pointer tableGuy Harris1-3/+3
where the pointer to "dissect_data()" was in 0.9.3; the pointer to "dissect_data()" wasn't initialized in 0.9.3 (as the function wasn't exported - you call it through a handle), so no plugin should have been using it, and putting the pointer to "tcp_dissect_pdus()" in its place means the structure offsets of all function pointers after it will be the same in 0.9.3 and the next release, preserving binary compatibility for plugins. svn path=/trunk/; revision=5395
2002-05-05Make a "tcp_dissect_pdus()" with the standard loop for a TCP segment,Guy Harris1-8/+10
extracting PDUs from it and possibly doing reassembly. Make the COPS, DNS, DSI, Gryphon, and SCCP dissectors use it. Add "set_actual_length()", "tcp_dissect_pdus()", "decode_boolean_bitfield()", "decode_numeric_bitfield()", and "decode_enumerated_bitfield()" to the list of routines available to dissectors on platforms where routines in the main program aren't available to dynamically-loaded code. Declare routines in "to_str.h" as "extern"; as I remember, that's necessary to allow the "decode_XXX_bitfield()" routines declared therein to be made available to plugins as per the above. Note that new exported routines should be added to the end of the table if that's the only change being made to the table. Create a new "plugin_api_decls.h" header file, used to declare both the "p_" variables and the "p_" structure members in the routine-exporting mechanism; this reduces the number of places you have to change to change the list of exported routines. svn path=/trunk/; revision=5394
2002-02-22Handle TPKT packets split across segment boundaries, and multiple TPKTGuy Harris1-2/+8
packets per segment. Instead of having a routine for dissectors such as the Q.931 dissector to call to dissect the TPKT header, have a routine that does all the reassembly and multiple-packets-per-segment work, and have the Q.931 dissector call it. Export "is_tpkt()", and the new routine, to plugins. Add preferences for TPKT and Q.931 reassembly. svn path=/trunk/; revision=4778
2002-02-20Export "conversation_set_dissector()" in the plugin API table.Guy Harris1-3/+6
svn path=/trunk/; revision=4760
2002-02-02Routines added to the plugin table, and include-once #ifndef/#defineGuy Harris1-1/+10
wrappers added to plugin header files, by Charlie Duke. svn path=/trunk/; revision=4676
2002-01-29Support for capturing on, and reading captures from, OpenBSD firewallGuy Harris1-1/+2
logging virtual interface, from Mike Frantzen. svn path=/trunk/; revision=4616
2002-01-21Include files from the "epan" directory and subdirectories thereof withGuy Harris1-3/+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
2002-01-05Long NCP traces can easily have many packets whose "uniqueness"Gilbert Ramirez1-1/+2
variables wrap-around. Since the request/reply packets are related via a hash based on these uniqueness variables, long NCP traces can have mis-matches reqeust/reply records. Thus, only do the hash-lookup for the reply packet during the first sequential scan of the trace file. Once the pertinent info is found, store it in the packet's private data area. Since the memory allocated for the hash and for the structures that make up the keys are no longer needed after the first sequential run through the trace file, arrange to free that memory after the first sequential run. Similar to the register_init_routine() that allows dissectors to register callbacks for calling *before* a capture file is loaded, set up a register_postseq_cleanup_routine() function that allows dissectors to register callbacks for calling *after* the first sequential run-through of the trace file is made. This is not a *final* cleanup callback, since Ethereal will still have that trace file open for random-access reading. I didn't have tethereal call postseq_cleanup_all_protocols() since tethereal doesn't keep the trace file open for random-access reading. I could easily be swayed to make tethereal call that function, however. svn path=/trunk/; revision=4484
2001-12-03Remove the no-longer-extant "conv_dissector_add()" from the list ofGuy Harris1-2/+2
plugin APIs, and add the new "dissector_add_handle()". Add an entry in the dissector table structure for "create_dissector_handle". svn path=/trunk/; revision=4314
2001-12-03Make "dissector_add()", "dissector_delete()", and "dissector_change()"Guy Harris1-1/+2
take a dissector handle as an argument, rather than a pointer to a dissector function and a protocol ID. Associate dissector handles with dissector table entries. svn path=/trunk/; revision=4308
2001-11-26This should be the final bit of removing the dissect_data symbolEd Warnicke1-3/+1
from being required by anyone other than packet-data.c. It can now be accessed with call_dissector() with the name "data". dissect_data is now also of dissect_t. svn path=/trunk/; revision=4271
2001-11-24Finish removing the pointer to the no-longer-extant global "packet_info"Guy Harris1-3/+1
structure "pi" from the plugin API. svn path=/trunk/; revision=4259
2001-11-13Hopefully the last time I have to change my e-mail address.Gilbert Ramirez1-2/+2
svn path=/trunk/; revision=4199
2001-11-04Include "conversation.h", as the plugin API now includes the routines toGuy Harris1-1/+2
create and find conversations. svn path=/trunk/; revision=4155
2001-11-04Additional routines made available to plugins, from Tomas Kukosa.Guy Harris1-9/+18
svn path=/trunk/; revision=4150
2001-10-29Stop using "tvb_get_ntohll()" and "%llX" in the BOOTP dissector, as theGuy Harris1-7/+1
former depends on having "guint64" and the latter depends on "%ll[douxX]" being what's used to print 64-bit integers, and there are platforms on which Etheeal runs that don't have "guint64" or that don't use "%ll[douxX]" to print 64-bit integers. Get rid of the routines to extract 64-bit integers into "gint64"s and "guint64"s, as per Ronnie Sahlberg's suggestion, to discourage people from writing code that won't work on all platforms; they should be using FT_UINT64, or the routines in "int-64bit.c", instead. svn path=/trunk/; revision=4102