aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/gryphon
AgeCommit message (Collapse)AuthorFilesLines
2005-07-23More 'char*' -> 'const char*' changes to fix warnings.jmayer2-42/+49
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15015 f5534014-38df-0310-8fa8-9805f1628bb7
2005-07-10After doing "make maintainer-clean", "svn status --no-ignore | grep ^I"jmayer1-0/+3
returned quite a list of files. Add them to MAINTAINERCLEANFILES. Whitespace changes (replace multiple spaces by TABs, in a few cases this needed to be done at the beginning of Makefile lines. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14891 f5534014-38df-0310-8fa8-9805f1628bb7
2005-03-07Call the "new-style init" routine for plugins a "register" routine, asguy1-6/+6
it serves the same purpose as the register routine in a built-in dissector, and don't require all dissectors to have one, as they might just be taps. Get rid of the stats tree's init routine, as it's just a tap, and as it doesn't do anything. Update the idl2eth Python script to generate plugins with register routines. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13644 f5534014-38df-0310-8fa8-9805f1628bb7
2005-03-05Preparations for dropping the old plugin api.lroland2-15/+5
Introduce a new init routine for plugins, which does not take the plugin api table as an argument and allows etheral to distinguish between plugins using the old and the new api. Update README.plugins accordingly Change all g_warnings() in epan/plugins.c to report_failue(). On windows we do not have a log console open while loading the plugins, because a log console cannot be opened before the prefs have been read. Thus g_warnings() does not work for reporting problems with plugins. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13596 f5534014-38df-0310-8fa8-9805f1628bb7
2005-02-14Make the "maintainer-clean" rules get rid of some additional generatedguy1-0/+2
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and GENERATED_FILES macros in Makefile.common files, along the lines of what wiretap/Makefile.common has. Clean up "*~" files with "make clean" rather than only "make distclean" in some additional places. Add "maintainer-clean" rules to the Makefile.nmake files, paralelling the ones in the automake-generated Makefile.in files, using the GENERATED_FILES macros from Makefile.common files. In some cases, move the cleanup of files from "make distclean" to "make maintainer-clean", and in other cases, put in a comment indicating why we're not doing that (because some files that are distributed in the source tarballs, namely Flex output, were built with a UN*X Flex and won't compile on Windows, so we get rid of them with "make distclean" so you can clean up stuff that *has* to be re-generated for Windows). Clean up some *CLEANFILES definitions - get rid of ones that no longer apply as files were moved or that add to the definition a name that's already there. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13402 f5534014-38df-0310-8fa8-9805f1628bb7
2004-11-21Update a URL.guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12550 f5534014-38df-0310-8fa8-9805f1628bb7
2004-10-01From Lars Roland: we need to define _NEED_VAR_IMPORT_ in plugins if weguy1-2/+2
link the plugins with libethereal, so do so. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12176 f5534014-38df-0310-8fa8-9805f1628bb7
2004-09-29From Lars Roland: add an option to link plugins with libethereal ratherguy1-2/+11
than using the plugin address table. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12139 f5534014-38df-0310-8fa8-9805f1628bb7
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12115 f5534014-38df-0310-8fa8-9805f1628bb7
2004-08-22Ethereal has required guint64 support for a while, so there's no need toguy1-27/+30
check for it in the Gryphon plugin. Use "tvb_get_ntoh64()" to fetch the time stamp, and format it similarly to the way absolute date/time time stamps are formatted. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11800 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18 .cvsignore is deadjmayer1-21/+0
it has been replaced by svn proplist -v <dir/file> and svn propedit <dir/file> git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11422 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18Add epan/dissectors/.cvsignorejmayer1-0/+2
Add tags and TAGS to all .cvsignore files git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11419 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18Move dissectors to epan/dissectors directory.gram1-1/+1
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11410 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18Set the svn:eol-style property on all text files to "native", so thatguy4-4/+4
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11400 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-25Replace the plugin linkage libs into PLUGIN_LIBS which is generated from theobiot1-2/+2
top-level configure.in when running configure. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10699 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-14Add support for plugin dissectors on cygwin builds, by adding the followingobiot1-1/+2
line to every Makefile.am file for a given plugin XXX: XXX_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@ This way symbols defined in libethereal and GLib are resolved when linking the plugin dissector modules. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10601 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-24Trivial signed/unsigned warning fixesjmayer1-12/+12
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9824 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-05removed some MSVC warnings (level 3)ulfl1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9561 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-17Fix the copyright notices (Gerald has the copyright on Ethereal).guy1-4/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8991 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-06Use "$(OBJECTS)" whenever a complete list of .obj files appears, ratherguy1-3/+3
than repeating the list from the setting of OBJECTS. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8893 f5534014-38df-0310-8fa8-9805f1628bb7
2003-11-04From Masaki Chikama: fix static compilation of "generic ASN.1" andguy1-1/+7
Gryphon plugins. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8878 f5534014-38df-0310-8fa8-9805f1628bb7
2003-10-10Give every Makefile.nmake file a "distclean" rule, and have "distclean"guy1-1/+3
recurse into subdirectories doing "nmake -f Makefile.nmake distclean". Have "nmake -f Makefile.nmake clean" not remove stuff that "make clean" doesn't remove (such as Flex/Bison output and config.h files) - and have "nmake -f Makefile.nmake distclean" remove stuff that "make distclean" removes, including "tethereal-tap-register.c" and "ethereal-tap-register.c". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8672 f5534014-38df-0310-8fa8-9805f1628bb7
2003-10-06check in the following comment:jmayer1-1/+4
/* XXX This code is neither Endianess independent, nor will it work * on platforms that do not support the *optional* guin64 type */ git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8626 f5534014-38df-0310-8fa8-9805f1628bb7
2003-10-06Fix 4 warnings in case of strict-aliasing by declaring timestamp as time_tjmayer1-3/+3
instead of int. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8618 f5534014-38df-0310-8fa8-9805f1628bb7
2003-10-03From Steve Limkemann:guy3-73/+600
Added two new "well known destinations": SD_IOPWR AND SD_UTIL. Added logic to dissect the CMD_SET_TIME command. Added an alterate destination for the CMD_PGM_START command. Added logic to dissect the CMD_SCHED_MSG_REPLACE command. Added logic to dissect the CMD_USDT_REGISTER command. Added logic to dissect the CMD_USDT_SET_FUNCTIONAL command. Added logic to dissect the following commands CMD_IOPWR_GETINP CMD_IOPWR_GETLATCH CMD_IOPWR_CLRLATCH CMD_IOPWR_GETOUT CMD_IOPWR_SETOUT CMD_IOPWR_SETBIT CMD_IOPWR_CLRBIT CMD_IOPWR_GETPOWER CMD_UTIL_SET_INIT_STRATEGY CMD_UTIL_GET_INIT_STRATEGY Added the ability to recongnize more IOCTLS. (For the SJA1000 driver, LIN and power drivers.) Added the ability to recognize more card types. Added dissection of more fields for CMD_SCHED_TX command. Bug fixes and general updating. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8607 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-09Use the right value_string table for the filter mode inguy1-2/+2
CMD_CARD_SET_FILTER_MODE and CMD_CARD_GET_FILTER_MODE. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8437 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-05- Make --enable-static work again (configure.in, Makefile.am)jmayer2-8/+3
- get rid of ...-static.o files in the build process (now done via config.h instead of compiler flag) - make packet-rtnet link statically (remove one unused function, rename another one) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8389 f5534014-38df-0310-8fa8-9805f1628bb7
2003-06-14Define GLIB_LIBS and GTK_LIBS variables in config.nmake (based onguy1-2/+2
variables the user configures - the user isn't expected to change GLIB_LIBS or GTK_LIBS, and there's a comment nothing that users shouldn't have to do so), which contain the appropriate libraries for building stuff that requires only GLib, and stuff that required GTK+ and GLib, respectively, and use those macros in the Makefile.nmake files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7885 f5534014-38df-0310-8fa8-9805f1628bb7
2003-06-14Define GLIB_CFLAGS and GTK_CFLAGS variables in config.nmake (based onguy1-4/+2
variables the user configures - the user isn't expected to change GLIB_CFLAGS or GTK_CFLAGS, and there's a comment nothing that users shouldn't have to do so), which contain the appropriate "/I" flags for building stuff that requires only GLib, and stuff that required GTK+ and GLib, respectively, and use those macros in the Makefile.nmake files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7884 f5534014-38df-0310-8fa8-9805f1628bb7
2003-06-12Link the plugin with glib, as it now calls "g_free()".guy1-2/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7863 f5534014-38df-0310-8fa8-9805f1628bb7
2003-06-12Add new routines:guy1-5/+5
tvb_get_string() - takes a tvbuff, an offset, and a length as arguments, allocates a buffer big enough to hold a string with the specified number of bytes plus an added null terminator (i.e., length+1), copies the specified number of bytes from the tvbuff, at the specified offset, to that buffer and puts in a null terminator, and returns a pointer to that buffer (or throws an exception before allocating the buffer if that many bytes aren't available in the tvbuff); tvb_get_stringz() - takes a tvbuff, an offset, and a pointer to a "gint" as arguments, gets the size of the null-terminated string starting at the specified offset in the tvbuff (throwing an exception if the null terminator isn't found), allocates a buffer big enough to hold that string, copies the string to that buffer, and returns a pointer to that buffer and stores the length of the string (including the terminating null) in the variable pointed to by the "gint" pointer. Replace many pieces of code allocating a buffer and copying a string with calls to "tvb_get_string()" (for one thing, "tvb_get_string()" doesn't require you to remember that the argument to "tvb_get_nstringz0()" is the size of the buffer into which you're copying the string, which might be the length of the string to be copied *plus 1*). Don't use fixed-length buffers for null-terminated strings (even if the code that generates those packets has a #define to limit the length of the string). Use "tvb_get_stringz()", instead. In some cases where a value is fetched but is only used to pass an argument to a "proto_tree_add_XXX" routine, use "proto_tree_add_item()" instead. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7859 f5534014-38df-0310-8fa8-9805f1628bb7
2003-04-30Modify tvb_get_nstringz*() to behave more like snprintf(). Make changesgerald1-3/+4
where necessary to reflect the new behavior. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7607 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-28Removed trailing whitespaces from .h and .c files using thejmayer2-54/+54
winapi_cleanup tool written by Patrik Stridvall for the wine project. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6116 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hjmayer1-11/+4
equivalents for the plugins/ directory. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5929 f5534014-38df-0310-8fa8-9805f1628bb7
2002-07-06From Nix:guy1-3/+3
Don't add "-I/usr/include" to CFLAGS or CPPFLAGS; GCC 3.1 warns about it, and it's not necessary. Expand the plugin directory path used for installation at installation time, rather than configuration time, so the user can reset "prefix" at installation time. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5828 f5534014-38df-0310-8fa8-9805f1628bb7
2002-05-05Make a "tcp_dissect_pdus()" with the standard loop for a TCP segment,guy1-105/+38
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5394 f5534014-38df-0310-8fa8-9805f1628bb7
2002-05-01Get rid of unused arguments.guy2-101/+101
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5325 f5534014-38df-0310-8fa8-9805f1628bb7
2002-05-01Make more use of "val_to_str()" and "decode_boolean_bitfield()".guy1-133/+85
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5324 f5534014-38df-0310-8fa8-9805f1628bb7
2002-05-01Use the bitfield decoding routines for bitfields.guy2-100/+91
Show the value of flag fields in the top-level item for the field. Use "%u", not "%d", to display unsigned quantities. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5323 f5534014-38df-0310-8fa8-9805f1628bb7
2002-05-01Add desegmentation support.guy2-153/+290
As a result of that, we now construct a tvbuff for each Gryphon message; this obviates the need to pass a message length to the dissectors for each message type. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5321 f5534014-38df-0310-8fa8-9805f1628bb7
2002-04-30Mark the "plugin_address_table_t *" argument to "plugin_init()" asguy1-2/+6
unused if PLUGINS_NEED_ADDRESS_TABLE isn't defined. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5311 f5534014-38df-0310-8fa8-9805f1628bb7
2002-02-27From Joerg Mayer:guy1-2/+2
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4824 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-21Include files from the "epan" directory and subdirectories thereof withguy2-4/+4
"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/"). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4586 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-12From Motonori Shindo:guy1-2/+2
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4385 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-10Move the pointer to the "column_info" structure in the "frame_data"guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4370 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-03Make "dissector_add()", "dissector_delete()", and "dissector_change()"guy1-7/+9
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4308 f5534014-38df-0310-8fa8-9805f1628bb7
2001-10-31Sigh. Well, if you make the function declarations external, that meansguy1-1/+3
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4117 f5534014-38df-0310-8fa8-9805f1628bb7
2001-07-10Add some additional items to .cvsignore files, for new files built whenguy1-0/+1
compiling plugins for statically-linked binaries. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3678 f5534014-38df-0310-8fa8-9805f1628bb7
2001-07-10Fixed the make dist problem.hagbard1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3676 f5534014-38df-0310-8fa8-9805f1628bb7
2001-07-09C sources are in $(srcdir) and not the current directorygirlich1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3671 f5534014-38df-0310-8fa8-9805f1628bb7