aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mgcp
AgeCommit message (Collapse)AuthorFilesLines
2002-04-30Mark the "plugin_address_table_t *" argument to "plugin_init()" asGuy Harris1-15/+13
unused if PLUGINS_NEED_ADDRESS_TABLE isn't defined. Get rid of some other unused arguments. svn path=/trunk/; revision=5312
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-6/+6
"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
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-11/+11
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-18/+15
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 Warnicke2-2/+17
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 Harris1-36/+36
"header_field_info" structure, including the ones that are later set by the routines to register fields. svn path=/trunk/; revision=3561
2001-04-23Get rid of NullTVB references.Guy Harris1-3/+3
svn path=/trunk/; revision=3362
2001-03-23Update the version of the MGCP plugin.Guy Harris1-1/+1
svn path=/trunk/; revision=3164
2001-03-22Get rid of no-longer-used "tvb_section_length()" routine.Guy Harris1-14/+1
svn path=/trunk/; revision=3156
2001-03-15Patch from Ed Warnicke.Olivier Abad1-30/+14
svn path=/trunk/; revision=3135
2001-03-04Updates from Ed Warnicke.Guy Harris2-14/+21
svn path=/trunk/; revision=3103
2001-03-04Update from Ed Warnicke.Guy Harris2-40/+208
svn path=/trunk/; revision=3102
2001-01-26Clean up the dissector registration up a bit - arrange that all pluginsGuy Harris1-6/+1
be loaded and their initialization routines called in right after we call the initialization routines for built-in dissectors, but don't call their handoff registration routines yet, and then call the handoff registration routines right after calling the handoff registration routines for built-in dissectors. Do all that in "proto_init()", rather than "epan_init()". That way, we call all dissector registration routines together, and then call all dissector handoff registration routines together; all the registration routines are called before any handoff registration routines, as is required, and, as "proto_init()" is called by "epan_init()" before "dfilter_init()" is called, all filterable fields have been registered before "dfilter_init()" is called, and no plugins have to call "dfilter_init()" themselves to get their fields registered. Remove pointers to "dfilter_init()" and "dfilter_cleanup()" from the plugin address table, as plugins shouldn't be calling them any more, and remove calls to them from plugins. svn path=/trunk/; revision=2940
2001-01-22Remove more "CHECK_DISPLAY_AS_DATA()" calls and "pinfo->current_proto ="Guy Harris1-5/+10
statements. Move the setting of the Protocol column in various dissectors before anything is fetched from the packet, and also clear the Info column at that point in those and some other dissectors, so that if an exception is thrown, the columns don't reflect the previous protocol. svn path=/trunk/; revision=2932
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-5/+9
"{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-03Add a new "prefs_register_protocol()" routine, which is likeGuy Harris1-8/+8
"prefs_register_module()" except that it takes a protocol index as returned by "proto_register_protocol()" as its first argument, rather than taking two character strings as arguments as its first two arguments, and uses the protocol's abbreviation as the name to use for preferences in the preferences file and the "-o" flag and uses the protocol's short name as the name to use in the tabs in the "Edit->Preferences" window. svn path=/trunk/; revision=2812
2001-01-03Have "proto_register_protocol()" build a list of data structures forGuy Harris1-4/+4
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-12-28Updates from Ed Warnicke.Guy Harris3-30/+49
svn path=/trunk/; revision=2793
2000-12-25Preferences shouldn't supposed to have blanks in their names - it canGuy Harris1-15/+15
make it a bit of a pain to set their values on the command line (you have to quote the name). Use underscores instead. Give the gateway and callagent port preferences different names. Fix up the text descriptions and labels for those preferences. svn path=/trunk/; revision=2782
2000-12-20Bug fixes from Ed Warnicke.Gilbert Ramirez1-10/+40
svn path=/trunk/; revision=2767
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
2000-11-22Export plugin_reg_handoff via DLLEXPORT.Gilbert Ramirez1-3/+5
svn path=/trunk/; revision=2697
2000-11-21Updates from Ed Warnicke.Guy Harris1-140/+95
svn path=/trunk/; revision=2685
2000-11-15Add a mechanism by which a dissector can be registered by name, anotherGuy Harris1-5/+9
dissector can get a "handle" for that dissector by name and then call that dissector through the handle. This allows dissectors that can't be called through a port table or a heuristic table to be called from other dissectors without directly referring to the dissector function - dynamically-loaded modules, under Windows, cannot directly call functions in the main program, and non-plugin dissectors are in the main program and thus cannot be called from plugin dissectors unless either 1) a pointer to the dissector is put in the Big Transfer Vector or 2) some other mechanism for getting a pointer to the dissector is provided. This mechanism could also support registering old-style dissectors and calling them from new-style dissectors without the new-style dissector having to do the argument translation itself (I didn't add support for registering old-style dissectors because I'd prefer to have people tvbuffify their code if they have to register a dissector...). It could also, in the future, perhaps support disabling of protocols; setting "pinfo->current_proto"; inside "call_dissector()" - and inside "{old_}dissector_try_port()" and "{old_"dissector_try_heuristic()" - allowing a pile of stuff that currently has to be done in every dissector be done by common code. (I have some ideas about how to do this, by having "proto_register_protocol()" take an abbreviation - of the sort that would be put in, for example, "pinfo->current_proto" - as an argument; having the calls to register dissectors take an index returned by "proto_register_protocol()" as an argument. The abbreviation could be used elsewhere as well, e.g. in the "Decoding" tab of the "Edit->Protocols" dialog box, and in a GUI for constructing protocol filters. Watch this space.) Make "dissect_sdp()" the first client of this mechanism; it's now static to "packet-sdp.c", and all dissectors that call it - including the MGCP plugin - now call it through a dissector handle fetched by "find_dissector()". (Next step - see if Ethereal can now compile on Windows as a result of this.) svn path=/trunk/; revision=2647
2000-11-14"plugin_api.c" needs to include <glib.h>, to define G_HAVE_GINT64 onGuy Harris1-2/+3
platforms that have "gint64". Fix plugin-table lines for "dissector_delete()", "dissect_data()", "prefs_register_module()", and "prefs_register_uint_preference()". The MGCP dissector uses routines from GLib, so when building it as a DLL for Windows, it has to be linked with "glib-XXX.lib". svn path=/trunk/; revision=2643
2000-11-12Add a Makefile.nmake for the MGCP plugin, and updateGuy Harris2-6/+25
"plugins/Makefile.nmake" to build that plugin. Add to the table of routines callable from plugins "old_dissector_add()", "old_dissect_data()", and "proto_is_protocol_enabled()", so that the Gryphon dissector can build on Windows. Move the includes of "plugins/plugin_api.h" and "moduleinfo.h" before all the other includes, except for "config.h", in "plugin-mgcp.c", to match what the Gryphon dissector does; "plugins_api.h" must be included before any of the routines whose names it #defines in order for the plugin to build on Windows. (It still doesn't build on Windows, as still more routines need to be added to the table of routines callable from plugins, but tomorrow is another day. Making libethereal a DLL may obviate the need for that table, *if* all the routines called from a plugin are in libethereal, as I think routines in a DLL, even a run-time-loaded DLL, can call routines from another DLL as long as those routines are exported from the other DLL.) svn path=/trunk/; revision=2622
2000-11-10Yet Another .cvsignore file.Guy Harris1-0/+18
svn path=/trunk/; revision=2596
2000-11-10Tvbuffify the SAP and SDP dissectors.Guy Harris1-5/+2
Add "tvb_find_line_end_unquoted()" for the benefit of the SDP dissector; get rid of "find_line_end_unquoted()" as nobody uses it any more. Add "tvb_pbrk_guint8()" for the benefit of "tvb_find_line_end_unquoted()"; it searches for any of a number of characters, unlike "tvb_find_guint8()" which searches for only one. svn path=/trunk/; revision=2595
2000-11-10MGCP updates from Ed Warnicke.Guy Harris1-47/+33
svn path=/trunk/; revision=2594
2000-11-09Add MGCP dissector plugin from Ed Warnicke <hagbard@physics.rutgers.edu>.Gilbert Ramirez8-0/+1529
svn path=/trunk/; revision=2588