aboutsummaryrefslogtreecommitdiffstats
path: root/tap.c
AgeCommit message (Collapse)AuthorFilesLines
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-05-31Add a routine that indicates where there are any tap listenersGuy Harris1-3/+14
registered (not whether there are any tap *filters* registered). Do dissection in Tethereal iff: we're printing information about each packet; we're using a read filter on the packets; there are any tap listeners registered (even if there are no tap filters registered - not all taps use filters). svn path=/trunk/; revision=11040
2003-04-23Make "register_tap_listener()" return NULL on success and a "GString *"Guy Harris1-11/+17
referring to a GString containing an error message on failure, and don't have it print anything on failure. If it fails, have its Tethereal-tap callers print an error message before exiting, and have its Ethereal callers pop up a dialog box with the error (except in cases where the failure is guaranteed not to be the user's fault, and where we exit, in which case we just print an error message before we exit). In all cases, the error message includes the text of the GString. Fix a scanf format string in the DCE RPC statistics Ethereal tap, so that it properly skips the comma before the filter string. Fix some Ethereal error messages not to say "tethereal". svn path=/trunk/; revision=7542
2002-11-28From Marco Molteni: fix a comment to reflect reality.Guy Harris1-2/+2
svn path=/trunk/; revision=6696
2002-10-31From Ronnie Sahlberg: have a registration interface for tap listeners,Guy Harris1-5/+5
and generate the table of stuff to register from tap source files, so Tethereal doesn't need to know what tap listeners exist. Get rid of "tap-xxx.h" files, as they're now empty. Add "tethereal-tap-register.c" to the .cvsignore file, as it's a new generated file. Update "Makefile.nmake" to generate "tethereal-tap-register.c". Clean up "Makefile.am" and "Makefile.nmake" a bit. svn path=/trunk/; revision=6525
2002-10-23From Ronnie Sahlberg: pass a pointer to the epan_dissect_t for a packetGuy Harris1-4/+4
to taps. svn path=/trunk/; revision=6487
2002-10-17From Ronnie Sahlberg: don't have the tap code do a dissection, leaveGuy Harris1-37/+40
that up to its callers, so only one dissection need be done when reading a capture file. svn path=/trunk/; revision=6442
2002-10-141- We were writing 1 byte past the end of the buffer in register_tapOlivier Abad1-5/+4
(bug found with valgrind) : td->name = malloc(strlen(name)); strcpy(td->name, name); Replaced with : td->name = g_strdup(name); 2 - Use g_malloc instead of malloc (both were used). svn path=/trunk/; revision=6417
2002-09-14Optimized edt handling as per Guy's suggestion.Ronnie Sahlberg1-9/+16
The performance impact on using multiple tap extensions using filter strings should be greatly reduced. Next step would be to rewrite the color filtering in file.c to become a tap extension and then the checking of display filters in file.c as well. After that the edt/epan_dissect_run() calls can be completely removed from file.c svn path=/trunk/; revision=6295
2002-09-05Added a mutex to protect a critical region in Gtk2 where the list can beRonnie Sahlberg1-19/+19
modified while the draw thread is walking it. Changed the cmdline switch to -z so the same one can be used both for ethereal and tethereal. Updated man pages to reflect the RPCSTAT feature. (Try this with Tools/Statistics/ONC-RPC/RTT and load a capture containing onc-rpc. ) svn path=/trunk/; revision=6189
2002-09-04Tap api. tap is a simple api that can be used for arbitrary extensions.Ronnie Sahlberg1-0/+406
One example extension is rpcstat. Try -Z rpc,rtt,100003,3 as argument to tethereal when reading a capture containing NFSv3 packets. tap-rpcstat.[ch] is intended to demonstrate the api and can be used to base other extensions on. svn path=/trunk/; revision=6175