summaryrefslogtreecommitdiff
path: root/epan/tap.c
AgeCommit message (Collapse)AuthorFilesLines
2013-12-02Move most of the plugin code from epan to wsutil and remove allGuy Harris1-2/+71
knowledge of particular types of plugins. Instead, let particular types of plugins register with the common plugin code, giving a name and a routine to recognize that type of plugin. In particular applications, only process the relevant plugin types. Add a Makefile.common to the codecs directory. svn path=/trunk/; revision=53710
2013-03-20 From beroset:Bill Meier1-2/+2
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachment #10397 svn path=/trunk/; revision=48438
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45016
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-05-12Fix the test.sh failures based on Guy's suggestion in ↵Jeff Morriss1-3/+14
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5445#c15 : Add a new tap flag to indicate that a tap listener is just a "dissector helper", that is, a tap which is used by a dissector to help it do its dissection but does not, itself, require dissection. Use this new flag in the dissectors which register taps. Remove the (now-unused) have_tap_listeners() function. svn path=/trunk/; revision=37069
2011-03-31(Trivial) Fix some typos; do some whitespace cleanup & rewording of comments.Bill Meier1-26/+26
svn path=/trunk/; revision=36417
2010-08-03(Trivial) Fix a typo.Bill Meier1-1/+1
svn path=/trunk/; revision=33700
2009-10-02Prime interesting fields when selecting a package, so Lua's ProtoFieldStig Bjørlykke1-9/+20
can extract the field value correctly. This fixes bug 4058. svn path=/trunk/; revision=30252
2009-08-21Sanitize epan includesKovarththanan Rajaratnam1-2/+2
svn path=/trunk/; revision=29502
2009-06-05Have tap listeners specify whether the "packet" routine requiresGuy Harris1-19/+42
a protocol tree; the column values. This includes stats-tree listeners. Have the routines to build the packet list, and to retap packets, honor those requirements. This means that cf_retap_packets() no longer needs an argument to specify whether to construct the column values or not, so get rid of that argument. This also means that there's no need for a tap to have a fake filter to ensure that the protocol tree will be built, so don't set up a fake "frame" filter. While we're at it, clean up some cases where "no filter" was represented as a null string rather than a null pointer. Have a routine to return an indication of the number of tap listeners with filters; use that rather than the global num_tap_filters. Clean up some indentation and some gboolean vs. gint items. svn path=/trunk/; revision=28645
2008-08-21From Neil Piercy:Anders Broman1-1/+7
Patch to tap.c which simply returns the same tap_id if the register_tap is called twice with the same name - I can't see any downside to this. ( Needed for the gsm_a split -Anders). svn path=/trunk/; revision=26051
2008-05-05Fix some of the Errors/warnings detected by checkapi,Anders Broman1-3/+3
make non ASCII char a warning for now. svn path=/trunk/; revision=25240
2008-02-17Added an option to Conversations and Endpoints to limit the list to matchStig Bjørlykke1-0/+47
the current display filter. Some Hosts -> Endpoints cleanup. svn path=/trunk/; revision=24368
2007-03-06Introduce a new function called have_tap_listener(int tap_id) toStephen Fisher1-0/+16
tell if a specific tap id is currently listening for data. This complements the function have_tap_listeners(), which checks to see if any tap is currently listening. svn path=/trunk/; revision=20979
2007-02-19fetch_tapped_data() returns a const pointer, so declare the function as ↵Jeff Morriss1-1/+1
returning such svn path=/trunk/; revision=20861
2006-12-11Do bounds checking on tap_packet_array.Guy Harris1-0/+8
svn path=/trunk/; revision=20106
2006-05-28Ethereal->WiresharkAnders Broman1-1/+1
svn path=/trunk/; revision=18234
2006-05-21name changeRonnie Sahlberg1-3/+3
svn path=/trunk/; revision=18197
2005-12-07new function fetch_tapped_data()Ronnie Sahlberg1-0/+44
This function can be called from a dissector to fetch (if any) tapped data from a tap. This can offer an alternative method of passing data between different dissectors much cleaner than the pinfo pollition and private_data design mistake. The SMB2 dissector uses this method to extract vital data such as Account_Name from the ntlmssp dissector (that is 3 leveld down from smb2) svn path=/trunk/; revision=16722
2005-08-19Move the APIs for registering and processing "-z" command-line argumentsGuy Harris1-86/+0
and "Statistics" menu items into "stat.h" and "stat.c", to separate them from the core tapping APIs. A tap could conceivably not register as a "-z" command-line argument or "Statistics" menu item, and a stat could conceivably not be implemented as a tap, and dissectors that implement tapping points don't need the UI-related stuff from "stat.h", they just want the tap-related stuff in <epan/tap.h>. svn path=/trunk/; revision=15427
2005-08-06Squelch more const warnings (and fix some memory leaks that found).Guy Harris1-2/+2
_U_-ify some unused arguments, rather than assigning them to themselves. Un-constify one variable that gets assigned a mallocated pointer. Clean up indentation. svn path=/trunk/; revision=15236
2005-08-05replace malloc and alike calls by their GLib pendants -> g_mallocUlf Lamping1-1/+1
svn path=/trunk/; revision=15232
2005-08-05More char -> const char warning fixesJörg Mayer1-1/+1
svn path=/trunk/; revision=15218
2005-07-23More 'char*' -> 'const char*' changes to fix warnings.Jörg Mayer1-4/+4
svn path=/trunk/; revision=15015
2005-07-21More warining fixes: char -> const charJörg Mayer1-1/+1
svn path=/trunk/; revision=14975
2005-04-01from Lars RRonnie Sahlberg1-35/+12
TAP order of caller update svn path=/trunk/; revision=14001
2005-04-01Rename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" asGuy Harris1-0/+84
it's used to register a callback for a tap listener invoked if the specified command line argument is specified to the "-z" flag. Move it, along with routines to: look up a "-z" argument in the table constructed by "register_tap_listener_cmd_arg()" and either save the full argument to "-z" and the corresponding listener if it's found or return a failure indication if it isn't; list the available tap listeners; call the "init" routines for the tap listeners saved in the table above; and have Ethereal and Tethereal use those routines. svn path=/trunk/; revision=13993
2005-03-11from metzeRonnie Sahlberg1-0/+3
various bugfixes and enhancements to decryption of secure ldap svn path=/trunk/; revision=13710
2004-12-30Add a "get_addr_name()" routine that takes an "address *" and attemptsGuy Harris1-2/+2
to resolve it to a name. Fix up some const-pointer-to-non-const-pointer, and function-pointer-to-void-*, conversions. Fix some comments. svn path=/trunk/; revision=12863
2004-09-29Move the tap infrastructure to the epan directory.Guy Harris1-0/+432
svn path=/trunk/; revision=12128