aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
AgeCommit message (Collapse)AuthorFilesLines
2000-09-13Updated to ignore Win32 detritusGraham Bloice2-0/+7
svn path=/trunk/; revision=2430
2000-08-18Modify the Gryphon plugin code in order to avoid an abort when theLaurent Deniel1-4/+11
plugin is enabled -> disabled -> re-enabled due to the fact that the protocol registration is performed at each plugin_init() call (and there is no protocol cleanup like with dfilter_cleanup). Now we use the proto_xxx static variable to check if it is the first activation or not (in this case, the proto_register_xxx routines are not called. svn path=/trunk/; revision=2290
2000-08-11Miscellaneous code cleaningLaurent Deniel1-4/+1
- add <stdarg.h> or <varargs.h> in snprintf.h and remove those inclusions in the other #ifdef NEED_SNPRINTF_H codes - remove the check of multiple inclusions in source (.c) code (there is a bit loss of _cpp_ performance, but I prefer the gain of code reading and maintenance; and nowadays, disk caches and VM are correctly optimized ;-). - protect all (well almost) header files against multiple inclusions - add header (i.e. GPL license) in some include files - reorganize a bit the way header files are included: First: #include <system_include_files> #include <external_package_include_files (e.g. gtk, glib etc.)> Then #include "ethereal_include_files" with the correct HAVE_XXX or NEED_XXX protections. - add some HAVE_XXX checks before including some system header files - add the same HAVE_XXX in wiretap as in ethereal Please forgive me, if I break something (I've only compiled and regression tested on Linux). svn path=/trunk/; revision=2254
2000-05-31Fix plugin function table so that plugins work on Win32.Gilbert Ramirez3-46/+156
svn path=/trunk/; revision=2034
2000-05-31Add routines for adding items to a protocol tree that take arguments ofGuy Harris1-8/+8
a particular type, rather than taking a varargs list, along the lines of the "proto_tree_add_XXX_format()" routines. Replace most calls to "proto_tree_add_item()" and "proto_tree_add_item_hidden()" with calls to those routines. Rename "proto_tree_add_item()" and "proto_tree_add_item_hidden()" to "proto_tree_add_item_old()" and "proto_tree_add_item_hidden_old()", and add new "proto_tree_add_item()" and "proto_tree_add_item_hidden()" routines that don't take the item to be added as an argument - instead, they fetch the argument from the packet whose tvbuff was handed to them, from the offset handed to them. svn path=/trunk/; revision=2031
2000-05-28Changed my mail address to oabad@cybercable.fr (dhis.net is tooOlivier Abad1-1/+1
unreliable). svn path=/trunk/; revision=2019
2000-05-20Use "rm -f", not "rm", to remove "plugin_api.obj", so that ifGuy Harris1-2/+2
"plugin_api.obj" doesn't exist, it just drives on rather than giving an error. svn path=/trunk/; revision=1990
2000-05-11Add tvbuff class.Gilbert Ramirez1-192/+192
Add exceptions routines. Convert proto_tree_add_*() routines to require tvbuff_t* argument. Convert all dissectors to pass NULL argument ("NullTVB" macro == NULL) as the tvbuff_t* argument to proto_tree_add_*() routines. dissect_packet() creates a tvbuff_t, wraps the next dissect call in a TRY block, will print "Short Frame" on the proto_tree if a BoundsError exception is caught. The FDDI dissector is converted to use tvbuff's. svn path=/trunk/; revision=1939
2000-05-05Add routines to:Guy Harris3-4/+11
register lists of "heuristic" dissectors, which are handed a frame that may or may contain a payload for the protocol they dissect, and that return FALSE if it's not or dissect the packet and return TRUE if it is; add a dissector to such a list; go through such a list, calling each dissector until either a dissector returns TRUE, in which case the routine returns TRUE, or it runs out of entries in the list, in which case the routine returns FALSE. Have lists of heuristic dissectors for TCP and for COTP when used with the Inactive Subset of CLNP, and add the GIOP and Yahoo Messenger dissectors to the first list and the Sinec H1 dissector to the second list. Make the dissector name argument to "dissector_add()" and "dissector_delete()" a "const char *" rarther than just a "char *". Add "heur_dissector_add()", the routine to add a heuristic dissector to a list of heuristic dissectors, to the set of routines we can export to plugins through a table on platforms where dynamically-loaded code can't call stuff in the main program, and initialize the element in the table in question for "dissector_add()" (which we'd forgotten to do). svn path=/trunk/; revision=1909
2000-04-29Graham Bloice's changes to, on Win32 using Microsoft's "nmake":Guy Harris1-1/+2
build "register.c" in the top-level Makefile; set path in "config.nmake" to include the Cygwin directory for tools - those tools are needed to build "register.c"; remove constructed source files, and some additional object files, when doing "nmake clean". svn path=/trunk/; revision=1896
2000-04-12Build tethereal and editcap on Win32.Gilbert Ramirez2-0/+8
Add RCS ID tags to Makefile.nmake's. svn path=/trunk/; revision=1836
2000-04-04Add "dissector_add()" to the list of routines exported to plugins viaGuy Harris3-3/+10
the Big Function Pointer Table. svn path=/trunk/; revision=1797
2000-04-04Add "clean" rules in subdirectories, and run subdirectory "nmake -fGuy Harris2-0/+7
Makefile.nmake clean" when "nmake -f Makefile.nmake clean" is done in the top-level directory, so that "nmake -f Makefile.nmake clean" cleans everything up. svn path=/trunk/; revision=1792
2000-03-15Give all the Ethereal APIs available to plugins their own functionGuy Harris4-211/+180
pointers, and call the APIs by calling through the function pointers - the old technique of using wrappers didn't work, as the underlying function they all called no longer exists. svn path=/trunk/; revision=1724
2000-03-15Rename the local variable "pi" to "ti" in several places - "pi" is alsoGuy Harris1-10/+10
the name of the global variable containing packet information, and, on platforms where dynamically-loaded code can't access global variables and functions in the main program, we #define "pi" in plugins to be "(*p_pi)", which causes problems even if a plugin with a local variable named "pi" *isn't* accessing the global "pi". svn path=/trunk/; revision=1723
2000-03-12Break proto_tree_add_item_format() into multiple functions:Gilbert Ramirez1-71/+71
proto_tree_add_protocol_format() proto_tree_add_uint_format() proto_tree_add_ipxnet_format() proto_tree_add_ipv4_format() proto_tree_add_ipv6_format() proto_tree_add_bytes_format() proto_tree_add_string_format() proto_tree_add_ether_format() proto_tree_add_time_format() proto_tree_add_double_format() proto_tree_add_boolean_format() If using GCC 2.x, we can check the print-format against the variable args passed in. Regardless of compiler, we can now check at run-time that the field type passed into the function corresponds to what that function expects (FT_UINT, FT_BOOLEAN, etc.) Note that proto_tree_add_protocol_format() does not require a value field, since the value of a protocol is always NULL. It's more intuitive w/o the vestigial argument. Fixed a proto_tree_add_item_format-related bug in packet-isis-hello.c Fixed a variable usage bug in packet-v120.c. (ett_* was used instead of hf_*) Checked in Guy's fix for the function declearation for proto_tree_add_text() and proto_tree_add_notext(). svn path=/trunk/; revision=1713
2000-03-03Add config.nmake and two Makefile.nmake's to the list of deliverables.Gilbert Ramirez2-3/+7
svn path=/trunk/; revision=1690
2000-02-15Create a header file for every packet-*.c file. Prune the packet.h file.Gilbert Ramirez1-1/+5
This change allows you to add a new packet-*.c file and not cause a recompilation of everything that #include's packet.h Add the plugin_api.[ch] files ot the plugins/Makefile.am packaging list. Add #define YY_NO_UNPUT 1 to the lex source so that the yyunput symbol is not defined, squelching a compiler complaint when compiling the generated C file. svn path=/trunk/; revision=1637
2000-02-12"proto_add_item_subtree()" returns a value; its wrapper should returnGuy Harris1-3/+3
the value that the real function returns. svn path=/trunk/; revision=1627
2000-02-10Sean Walmsley <sean.p.walmsley@Hydro.ON.CA> caught a typo in Makefile.am.Gerald Combs1-2/+2
svn path=/trunk/; revision=1615
2000-02-09Initialize *p_pi solely to get rid of compiler warning.Gilbert Ramirez1-2/+2
svn path=/trunk/; revision=1613
2000-02-09Integrate Ed Meaney's <emeaney@altiga.com> changes for using libpcapGilbert Ramirez2-6/+8
from WinDump with Ethereal. We now have packet capturing on Win32. :) svn path=/trunk/; revision=1612
2000-02-09Update Makefiles for win32. Move local configuration to config.nmake,Gilbert Ramirez2-0/+29
have top-level Makefile.nmake call Makefile.nmake's in subdirectories. Build plugins, and build generated source (lex, yacc). The only thing we can't build is register.c; I need to re-work the top-level Makefile.nmake because it lists object files, not C files, which make-reg-dotc needs. svn path=/trunk/; revision=1608
2000-02-07Change "unsigned gint64" to "guint64", and add GPL header to plugin_api.[ch]Gilbert Ramirez3-2/+46
svn path=/trunk/; revision=1606
2000-02-07Code changes, but not Makefile changes, for enabling plugins for Win32.Gilbert Ramirez3-19/+265
svn path=/trunk/; revision=1605
2000-01-08I finally got autoconf, automake, and the plugins to behave together.Gilbert Ramirez7-862/+24
The distro is buildable finally. I had to change "plugins/gryphon" from a separately configured (i.e., "./configure") package to a member of the main ethereal autoconf package so that PLUGIN_DIR could be passed to plugins/gryphon/Makefile.am. In doing so, I had to get rid of plugins/gryphon/config.h which had PACKAGE and VERSION #defined, the latter of which was actually used in packet-gryphon.c. So I moved those two #defines into a new file, plugins/gryphon/moduleinfo.h. svn path=/trunk/; revision=1438
2000-01-01Add a "break;" statement to a "default:" clause - the AIX C compilerGuy Harris1-2/+3
apparently doesn't like it when a case label is the last line in a "switch()" statement. Fix a spelling error. svn path=/trunk/; revision=1408
1999-12-31Filter out a few more things.Guy Harris1-2/+3
Don't filter out some things that *are* in CVS. svn path=/trunk/; revision=1403
1999-12-31Filter out a few more things.Guy Harris1-0/+2
svn path=/trunk/; revision=1402
1999-12-28Add support for "--with-plugindir=<plugin install dir>" to configure.Gerald Combs1-3/+3
Make the default plugindir $(libdir)/ethereal/plugins/0.8. Ethereal now looks for plugins in the following directories: /usr/lib/ethereal/plugins/0.8 /usr/local/lib/ethereal/plugins/0.8 $plugindir (if different from above) $HOME/.ethereal/plugins svn path=/trunk/; revision=1382
1999-12-26Integrate libtool/libltdl with the plugin code. Add libtool and libltdlGerald Combs6-14/+810
to the distribution. svn path=/trunk/; revision=1379
1999-12-15Add Dearborn Group Technology's Gryphon dissector as our firstGilbert Ramirez12-0/+2460
shipped plugin. svn path=/trunk/; revision=1341