aboutsummaryrefslogtreecommitdiffstats
path: root/epan/plugins.c
AgeCommit message (Collapse)AuthorFilesLines
2009-10-23Load lua scripts in the plugins directory, both global and personal.Stig Bjørlykke1-10/+2
List loaded lua scripts in Help->About->Plugins. svn path=/trunk/; revision=30675
2009-08-26(FWIW) One step towards including stdio.h & stdlib.h only when req'd.Bill Meier1-1/+2
svn path=/trunk/; revision=29568
2009-05-05Clean up white space.Guy Harris1-268/+281
svn path=/trunk/; revision=28271
2009-03-11From Jakub Zawadzki:Jaap Keuter1-0/+1
Fix small memory leak when running from build directory. svn path=/trunk/; revision=27691
2008-10-27ETH -> WS updates.Gerald Combs1-4/+4
svn path=/trunk/; revision=26570
2008-06-30Move privileges.c and unicode-utils.c from epan to wsutil (so things likeJeff Morriss1-1/+1
capinfos and dumpcap don't need to depend on libwireshark nor directly pull in those modules). Because capinfos and editcap were only being linked with privileges.c if we had plugins, this allows those programs to be linked when someone is compiling --without-plugins. svn path=/trunk/; revision=25640
2008-05-22Move the file utility functions from wiretap to libwsutil so thatJeff Morriss1-14/+14
libwireshark (and the plugins using those functions) do not depend on wiretap on Windows. While doing that, rename the eth_* functions to ws_*. svn path=/trunk/; revision=25354
2008-04-07- Remove GLIB1 codeStephen Fisher1-42/+0
- Change ugly GLIB version checking statements to GLIB_CHECK_VERSION - Remove ws_strsplit files because we no longer need to borrow GLIB2's g_strsplit code for the no longer supported GLIB1 builds svn path=/trunk/; revision=24829
2008-01-14This patch adds support for configuration profiles, which can be used toStig Bjørlykke1-1/+1
configure and use more than one set of preferences and configuration files. This can be found in the "Configuration Profiles..." menu item from the Edit menu, or by pressing Shift-Ctrl-A. It's also possible to start wireshark and tshark with a named profile by using the "-C ProfileName" option. A new status pane in the main window will show the current profile. The configuration files currently stored in the Profiles are: - Preferences - Capture Filters - Display Filters - Coloring Rules - Disabled Protocols - User Accessible Tables The recent data are by design not added to the profile. Planned future enhancements: - make a more convenient function to switch between profiles - add a "clone profile" button to copy an existing profile - make the profiles list active and accept return as OK - save users "Decode as" in the profile - make new, clone and deletion of profiles more secure - make some of the recent values available in the profile This patch also fixes: - setting default status pane sizes - a bug setting status pane for packets when not having main lower pane. svn path=/trunk/; revision=24089
2007-10-25new codec table for registering codecs by nameTomas Kukosa1-4/+35
new codec plugin type search registered codecs in rtp player fix memory leak in rtp player svn path=/trunk/; revision=23270
2007-08-07Make sure that wiretap plugins are loaded before dissectors are (if a new ↵Luis Ontanon1-0/+1
encap type is registered the plugin probably needs it before reg_handoff) svn path=/trunk/; revision=22461
2007-05-25Have editcap and capinfos loading the wiretap plugins.Luis Ontanon1-8/+22
epan/filesystem.c have get_plugin_dir() calling init_plugin_dir() if necessary epan/epan.c and epan/report_err.c move the report_failure family into the new report_err.c file, have epan_init() calling the initializer epan/plugins.h and epan/proto.c do not have init_plugins() calling the proto_reg functions instead do it in init_proto() gtk/main.c and tshark.c init_plugin_dir() has become suprefluous capinfos.c and editcap.c load the wiretap plugins Makefiles do what's needed to build withe the above changes. svn path=/trunk/; revision=21935
2007-05-24Prepare wireshark and tshark for wiretap pluginsLuis Ontanon1-28/+63
svn path=/trunk/; revision=21928
2007-01-02Add a WIRESHARK_RUN_FROM_BUILD_DIRECTORY environment variable on UN*X;Guy Harris1-68/+58
if set, and if the program isn't running with additional privileges, it'll treat the directory in which the program is found as the data directory. If, on Windows, the version-number subdirectory of {data directory}\plugins doesn't exist (which is assumed to mean that the program is being run from the build directory), or if, on UN*X, WIRESHARK_RUN_FROM_BUILD_DIRECTORY is set, the plugin directory is the "plugins" subdirectory of the data directory, and all subdirectories of that directory are scanned for plugins, as the "plugins" subdirectory of the build directory contains subdirectories for the plugins; this means that if we're running from the build directory, we'll find the plugins we built in the build tree. When generating the wireshark-filter man page, run tshark with WIRESHARK_RUN_FROM_BUILD_DIRECTORY set, so it uses the plugins from the build to generate the list of filters. svn path=/trunk/; revision=20261
2006-06-02image/wireshark.rc.inJörg Mayer1-1/+1
svn path=/trunk/; revision=18310
2006-05-28Ethereal->WiresharkAnders Broman1-2/+2
svn path=/trunk/; revision=18234
2006-05-22ethereal->wiresharkRonnie Sahlberg1-1/+1
svn path=/trunk/; revision=18207
2006-05-22ethereal->wireshark updatesRonnie Sahlberg1-1/+1
svn path=/trunk/; revision=18206
2006-05-21name changeRonnie Sahlberg1-5/+5
svn path=/trunk/; revision=18197
2006-02-06Add code to check whether the app was started with special privilegesGuy Harris1-4/+12
(e.g., set-UID or set-GID), and don't load user plugs if it is. svn path=/trunk/; revision=17174
2005-11-07Use eth_dir_open(), not g_dir_open(); g_dir_open() isn't available inGuy Harris1-1/+1
GLib 1.2[.x]. svn path=/trunk/; revision=16412
2005-11-07Use <wiretap/file_util.h> to include "file_util.h"; otherwise, theGuy Harris1-1/+1
include fails as we don't do -Iwiretap. If we have it, include <sys/stat.h> in epan/filesystem.c - we need it for stat() and the macros and structures it uses. svn path=/trunk/; revision=16410
2005-11-06replace *a lot* of file related calls by their GLib counterparts. This is ↵Ulf Lamping1-33/+15
necessary for the switch to GTK 2.6 (at least on WIN32). to do this, I've added file_util.h to wiretap (would file_compat.h be a better name?), and provide compat_macros like eth_open() instead of open(). While at it, move other file related things there, like #include <io.h>, definition of O_BINARY and alike, so it's all in one place. deleted related things from config.h.win32 As of these massive changes, I'm almost certain that this will break the Unix build. I'll keep an eye on the buildbot so hopefully everything is working again soon. svn path=/trunk/; revision=16403
2005-08-18several times replacing:Ulf Lamping1-1/+1
sprintf -> g_snprintf snprintf -> g_snprintf vsnprintf -> g_vsnprintf strdup -> g_strdup svn path=/trunk/; revision=15412
2005-08-08various code cleanup:Ulf Lamping1-6/+2
-use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants svn path=/trunk/; revision=15264
2005-03-16Remove support for the old plugin api.Lars Roland1-51/+7
TODO: cleanup files in /trunk/plugins svn path=/trunk/; revision=13782
2005-03-07Call the "new-style init" routine for plugins a "register" routine, asGuy Harris1-44/+73
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. svn path=/trunk/; revision=13644
2005-03-06"report_err.h" declares "report_failure()", so it doesn't need to beGuy Harris1-1/+0
declared in "epan.h", and, as "epan/plugins.c" now includes "report_err.h", it doesn't need to include "epan.h". svn path=/trunk/; revision=13634
2005-03-06Warning fix:Jörg Mayer1-0/+1
plugins.c:236: warning: implicit declaration of function 'report_failure' svn path=/trunk/; revision=13625
2005-03-06Squelch some compiler warnings.Guy Harris1-1/+4
svn path=/trunk/; revision=13622
2005-03-05Preparations for dropping the old plugin api.Lars Roland1-12/+39
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. svn path=/trunk/; revision=13596
2005-02-27The stats tree stuff should ultimately allow us to have plugin taps, soGuy Harris1-60/+104
add infrastructure for them, and display the plugin type (which could be both dissector *and* tap) in the list of plugins. svn path=/trunk/; revision=13543
2005-02-09Move the following files from /trunk to /trunk/epan:Lars Roland1-2/+2
asn1.[ch] follow.[ch] ptvcursor.[ch] reassemble.[ch] xmlstub.[ch] fix #include statements accordingly. svn path=/trunk/; revision=13366
2005-01-12add some of the DCE/RPC functions to the plugin APIUlf Lamping1-0/+1
svn path=/trunk/; revision=13010
2005-01-02Don't cast pointers passed as arguments - pass a pointer to the rightGuy Harris1-4/+8
type of variable and assign the value; that squelches "dereferencing type-punned pointer will break strict-aliasing rules" warnings from some versions of GCC. svn path=/trunk/; revision=12924
2004-12-31As "get_persconffile_path()" doesn't return a "const char *", neitherGuy Harris1-5/+5
does "get_plugins_pers_dir()" - and "get_plugins_global_dir()" doesn't return one either. Both of them return mallocated data, and making them return a "const char *" just causes compiler whining when you try to free them. svn path=/trunk/; revision=12883
2004-09-29Move the tap infrastructure to the epan directory.Guy Harris1-1/+1
svn path=/trunk/; revision=12128
2004-09-28Move the xDLC helper routines into epan.Guy Harris1-1/+1
svn path=/trunk/; revision=12127
2004-09-28Move various checksum routines and headers to epan.Guy Harris1-1/+1
svn path=/trunk/; revision=12117
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-09-23Add proto_tree_add_debug_text(), rtcp_add_address(), andGuy Harris1-0/+2
rtp_add_address() to the list of functions exported from libethereal.dll and exported via the plugin function table. svn path=/trunk/; revision=12067
2004-09-11Use _WIN32 rather than WIN32 to determine if we're compiling on Win32;Guy Harris1-1/+1
according to Gisle Vanem, WIN32 isn't a built-in in MSVC, but _WIN32 is. svn path=/trunk/; revision=11972
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-6/+6
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 Harris1-1/+1
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-06-30Add "crc16_ccitt_tvb()" to the plugin API and the list of functionsGuy Harris1-1/+2
exported from libethereal.dll. svn path=/trunk/; revision=11280
2004-06-19From Dennis Lim: add routines used by dissectors for ONC RPC protocolsGuy Harris1-1/+2
to the plugin API. Add them to the list of routines exported from the libethereal DLL on Windows as well. svn path=/trunk/; revision=11186
2004-05-21Get rid of a no-longer-used variable.Guy Harris1-3/+1
svn path=/trunk/; revision=10938
2004-05-20"datafile_dir" in "init_plugins()" is used regardless of whether we'reGuy Harris1-13/+8
on Windows or UN*X - don't #ifdef it. Clean up the #ifdefs in "get_plugins_global_dir()". Clean up white space. svn path=/trunk/; revision=10931
2004-05-20separate dir functions from the plugin init,Ulf Lamping1-22/+45
put this and some other dirs in the about dialog svn path=/trunk/; revision=10928
2004-03-04From Tomas Kukosa: add packet-ber.c routines to the plugin API.Guy Harris1-1/+2
svn path=/trunk/; revision=10295