aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
AgeCommit message (Collapse)AuthorFilesLines
2002-02-27Fix the declaration of "addr_call_dissector" to match the functionGuy Harris1-2/+2
signature of "call_dissector()". svn path=/trunk/; revision=4828
2002-02-27From Joerg Mayer:Guy Harris4-8/+8
In the "configure.in" files, add -D_U_="__attribute__((unused))" to CFLAGS if we're using GCC, and add -D_U_="" otherwise, so _U_ can be used to mark arguments as unused. Add -D_U_="" arguments to the Makefile.nmake files as well, so _U_ works with Microsoft Visual C++ as well. Add comments and RCS IDs to the Makefile.nmake files that don't already have them. svn path=/trunk/; revision=4824
2002-02-23"is_tpkt()" is always used to check a TCP segment to see if it mightGuy Harris1-2/+2
have a TPKT header at the beginning, so there's not need for it to have an offset as an argument; its callers don't have to know how big the TPKT header is (or we can put a #define in "packet-tpkt.h" for it). Get rid of the second argument. svn path=/trunk/; revision=4791
2002-02-22Handle TPKT packets split across segment boundaries, and multiple TPKTGuy Harris4-5/+29
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 Harris4-15/+29
svn path=/trunk/; revision=4760
2002-02-19Fix up the declaration of "addr_tvb_new_real_data" to matchGuy Harris1-2/+2
"tvb_new_real_data()". svn path=/trunk/; revision=4755
2002-02-02Routines added to the plugin table, and include-once #ifndef/#defineGuy Harris4-5/+39
wrappers added to plugin header files, by Charlie Duke. svn path=/trunk/; revision=4676
2002-01-30Updated GIOP plugins, from Frank Singleton.Guy Harris2-349/+286
svn path=/trunk/; revision=4631
2002-01-29Support for capturing on, and reading captures from, OpenBSD firewallGuy Harris4-4/+9
logging virtual interface, from Mike Frantzen. svn path=/trunk/; revision=4616
2002-01-21Include files from the "epan" directory and subdirectories thereof withGuy Harris9-21/+21
"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-20Fix some problems in protocol preferences blurbs.Guy Harris1-1/+2
svn path=/trunk/; revision=4582
2002-01-05Long NCP traces can easily have many packets whose "uniqueness"Gilbert Ramirez4-4/+9
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-19From Bernd Becker: don't clear COL_INFO until the GIOP subdissecrors areGuy Harris2-2/+2
fixed to put something interesting there, fix the GIOP dissector to restore the Protocol column if no heuristic dissector succeeded, and fix up the plugin GIOP subdissectors to use "col_set_str()" to set the Protocol column. svn path=/trunk/; revision=4424
2001-12-17Now that the GIOP dissector sets "pinfo->current_proto" before callingGuy Harris2-4/+0
subdissectors, the subdissectors don't have to set it themselves. svn path=/trunk/; revision=4417
2001-12-12From Motonori Shindo:Guy Harris4-9/+9
fix a bogus batch mode inference rule of make, so that "vc60.pdb" files are created in the proper directory; delete ".pdb" files in a "nmake -f Makefile.nmake clean"; include the text2pcap and mergecap ".pdb" files in the Windows binary distribution. svn path=/trunk/; revision=4385
2001-12-10Move the pointer to the "column_info" structure in the "frame_data"Guy Harris1-8/+8
structure to the "packet_info" structure; only stuff that's permanently stored with each frame should be in the "frame_data" structure, and the "column_info" structure is not guaranteed to hold the column values for that frame at all times - it was only in the "frame_data" structure so that it could be passed to dissectors, and, as all dissectors are now passed a pointer to a "packet_info" structure, it could just as well be put in the "packet_info" structure. That saves memory, by shrinking the "frame_data" structure (there's one of those per frame), and also lets us clean up the code a bit. svn path=/trunk/; revision=4371
2001-12-10Move the pointer to the "column_info" structure in the "frame_data"Guy Harris4-23/+23
structure to the "packet_info" structure; only stuff that's permanently stored with each frame should be in the "frame_data" structure, and the "column_info" structure is not guaranteed to hold the column values for that frame at all times - it was only in the "frame_data" structure so that it could be passed to dissectors, and, as all dissectors are now passed a pointer to a "packet_info" structure, it could just as well be put in the "packet_info" structure. That saves memory, by shrinking the "frame_data" structure (there's one of those per frame), and also lets us clean up the code a bit. svn path=/trunk/; revision=4370
2001-12-03Remove the no-longer-extant "conv_dissector_add()" from the list ofGuy Harris4-9/+11
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 Harris6-32/+37
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 Warnicke3-8/+3
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 Harris2-5/+2
structure "pi" from the plugin API. svn path=/trunk/; revision=4259
2001-11-21Remove the pointer to the global packet_info from the table ofGilbert Ramirez2-5/+2
pointers used for plugins on win32. svn path=/trunk/; revision=4247
2001-11-13Hopefully the last time I have to change my e-mail address.Gilbert Ramirez4-8/+8
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 Harris4-13/+51
svn path=/trunk/; revision=4150
2001-11-04In "plugin_api_defs.h", just doGuy Harris2-161/+145
addr_XXX p_XXX; for all the declarations, to simplify things, as per Tomas Kukosa's suggestion. Fix a couple of comments. svn path=/trunk/; revision=4149
2001-11-01Fix some declarations to match the signatures of "tvb_find_guint8()" andGuy Harris2-6/+6
"tvb_pbrk_guint8()". svn path=/trunk/; revision=4121
2001-10-31Sigh. Well, if you make the function declarations external, that meansGuy Harris6-3/+205
that they're external when the plugin is compiled, and there's no definition to satisfy the extern, so plugins fail to compile. Add a "plugins/plugin_api_defs.h" header file that defines them, and include that in one (and only one) source file for a particular plugin. svn path=/trunk/; revision=4117
2001-10-29Stop using "tvb_get_ntohll()" and "%llX" in the BOOTP dissector, as theGuy Harris3-27/+3
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
2001-10-17Enable building of the coseventcomm plugin on Win32.Gilbert Ramirez4-18/+106
Some of these changs are from Frank Singleton, some are mine. svn path=/trunk/; revision=4035
2001-09-14Make the resolution for time values be nanoseconds rather thanGuy Harris1-4/+4
microseconds. Fix some "signed vs. unsigned" comparison warnings. svn path=/trunk/; revision=3935
2001-09-04From Thomas Wittwer: add "prefs_register_string_preference()" to theGuy Harris3-3/+8
list of functions available to plugins. svn path=/trunk/; revision=3906
2001-08-29Add a "proto_item_append_text()" routine, which is likeGuy Harris3-3/+7
"proto_item_set_text()" except that it appends the result of the formatting to the item's current text, rather than replacing the item's current text. Use it in the DNS dissector. svn path=/trunk/; revision=3880
2001-08-28Get rid of "proto_tree_add_notext()" - if you create a subtree using it,Guy Harris3-13/+3
but, before you set the text, you throw an exception while putting stuff under the subtree, you end up with an absolutely blank protocol tree item, which is really gross. Instead of calling "proto_tree_add_notext()", call "proto_tree_add_text()" with at least a minimal label - yes, it does mean you do some work that will probably be unnecessary, but, absent a scheme to arrange to do that work if it *is* necessary (e.g., catching exceptions), the alternative is an ugly protocol tree display. svn path=/trunk/; revision=3879
2001-07-22Add a bunch of routines used by GIOP plugins to the plugin addressGuy Harris3-6/+41
table. svn path=/trunk/; revision=3764
2001-07-21Update .cvsignore.Guy Harris1-0/+3
svn path=/trunk/; revision=3760
2001-07-20CosEventComm dissector, from Frank Singleton.Guy Harris4-4/+867
svn path=/trunk/; revision=3756
2001-07-20Get rid of zero-length arrays.Guy Harris1-0/+4
svn path=/trunk/; revision=3753
2001-07-20Added .cvsignoreEd Warnicke1-0/+19
svn path=/trunk/; revision=3742
2001-07-19GIOP CosNaming support, from Frank Singleton.Guy Harris12-4/+2359
svn path=/trunk/; revision=3740
2001-07-10Add some additional items to .cvsignore files, for new files built whenGuy Harris2-0/+2
compiling plugins for statically-linked binaries. svn path=/trunk/; revision=3678
2001-07-10Fixed the make dist problem.Ed Warnicke2-4/+4
svn path=/trunk/; revision=3676
2001-07-09C sources are in $(srcdir) and not the current directoryUwe Girlich2-4/+4
svn path=/trunk/; revision=3671
2001-07-08Fixed the {tethereal,ethereal}_static targets so that theEd Warnicke5-21/+53
static binaries have the dissectors provided in the plugins available. svn path=/trunk/; revision=3665
2001-07-08Some additional cleanup.Ed Warnicke2-2/+5
svn path=/trunk/; revision=3660
2001-07-05Fixed problem with handling empty parameters.Ed Warnicke2-5/+3
Problem was pointed out by Alejandro Vaquero who provided a fix. Implemented a slightly different fix. svn path=/trunk/; revision=3653
2001-07-04Some minor changes to allow the mgcp plugin to be compiledEd Warnicke1-8/+8
into a static binary if desired. svn path=/trunk/; revision=3651
2001-06-18From Joerg Mayer: explicitly fill in all members of aGuy Harris2-43/+43
"header_field_info" structure, including the ones that are later set by the routines to register fields. svn path=/trunk/; revision=3561
2001-04-25Get rid of support for non-tvbuffified plugin dissectors.Guy Harris3-12/+3
svn path=/trunk/; revision=3385
2001-04-25Make "col_set_str()" and "tvb_reported_length_remaining()" available inGuy Harris3-3/+11
plugins. svn path=/trunk/; revision=3384