Commit Graph

21 Commits

Author SHA1 Message Date
stig fa849b3bb2 More rewrite of prohibited APIs (sprintf, strcpy, strcat).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24258 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-03 15:38:20 +00:00
gerald 05bc7d37bc Tethereal/tethereal -> TShark/tshark.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18268 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-31 17:38:42 +00:00
etxrab 88547059e5 Ethereal->Wireshark
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18235 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-28 20:28:20 +00:00
sahlberg 33270db64f name change
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21 05:12:17 +00:00
sahlberg 1823b4b682 coverity 155
coverity showed this as a null dereference which was a false positive.
sp can never be null here.


there is a bug however since with this invalid test  the memory release functions will never be called and we thus had a memory leak here.




git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18053 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-01 07:43:47 +00:00
jake 47382a6e8c Solving minor annoyances.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17421 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-27 14:03:48 +00:00
lego 4cf0965e67 add an userdata argument to register_stat_cmd_arg() and its callback to use the callback for multiple registrations.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17252 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-11 13:05:24 +00:00
guy 006cfcf692 Rename epan/stat.[ch] to epan/stat_cmd_args.[ch] - it only deals with
implementing the "-z" command-line arguments, it doesn't deal with *all*
issues for stats.


git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15483 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-20 20:06:05 +00:00
guy fafd13df75 Move the stats.[ch] stuff into epan, so plugins can use it.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15429 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-19 10:00:14 +00:00
guy f13dfe879e Move the APIs for registering and processing "-z" command-line arguments
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>.


git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15427 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-19 09:29:41 +00:00
guy f026752489 Squelch more const warnings (and fix some memory leaks that found).
_U_-ify some unused arguments, rather than assigning them to themselves.

Un-constify one variable that gets assigned a mallocated pointer.

Clean up indentation.


git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15236 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-06 03:44:55 +00:00
guy 14c8918e1d Constify a bunch of structure members and function arguments, to squelch
compiler warnings.

Clean up indentation.


git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14739 f5534014-38df-0310-8fa8-9805f1628bb7
2005-06-24 01:32:42 +00:00
gram 7486fce873 Fix typos in error messages.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14286 f5534014-38df-0310-8fa8-9805f1628bb7
2005-05-03 02:07:26 +00:00
guy 6a33606bd0 Rename "register_ethereal_tap()" to "register_tap_listener_cmd_arg()" as
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.


git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13993 f5534014-38df-0310-8fa8-9805f1628bb7
2005-04-01 09:08:27 +00:00
guy e363d0992e As we've made the tap_specific_data field of a tap_packet_t structure a
const pointer (so that we don't get complaints when we make the
tap-specific data argument to "tap_queue_packet()" a const pointer,
allowing dissectors to hand const data to a tap without a complaint), we
should make the tap per-packet function take a const pointer as an
argument as well.  Do so.

In some taps, use _U_, or actually use the argument, rather than
sticking in dummy "X = X" assignments to fake use of parameters.  (This
means that the tap functions in question no longer have the notion that
they act on a particular static structure wired in.)


git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12910 f5534014-38df-0310-8fa8-9805f1628bb7
2005-01-01 02:57:02 +00:00
guy 2cd9afcab8 Move the tap infrastructure to the epan directory.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12128 f5534014-38df-0310-8fa8-9805f1628bb7
2004-09-29 00:06:36 +00:00
gram 35a6e092c3 Move dissectors to epan/dissectors directory.
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.


git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11410 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18 18:06:47 +00:00
guy 0f43797234 Set the svn:eol-style property on all text files to "native", so that
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-07-18 00:24:25 +00:00
jmayer bd53422c14 Whitespace changes in order to make diff produce more readable results
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8568 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-29 19:18:44 +00:00
guy 2bc584500c The code in an HTTP reply is a response code, not a response method.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8346 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-02 23:09:11 +00:00
guy fac8d77d0a From Jean-Michel Fayard: BOOTP/DHCP, HTTP, and WSP statistics taps.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8345 f5534014-38df-0310-8fa8-9805f1628bb7
2003-09-02 22:47:59 +00:00