Commit Graph

10982 Commits

Author SHA1 Message Date
Guy Harris 53cb6eeb54 From Graeme Hewson:
Check slice lengths as well as offsets.  Disallow negative/zero
     lengths.

     Range on RHS of display filter expression wasn't being checked in
     every case.

svn path=/trunk/; revision=11083
2004-06-03 07:33:46 +00:00
Guy Harris c02072be2c From Graeme Hewson:
Use gint32 instead of guint32 and strtol() instead of strtoul()
     for signed integers.

     Pathological slice specifications could cause Flex default rule
     to be invoked, echoing characters to stdout.
     Example: frame[0foo]==1

svn path=/trunk/; revision=11082
2004-06-03 07:17:24 +00:00
Guy Harris d6e2627959 From Devin Heitmueller: improve decoding of outgoing and incoming
message blocks.

svn path=/trunk/; revision=11081
2004-06-03 04:19:38 +00:00
Guy Harris 39bb661a15 From Mike Frisch:
- fixed tree display of NFSv4 change_info type;
	- add OPEN4_RESULT_LOCKTYPE_POSIX to OPEN result (reply) flags;
	- fixed open_delegation4 dissector;

svn path=/trunk/; revision=11080
2004-06-03 04:13:24 +00:00
Guy Harris 7928433795 Make the definition of "register_tap_menu_item()" match its declaration.
svn path=/trunk/; revision=11079
2004-06-03 02:14:50 +00:00
Guy Harris 2f6fd458d4 Fix a typo.
svn path=/trunk/; revision=11078
2004-06-03 02:14:14 +00:00
Ulf Lamping d775bed598 add details for doxygen
svn path=/trunk/; revision=11077
2004-06-02 22:13:04 +00:00
Ulf Lamping eacfa53105 add details for doxygen
svn path=/trunk/; revision=11076
2004-06-02 20:14:51 +00:00
Guy Harris 782e8b798b If, when rotating capture files, the attempt to close the current file
fails, set "rb_data.pdh" to NULL, so we know it's not open (if
"wtap_dump_close()" fails, the wtap_dumper_t is still closed - and the
file descriptor for it is probably closed, too, as, if "close()" fails,
the FD is probably closed; the Single UNIX Specification Version 3 says
the state of the FD is unspecified, but in practice most OSes probably
still close it).

If we try to close the current file, first check to make sure it's open,
i.e. that "rb_data.pdh" is non-null.  (Or perhaps we should avoid trying
to close it if the open *or* the most recent attempt to rotate the
capture files failed.)

Note that if "wtap_dump_close()" fails we might not need to close the
underlying file descriptor (and, even if we do, there's no guarantee
that attempt won't also fail and leave the FD still open - which is why
I suspect that a failed "close()" leaves the FD closed on most OSes).

svn path=/trunk/; revision=11075
2004-06-02 18:49:40 +00:00
Ulf Lamping d643814e7e add details for doxygen
svn path=/trunk/; revision=11074
2004-06-02 18:44:10 +00:00
Ulf Lamping 92ddb18b8c move "extern GtkWidget *main_display_filter_widget" from
various stats files to gtkglobals.h

svn path=/trunk/; revision=11073
2004-06-02 07:12:11 +00:00
Guy Harris 9260d709ec Get rid of the #if 0'ed out "rtp_payload_type_vals[]" table - we should
be using the one from libethereal.

svn path=/trunk/; revision=11072
2004-06-02 07:01:04 +00:00
Guy Harris 703854e181 From Mike Frisch:
add support for NFSv4 RELEASE_LOCKOWNER and ILLEGAL operations;

	minor modification to the NFSv4 NULLPROC dissection.

svn path=/trunk/; revision=11071
2004-06-02 06:50:28 +00:00
Ulf Lamping 191e09cea4 fix a doxygen comment
svn path=/trunk/; revision=11070
2004-06-02 06:44:40 +00:00
Guy Harris b6b58cd060 From Yaniv Kaul: HKP is HTTP-based and runs on port 11371.
svn path=/trunk/; revision=11069
2004-06-02 06:35:57 +00:00
Guy Harris 45e26b4044 From Magnus Hansson: add more information to the Info column.
Use "tvb_format_stringzpad()" to put a zero-padded string into the
protocol tree and Info column, so that we 1) don't use a fixed-length
buffer that we might overflow and 2) we handle non-printable bytes in
the string.

svn path=/trunk/; revision=11068
2004-06-02 06:30:15 +00:00
Guy Harris 0330511cd1 Don't define data variables in header files included by more than one
file - that keeps the variable from being shared, and also produces
compiler warnings if the variable isn't used by all the files that
include the header in question.

svn path=/trunk/; revision=11067
2004-06-01 23:08:00 +00:00
Guy Harris d3b788f247 Make the definition of "add_hostlist_table_data()" match its
declaration.

Give the address and port arguments to "add_hostlist_table_data()"
appropriate names and Doxygen comments (they're not a source address and
port, they're just an address and port), and do the same for the address
and port members of a "hostlist_talker_t".

Get rid of extra unnecessary variables in "add_hostlist_table_data()".

Clean up indentation.

svn path=/trunk/; revision=11066
2004-06-01 23:00:24 +00:00
Ulf Lamping 66f18e8c57 bugfix: don't double define rtp_payload_type_vals
svn path=/trunk/; revision=11065
2004-06-01 22:12:37 +00:00
Ulf Lamping 09c030170a minor bugfix from previous check in
svn path=/trunk/; revision=11064
2004-06-01 22:00:22 +00:00
Anders Broman 042a89baf3 From Thomas Anders: MGCP sub-parameter dissection
Anders Broman: BICC,SIP-T dissection

svn path=/trunk/; revision=11063
2004-06-01 21:56:44 +00:00
Ulf Lamping 1f27d91439 add details for doxygen, various code cleanups as a result of this
svn path=/trunk/; revision=11062
2004-06-01 21:56:04 +00:00
Anders Broman ea7b5edf35 Revert previous checkin made by mistake *sigh
svn path=/trunk/; revision=11061
2004-06-01 21:45:40 +00:00
Anders Broman cf28fb1538 From Thomas Anders dissects the RTP Payload Type (if media protocol is RTP/AVP)
with its descriptive name rather than the raw value string,
much like packet-rtp.c does already.
To avoid duplicate definitions,  the existing rtp_payload_type_vals[] definition is  moved
from packet-rtp.c and gtk/rtp_stream_dlg.c to rtp_pt.h.

svn path=/trunk/; revision=11060
2004-06-01 21:40:41 +00:00
Guy Harris 8a37f21551 Make the definition of "add_ett_table_data()" match its declaration.
svn path=/trunk/; revision=11059
2004-06-01 21:29:50 +00:00
Ulf Lamping 4a32d21c22 minor bugfix from previous check in
svn path=/trunk/; revision=11058
2004-06-01 20:37:09 +00:00
Ulf Lamping a8db4e10a8 add details for doxygen, various code cleanups as a result of this
svn path=/trunk/; revision=11057
2004-06-01 20:28:05 +00:00
Guy Harris 35bb7e8fc2 Fix a typo.
Clean up white space.

svn path=/trunk/; revision=11056
2004-06-01 18:58:04 +00:00
Guy Harris 479407967d Interpret the sampling mode values.
svn path=/trunk/; revision=11055
2004-06-01 18:43:30 +00:00
Guy Harris 54620462a0 As Motonori Shindo nodes, the sampling rate and mode in a Netflow V5
header is 2 bits of sampling mode and 14 bits of sample rate, not 16
bits of sample rate.

svn path=/trunk/; revision=11054
2004-06-01 18:39:13 +00:00
Ulf Lamping 0af3839716 various code cleanups
svn path=/trunk/; revision=11053
2004-06-01 17:37:10 +00:00
Ulf Lamping 14bf83c340 add details for doxygen, various code cleanups as a result of this
svn path=/trunk/; revision=11052
2004-06-01 17:33:37 +00:00
Guy Harris 09184b8a03 From Yaniv Kaul: PCT support.
svn path=/trunk/; revision=11051
2004-06-01 01:03:49 +00:00
Guy Harris a467bac215 Eliminate a no-longer-used routine.
svn path=/trunk/; revision=11050
2004-06-01 01:01:31 +00:00
Jörg Mayer 01dd51cdf4 It really helps when you change the default from gtk1 -> gtk2 in the top
level configure.in to mirror that change in wiretap. Otherwise people who
have both versions of glib/gtk installed may see crashes.

svn path=/trunk/; revision=11049
2004-06-01 00:15:38 +00:00
Anders Broman ef763058f1 Add dissection of application PoC1 data
svn path=/trunk/; revision=11048
2004-05-31 19:35:53 +00:00
Anders Broman 3bf4394d12 From Thomas Anders fix some memory leaks
svn path=/trunk/; revision=11047
2004-05-31 19:31:14 +00:00
Ulf Lamping 8816b7e3c7 add details for doxygen
svn path=/trunk/; revision=11046
2004-05-31 15:47:34 +00:00
Ulf Lamping d5dec17fba add details for doxygen
svn path=/trunk/; revision=11045
2004-05-31 13:42:58 +00:00
Ulf Lamping c5196c4a76 split doxygen.cfg into common Ethereal things and module specifics
svn path=/trunk/; revision=11044
2004-05-31 13:42:17 +00:00
Ulf Lamping dde0636711 bugfix: don't try to destroy a dialog twice
svn path=/trunk/; revision=11043
2004-05-31 13:35:49 +00:00
Ulf Lamping 95f1ce8d4b directly use the file selection dialog instead of using an additional custom dialog
svn path=/trunk/; revision=11042
2004-05-31 12:06:28 +00:00
Ulf Lamping eb60b3e063 some more dialog redesign and code cleanup
svn path=/trunk/; revision=11041
2004-05-31 11:22:58 +00:00
Guy Harris c8c2bab1b9 Add a routine that indicates where there are any tap listeners
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
2004-05-31 09:53:21 +00:00
Ulf Lamping 3804c8ae9a interface options preference dialog: remove confusing second interface clist,
fix a bug making garbage of user supplied interface description

svn path=/trunk/; revision=11039
2004-05-31 09:23:14 +00:00
Guy Harris 0d1fb8c108 Make "-q" suppress packet printing when you're reading a capture file
and not writing to another capture file, for use with "-z" options.

Note that "-z proto" *doesn't* print statistics at the end - it modifies
the packet summary output.

Note that on at least some BSDs the "status" character is set to "off"
by default, so you have to set it explicitly in order to be able to ^T
an application such as Tethereal.

svn path=/trunk/; revision=11038
2004-05-31 08:41:32 +00:00
Guy Harris 8a429808e7 Move the packet counting, dissecting, and filtering out of the "write
packet" and "print packet" callbacks into a common routine, so that we
don't count packets twice if we're counting and dissecting.

Print the packet count with ^T iff we're not updating a displayed packet
count as packets arrive, regardless of whether we're printing packet
information, saving packets to a file, or both (tcpdump prints it
regardless of whether it's printing packet information or saving packets
to a file).

svn path=/trunk/; revision=11037
2004-05-31 07:52:27 +00:00
Guy Harris d6d7816485 The "key" argument to "write_recent_geom()" is required (as it's called
through a pointer), but isn't used - mark it as unused.

svn path=/trunk/; revision=11036
2004-05-31 02:42:39 +00:00
Olivier Biot 0bcada8dc8 Add support for Exif decoding (initial framework).
Still lots of work to do here :)

svn path=/trunk/; revision=11035
2004-05-31 01:24:03 +00:00
Ulf Lamping 4e983558da sort saved preference settings by appearance in dialog
svn path=/trunk/; revision=11034
2004-05-30 18:27:52 +00:00