aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/gryphon
AgeCommit message (Collapse)AuthorFilesLines
2004-08-22Ethereal has required guint64 support for a while, so there's no need toGuy Harris1-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. svn path=/trunk/; revision=11800
2004-07-18 .cvsignore is deadJörg Mayer1-21/+0
it has been replaced by svn proplist -v <dir/file> and svn propedit <dir/file> svn path=/trunk/; revision=11422
2004-07-18Add epan/dissectors/.cvsignoreJörg Mayer1-0/+2
Add tags and TAGS to all .cvsignore files svn path=/trunk/; revision=11419
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-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. svn path=/trunk/; revision=11410
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris4-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. svn path=/trunk/; revision=11400
2004-04-25Replace the plugin linkage libs into PLUGIN_LIBS which is generated from theOlivier Biot1-2/+2
top-level configure.in when running configure. svn path=/trunk/; revision=10699
2004-04-14Add support for plugin dissectors on cygwin builds, by adding the followingOlivier Biot1-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. svn path=/trunk/; revision=10601
2004-01-24Trivial signed/unsigned warning fixesJörg Mayer1-12/+12
svn path=/trunk/; revision=9824
2004-01-05removed some MSVC warnings (level 3)Ulf Lamping1-2/+2
svn path=/trunk/; revision=9561
2003-11-17Fix the copyright notices (Gerald has the copyright on Ethereal).Guy Harris1-4/+5
svn path=/trunk/; revision=8991
2003-11-06Use "$(OBJECTS)" whenever a complete list of .obj files appears, ratherGuy Harris1-3/+3
than repeating the list from the setting of OBJECTS. svn path=/trunk/; revision=8893
2003-11-04From Masaki Chikama: fix static compilation of "generic ASN.1" andGuy Harris1-1/+7
Gryphon plugins. svn path=/trunk/; revision=8878
2003-10-10Give every Makefile.nmake file a "distclean" rule, and have "distclean"Guy Harris1-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". svn path=/trunk/; revision=8672
2003-10-06check in the following comment:Jörg Mayer1-1/+4
/* XXX This code is neither Endianess independent, nor will it work * on platforms that do not support the *optional* guin64 type */ svn path=/trunk/; revision=8626
2003-10-06Fix 4 warnings in case of strict-aliasing by declaring timestamp as time_tJörg Mayer1-3/+3
instead of int. svn path=/trunk/; revision=8618
2003-10-03From Steve Limkemann:Guy Harris3-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. svn path=/trunk/; revision=8607
2003-09-09Use the right value_string table for the filter mode inGuy Harris1-2/+2
CMD_CARD_SET_FILTER_MODE and CMD_CARD_GET_FILTER_MODE. svn path=/trunk/; revision=8437
2003-09-05- Make --enable-static work again (configure.in, Makefile.am)Jörg Mayer2-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) svn path=/trunk/; revision=8389
2003-06-14Define GLIB_LIBS and GTK_LIBS variables in config.nmake (based onGuy Harris1-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. svn path=/trunk/; revision=7885
2003-06-14Define GLIB_CFLAGS and GTK_CFLAGS variables in config.nmake (based onGuy Harris1-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. svn path=/trunk/; revision=7884
2003-06-12Link the plugin with glib, as it now calls "g_free()".Guy Harris1-2/+3
svn path=/trunk/; revision=7863
2003-06-12Add new routines:Guy Harris1-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. svn path=/trunk/; revision=7859
2003-04-30Modify tvb_get_nstringz*() to behave more like snprintf(). Make changesGerald Combs1-3/+4
where necessary to reflect the new behavior. svn path=/trunk/; revision=7607
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer2-54/+54
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6116
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-11/+4
equivalents for the plugins/ directory. svn path=/trunk/; revision=5929
2002-07-06From Nix:Guy Harris1-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. svn path=/trunk/; revision=5828
2002-05-05Make a "tcp_dissect_pdus()" with the standard loop for a TCP segment,Guy Harris1-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. svn path=/trunk/; revision=5394
2002-05-01Get rid of unused arguments.Guy Harris2-101/+101
svn path=/trunk/; revision=5325
2002-05-01Make more use of "val_to_str()" and "decode_boolean_bitfield()".Guy Harris1-133/+85
svn path=/trunk/; revision=5324
2002-05-01Use the bitfield decoding routines for bitfields.Guy Harris2-100/+91
Show the value of flag fields in the top-level item for the field. Use "%u", not "%d", to display unsigned quantities. svn path=/trunk/; revision=5323
2002-05-01Add desegmentation support.Guy Harris2-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. svn path=/trunk/; revision=5321
2002-04-30Mark the "plugin_address_table_t *" argument to "plugin_init()" asGuy Harris1-2/+6
unused if PLUGINS_NEED_ADDRESS_TABLE isn't defined. svn path=/trunk/; revision=5311
2002-02-27From Joerg Mayer:Guy Harris1-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. svn path=/trunk/; revision=4824
2002-01-21Include files from the "epan" directory and subdirectories thereof withGuy Harris2-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/"). svn path=/trunk/; revision=4586
2001-12-12From Motonori Shindo:Guy Harris1-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. 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=4370
2001-12-03Make "dissector_add()", "dissector_delete()", and "dissector_change()"Guy Harris1-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. svn path=/trunk/; revision=4308
2001-10-31Sigh. Well, if you make the function declarations external, that meansGuy Harris1-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. svn path=/trunk/; revision=4117
2001-07-10Add some additional items to .cvsignore files, for new files built whenGuy Harris1-0/+1
compiling plugins for statically-linked binaries. svn path=/trunk/; revision=3678
2001-07-10Fixed the make dist problem.Ed Warnicke1-2/+2
svn path=/trunk/; revision=3676
2001-07-09C sources are in $(srcdir) and not the current directoryUwe Girlich1-2/+2
svn path=/trunk/; revision=3671
2001-07-08Fixed the {tethereal,ethereal}_static targets so that theEd Warnicke3-19/+36
static binaries have the dissectors provided in the plugins available. svn path=/trunk/; revision=3665
2001-06-18From Joerg Mayer: explicitly fill in all members of aGuy Harris1-7/+7
"header_field_info" structure, including the ones that are later set by the routines to register fields. svn path=/trunk/; revision=3561
2001-04-25Tvbuffify the Gryphon dissector.Guy Harris3-788/+892
Make all the routines for dissecting particular requests and responses static. svn path=/trunk/; revision=3380
2001-04-23Signed vs. unsigned fixes from Joerg Mayer.Guy Harris1-15/+19
svn path=/trunk/; revision=3372
2001-01-12Increment module version.Gilbert Ramirez1-1/+1
svn path=/trunk/; revision=2884
2001-01-09Add an additional "protocol index" argument to "{old_}dissector_add()",Guy Harris1-2/+2
"{old_}heur_dissector_add()", "{old_}conv_dissector_add()", and "register_dissector()", so that an entry in those tables has associated with it the protocol index of the protocol the dissector handles (or -1, if there is no protocol index for it). This is for future use in a number of places. (Arguably, "proto_register_protocol()" should take a dissector pointer as an argument, but 1) it'd have to handle both regular and heuristic dissectors; 2) making it take either a "dissector_t" or a union of that and a "heur_dissector_t" introduces some painful header-file interdependencies so I'm punting on that for now. As with other Ethereal internal APIs, these APIs are subject to change in the future, at least until Ethereal 1.0 comes out....) svn path=/trunk/; revision=2849
2001-01-04Doesn't need #include "dfilter.h"Gilbert Ramirez1-2/+1
svn path=/trunk/; revision=2824
2001-01-03Have "proto_register_protocol()" build a list of data structures forGuy Harris1-2/+3
protocols, in addition to adding structures to the list of filterable fields. Give it an extra argument that specifies a "short name" for the protocol, for use in such places as pinfo->current_proto; the dialog box for constructing filters; the preferences tab for the protocol; and so on (although we're not yet using it in all those places). Make the preference name that appears in the preferences file and the command line for the DIAMETER protocol "diameter", not "Diameter"; the convention is that the name in question be all-lower-case. Make some routines and variables that aren't exported static. Update a comment in the ICP dissector to make it clear that the dissector won't see fragments other than the first fragment of a fragmented datagram. svn path=/trunk/; revision=2810
2000-11-29Use GLib's G_MODULE_EXPORT when defining constants and functionsGuy Harris1-5/+5
exported by a plugin, rather than defining our own DLLEXPORT. svn path=/trunk/; revision=2713