aboutsummaryrefslogtreecommitdiffstats
path: root/dftest.c
AgeCommit message (Collapse)AuthorFilesLines
2009-09-09* Free dfilter on shutdownkrj1-15/+14
* Remove unused packet_info variable git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29824 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-22Change the signature of init_progfile_dir() so the casting of theguy1-1/+1
function pointer (to main) to an argument to dladdr() is done in init_progfile_dir() rather than its callers. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27814 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-22In Solaris, the second argument to dladdr() is just a void *, not aguy1-2/+1
const void *. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27813 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-22Attempt to use dladdr() to get the pathname of the executable image ifguy1-1/+2
it's available and works. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27812 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-15Add a routine to report write errors to the list of failure-reportingguy1-4/+15
routines handled by epan/report_err.c. Move copy_binary_file() in file.c to epan/filesystem.c, and rename it to copy_file_binary_mode() (to clarify that it *can* copy text files; arguably, *all* files are "binary" unless you're on, say, an IBM 1401 :-)). Have it use the report_err.c routines, so it works in console-mode programs. Clean up some comments while we're at it. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27456 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-30Move privileges.c and unicode-utils.c from epan to wsutil (so things likemorriss1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25640 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-25No need to call init_plugin_dir() - it gets called, if necessary, byguy1-6/+6
get_plugin_dir(). Add checks for the success or failure of init_progfile_dir() in dftest. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21942 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-21Have init_progfile_dir() also check whetherguy1-4/+4
WIRESHARK_RUN_FROM_BUILD_DIRECTORY is set and, if so and we weren't run with special privileges, set the running_in_build_directory_flag. Have it do the same if it finds ".libs" in the pathname of the program and we weren't run with special privileges, as that means it was probably run from the libtool wrapper script and presumably thus isn't an installed binary. This means that get_credential_info() has to be called before init_progfile_dir(). Clean up some indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21866 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-07Updated splash screen for Wireshark that shows the initialisation progress. gal1-1/+1
The splash screen shows a progress bar and a percentage complete - like the progress dialog. As dissectors are initialised and handed off the name is shown. However, the names of plugin dissectors are not shown. The update to the make-dissector-reg shell script has been tested, though I think generally the python version is used. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21716 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-02Add a WIRESHARK_RUN_FROM_BUILD_DIRECTORY environment variable on UN*X;guy1-5/+15
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20261 f5534014-38df-0310-8fa8-9805f1628bb7
2006-11-21Use the <name> convention for command-line arguments in the usageguy1-1/+1
message. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19941 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21name changesahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2006-04-06Handle a filter that evaluates to an empty "matches everything" filter.guy1-1/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17835 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-08Call "get_credential_info()", so any later calls to privileges.cguy1-0/+6
routines will have the UID info (not that it matters in this case, but...). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17216 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-25timestamp display precision:ulfl1-1/+1
- automatic adjustment depending on file format - manual adjustment through menu items save the setting in the recent file git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15534 f5534014-38df-0310-8fa8-9805f1628bb7
2005-02-13change nmake makefiles in /trunk and /trunk/epan so thatlroland1-4/+0
object code for libethereal.dll isn't generated by the makefile in /trunk. Having no code in /trunk linked into libethereal.dll anymore, the definition of the macro _NEED_VAR_IMPORT_ can be moved from various source files in /trunk to /trunk/Makefile.nmake . So do that, too. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13389 f5534014-38df-0310-8fa8-9805f1628bb7
2004-12-25Again, some warnings removed.ulfl1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12834 f5534014-38df-0310-8fa8-9805f1628bb7
2004-10-02From Lars Roland: define _NEED_VAR_IMPORT_ in dftest.c to make linkingguy1-0/+4
with libethereal.dll work again. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12180 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-07-18Set the svn:eol-style property on all text files to "native", so thatguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11400 f5534014-38df-0310-8fa8-9805f1628bb7
2004-04-17Update to handle the changed epan_init() API, with a "general failure"guy1-9/+18
routine added. Add a missing newline to the end of read failure messages. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10619 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-23Make "epan_init()" take, as additional arguments, pointers to routinesguy1-12/+18
that dissectors should call to report file open and read errors, and have "report_open_failure()" and "report_read_failure()" call through those pointers, rather than being defined and exported by the application using libethereal - instead, the application would define those functions and pass pointers to them to 'epan_init()". Move "report_err.h" to the epan directory, as the functions it declares are now part of the libethereal API. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10470 f5534014-38df-0310-8fa8-9805f1628bb7
2004-03-18From Lars Roland: Move timestamp_type into libethereal and provide accessorobiot1-2/+3
methods for getting and setting the timestamp type. This is a move towards a real libethereal shared library. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10402 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-21Get rid of some "#if 0"ed out #includes.guy1-11/+25
Define "report_open_failure()" and "report_read_failure()", so that dissectors can report file open and read errors. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10171 f5534014-38df-0310-8fa8-9805f1628bb7
2004-01-19move timestamp format options from "View->Options" dialog intoulfl1-2/+2
menuitems under "View->Time Display Format". renamed timestamp enum items e.g. from ABSOLUTE to TS_ABSOLUTE, to prevent conflicting definitions with MSVC git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9729 f5534014-38df-0310-8fa8-9805f1628bb7
2003-08-18Add checks for read errors in "read_prefs()".guy1-7/+25
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8183 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-28Removed trailing whitespaces from .h and .c files using thejmayer1-4/+4
winapi_cleanup tool written by Patrik Stridvall for the wine project. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6117 f5534014-38df-0310-8fa8-9805f1628bb7
2002-07-17From Joerg Mayer:guy1-27/+1
dftest.c: Remove #if-0-ed includes packet-ieee80211.c, packet-wtls.c, packet-afp.c, packet-wsp.c, packet-wtp.c, ethereal_gen.py: Remove redundant include varargs (already in snprintf.h, and required only for snprintf.h) Remove unused include of snprintf.h from files not using "snprintf()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5889 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-21Include files from the "epan" directory and subdirectories thereof withguy1-8/+8
"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-04-02Added two new arguments to epan_init() and proto_init() tohagbard1-2/+4
allow the passing of register_all_protocols() and register_all_protocol_handoffs() through epan_init() to proto_init(). This allows the removal of the compile time dependence of proto.c on register.h. Modified dftest.c, tethereal.c, and gtk/main.c to use the new style epan_init() and depend on register.h. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3237 f5534014-38df-0310-8fa8-9805f1628bb7
2001-02-01Create a more modular type system for the FT_* types. Put themgram1-0/+150
into epan/ftypes. Re-write display filter routines using Lemon parser instead of yacc. Besides using a different tool, the new grammar is much simpler, while the display filter engine itself is more powerful and more easily extended. Add dftest executable, to test display filter "bytecode" generation. Add option to "configure" to build dftest or randpkt, both of which are not built by default. Implement Ed Warnicke's ideas about dranges in the new display filter and ftype code. Remove type FT_TEXT_ONLY in favor of FT_NONE, and have protocols registered as FT_PROTOCOL. Thus, FT_NONE is used only for simple labels in the proto tree, while FT_PROTOCOL is used for protocols. This was necessary for being able to make byte slices (ranges) out of protocols, like "frame[0:3]" Win32 Makefile.nmake's will be added tonight. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2967 f5534014-38df-0310-8fa8-9805f1628bb7