aboutsummaryrefslogtreecommitdiffstats
path: root/epan/epan.c
AgeCommit message (Collapse)AuthorFilesLines
2011-06-16Constify a return value, to squelch a compiler warning.Guy Harris1-2/+2
svn path=/trunk/; revision=37680
2011-06-11Include <Python.h> to get the Python version number.Guy Harris1-1/+4
svn path=/trunk/; revision=37651
2010-09-23Revert 34191 and add some casts insteadJeff Morriss1-3/+3
svn path=/trunk/; revision=34193
2010-09-23Use gsize (size_t) in a couple of places to make the Win64 build happy.Jeff Morriss1-3/+3
svn path=/trunk/; revision=34191
2010-09-22When using a custom column, make it possible to select which occurrence to ↵Sake Blok1-1/+2
show if the field has multiple occurrences. svn path=/trunk/; revision=34186
2010-07-15If we have neither libgnutls nor libgcrypt,Guy Harris1-1/+5
epan_get_runtime_version_info() does nothing, and thus doesn't use its argument. svn path=/trunk/; revision=33532
2010-07-15Move the code to get version information for libraries used byGuy Harris1-1/+132
libwireshark into libwireshark, and call it only in programs linked with libwireshark. That way, programs that don't link with libwireshark don't have to link with libgcrypt or libgnutls solely so that they can say that they're linked with a particular version of libgcrypt or libgnutls. Don't link dumpcap with libgcrypt or libgnutls any more. svn path=/trunk/; revision=33531
2010-06-02From David Bond:Anders Broman1-1/+1
Added the IEEE defined ether types for TRILL and Layer 2 ISIS. Also had ISIS register itself with the ethertype dissector. References: http://www.postel.org/pipermail/rbridge/2010-May/003998.html http://tools.ietf.org/html/draft-ietf-isis-layer2-05 http://tools.ietf.org/html/draft-ietf-trill-rbridge-protocol-16 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4825 svn path=/trunk/; revision=33059
2010-04-03 From Yaniv Kaul: constify parametersBill Meier1-5/+5
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422 From me: Fix a number of instances where the function prototype or the function definition wasn't changed so there was a mismatch thus causing Windows (but not gcc) compilation errors. svn path=/trunk/; revision=32365
2010-04-02Revert SVN #32360 until Windows compilation errors corrected.Bill Meier1-5/+5
svn path=/trunk/; revision=32361
2010-04-02From Yaniv Kaul: constify parametersBill Meier1-5/+5
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422 svn path=/trunk/; revision=32360
2010-03-03Disable OID resolution and loading SMI modules by default.Balint Reczey1-1/+0
Add an option to enable OID resolution. Add an option to suppress errors reported by libsmi. svn path=/trunk/; revision=32096
2010-01-28Fix various gcc -Wshadow warnings.Bill Meier1-6/+6
svn path=/trunk/; revision=31720
2009-12-21Switch to using a bundled version of the openSUSE Build Service packagesGerald Combs1-4/+0
for GNUTLS since they provide 32-bit and 64-bit Windows packages. We no longer have winposixtype.h, so remove its #includes and add a ssize_t typedef to config.h.win32. svn path=/trunk/; revision=31341
2009-10-20Add emem_init() which initializes both the ep_ and se_ allocators; have allJeff Morriss1-2/+1
callers use that instead of initializing each allocator individually. svn path=/trunk/; revision=30646
2009-09-08Add an option to col_fill_in() to allow us to disable column expression ↵Kovarththanan Rajaratnam1-2/+2
processing. This is rarely needed. It's only needed when the user right clicks on the packet list view to generate a display filter. svn path=/trunk/; revision=29806
2009-09-08From : Didier GautheronAnders Broman1-2/+2
speed up a little proto_custom_set. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3972 svn path=/trunk/; revision=29789
2009-09-06Split a bunch of init routines into init() and cleanup(). This allows us to ↵Kovarththanan Rajaratnam1-2/+13
free memory properly on shutdown. This is an initial step. There's still some work to do. svn path=/trunk/; revision=29754
2009-08-25From Didier Gautheron:Anders Broman1-1/+12
move custom col set from proto_tree_set_xxx() to epan_dissect_fill_in_columns(). https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3930 I'v added the new functions to the .h files. svn path=/trunk/; revision=29551
2009-08-13Introduce epan_dissect_init()/epan_dissect_cleanup(). These are used to ↵Kovarththanan Rajaratnam1-6/+20
initialise/cleanup stack allocated 'edt' structures. This should speed up dissection since we avoid some malloc traffic. svn path=/trunk/; revision=29404
2009-08-11TRY_TO_FAKE_THIS_ITEM now fakes FT_PROTOCOL per default. If there are any ↵Kovarththanan Rajaratnam1-0/+7
users (e.g. proto_hier_stats.c, others?) that relies on FT_PROTOCOL nodes being created they'll now need to call the newly introduced epan_dissect_fake_protocols() to disable this optimization. Also make use of TRY_TO_FAKE_THIS_ITEM in proto_tree_add_text_node(), proto_tree_add_none_format() and proto_tree_add_protocol_format(). svn path=/trunk/; revision=29380
2009-07-27From Kovarththanan Rajaratnam:Anders Broman1-2/+2
Only fill in frame_data vals when needed. svn path=/trunk/; revision=29203
2009-02-15Add a routine to report write errors to the list of failure-reportingGuy Harris1-2/+4
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. svn path=/trunk/; revision=27456
2008-12-19Rename geoip.[ch] to geoip_db.[ch] so we don't collide with GeoIP.h. RenameGerald Combs1-2/+2
some functions to match. Add GeoIP lookups to the IP dissector. Add a preference for GeoIP lookups, which is disabled by default. svn path=/trunk/; revision=27063
2008-10-27Add support for the GeoIP library. Using different database files,Gerald Combs1-0/+7
GeoIP can map IP addresses to Countries, Cities, AS numbers, ISPs, etc. If any library paths are defined AND any database files are found, corresponding columns are added to the endpoint tables in the GUI. To do: - Add columns to the conversation list - Add GeoIP info to "-z conv,..." - Create a default UAT file. svn path=/trunk/; revision=26571
2008-06-23Rename arguments not to collide with function names, to avoid warningsGuy Harris1-3/+4
from -Wshadow, as noted by John Smith. svn path=/trunk/; revision=25541
2008-04-29Call se_free_all() in epan_cleanup() so that we will detect per-session (se_)Jeff Morriss1-0/+1
memory corruption in tshark (and Wireshark when exiting the program instead of loading a new file?). Why this wasn't always here I don't know. This may give us a pile of buildbot fuzz failures but that's a Good Thing. svn path=/trunk/; revision=25196
2007-11-30Next few improvements to speed up startup about 10%.Tomas Kukosa1-0/+3
- use GTree instead of GList for preference module lists svn path=/trunk/; revision=23679
2007-08-25get users of oid_resolv to use the new oids, rollout packet-snmp.cLuis Ontanon1-2/+2
svn path=/trunk/; revision=22651
2007-05-25Have editcap and capinfos loading the wiretap plugins.Luis Ontanon1-43/+1
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-07Updated splash screen for Wireshark that shows the initialisation progress. Graeme Lunt1-3/+5
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. svn path=/trunk/; revision=21716
2007-01-02Add a WIRESHARK_RUN_FROM_BUILD_DIRECTORY environment variable on UN*X;Guy Harris1-23/+2
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-11-30Add GPL disclaimer, which as been missing since forever.Gilbert Ramirez1-1/+17
Thanks to Jaap Keuter for pointing this out. svn path=/trunk/; revision=20027
2006-11-21We also need the memory allocation subsystem initialized in anythingGuy Harris1-0/+4
that uses libwireshark. svn path=/trunk/; revision=19940
2006-11-21Call guids_init() in epan_init(), so anything that needs libwireshark -Guy Harris1-0/+4
including dftest - will get the GUID table initialized (which anything that needs libwireshark needs to have happen, so dissectors can register GUIDs in that table). svn path=/trunk/; revision=19939
2006-09-26Re-enable lua as the windows version is already there.Luis Ontanon1-1/+1
svn path=/trunk/; revision=19327
2006-09-26Complete the workarround of prev rev, temporarilly disabling lua from unix ↵Luis Ontanon1-1/+1
as well. Luis. svn path=/trunk/; revision=19323
2006-09-26Since there's no Lua headers in windows yet, as a temporary workarround just ↵Luis Ontanon1-1/+1
declare wslua_init instead of including wslua.h. Sorry! svn path=/trunk/; revision=19322
2006-09-25Move the Lua interface into epan... (not a plugin anymore).Luis Ontanon1-0/+8
- Rename Tap into Listener - add a mechanism to pass protocols' tap data to the Listener svn path=/trunk/; revision=19319
2006-08-10GnuTLS/libgcrypt initialization moved to epan.cTomas Kukosa1-0/+21
svn path=/trunk/; revision=18863
2006-06-13new function epan_get_version()Tomas Kukosa1-0/+5
svn path=/trunk/; revision=18450
2006-05-31libethereal -> libwireshark. idl2eth -> idl2wrs. There are a _lot_ ofGerald Combs1-3/+3
changes here. It compiles OK on OS X, but hasn't been tested anywhere else. svn path=/trunk/; revision=18260
2006-05-21name changeRonnie Sahlberg1-1/+1
svn path=/trunk/; revision=18197
2005-12-06OBJECT IDENTIFIER name resolution moved to oid_resolv.cTomas Kukosa1-0/+3
svn path=/trunk/; revision=16699
2005-10-02add doxygen comments to column-utils.h and do a slight code cleanupUlf Lamping1-1/+1
svn path=/trunk/; revision=16066
2005-09-11I'm adding the "Expert Info" prototype now, as it seems to be in a state ↵Ulf Lamping1-0/+3
where others might have a look and probably already find it useful :-). Anyway, we can easily disable it at one or two places in the code if it get's in our way of a new release. Please see: http://wiki.ethereal.com/Development/ExpertInfo for a complete overview of the intended feature and it's current state of implementation. While I'm working on this, I've also added some more status result codes to the DCE/RPC and DCOM dissectors. svn path=/trunk/; revision=15754
2005-08-13get rid of one more gmemchunkRonnie Sahlberg1-2/+0
svn path=/trunk/; revision=15332
2005-07-22EMEM : a simple and FAST api to allocate memory that will be automatically ↵Ronnie Sahlberg1-0/+4
freed() when the next packet is dissected. This offesr memory allocation with a packet scope making memory leaks less likely and memory management faster. Add initialization calls for both tethereal and ethereal. Convert the ip_to_str() function to use this and avoid doing the silly rotating buffers thing it previously did. We also need an equivalent set of functions for allocation with capture file scope (free when next capture is loaded) but i dont know where to put the free_all call. svn path=/trunk/; revision=14984
2004-09-29Move the tap infrastructure to the epan directory.Guy Harris1-1/+1
svn path=/trunk/; revision=12128
2004-08-06From Albert Chin: rename resolv.{ch} to addr_resolv.{ch}, so that anGuy Harris1-1/+1
include of <resolv.h> in any system header file gets the system <resolv.h> (needed for builds on Tru64 with GTK+ 1.2[.x]). svn path=/trunk/; revision=11615