Commit Graph

3895 Commits

Author SHA1 Message Date
Guy Harris bcc16a58c9 To check whether something is a directory, call "test_for_directory()"
on it and check whether it returned EISDIR, not whether it returns 0 -
EISDIR means it's a directory, 0 means it isn't.

svn path=/trunk/; revision=3939
2001-09-14 09:27:35 +00:00
Guy Harris 92d94edd0c Times in NFS done as FT_ABSOLUTE_TIME and FT_RELATIVE_TIME fields, from
Ronnie Sahlberg.

svn path=/trunk/; revision=3938
2001-09-14 08:22:29 +00:00
Guy Harris 845f39b6fe Make the resolution for time values be nanoseconds rather than
microseconds.

Fix some "signed vs. unsigned" comparison warnings.

svn path=/trunk/; revision=3937
2001-09-14 07:33:04 +00:00
Guy Harris 07c2ce1bad Get rid of no-longer-necessary includes of <sys/time.h>.
svn path=/trunk/; revision=3936
2001-09-14 07:23:34 +00:00
Guy Harris ce626b31af Make the resolution for time values be nanoseconds rather than
microseconds.

Fix some "signed vs. unsigned" comparison warnings.

svn path=/trunk/; revision=3935
2001-09-14 07:16:42 +00:00
Guy Harris 1d42c94b05 Make the resolution for time values be nanoseconds rather than
microseconds.

Fix some "signed vs. unsigned" comparison warnings.

svn path=/trunk/; revision=3934
2001-09-14 07:10:13 +00:00
Guy Harris e32028f6cd "stat" is the status in an NLM reply; "state" is the lock manager state
sent over the wire in a lock request.

svn path=/trunk/; revision=3933
2001-09-14 06:48:30 +00:00
Guy Harris aac97da811 Squelch a signed vs. unsigned comparison complaint.
Display the command in decimal, not hex, as that's how it's specified in
the RFCs for RIP.

svn path=/trunk/; revision=3932
2001-09-14 06:34:36 +00:00
Guy Harris 5d76f722a2 Get rid of a trailing blank.
svn path=/trunk/; revision=3931
2001-09-14 06:30:42 +00:00
Guy Harris 42a6d1b152 Support for dissecting multiple capabilities, from Endoh Akira.
svn path=/trunk/; revision=3930
2001-09-13 22:06:55 +00:00
Guy Harris 8822f3f702 Squelch a "signed vs. unsigned comparison" warning (which warned of a
real problem, if "byte_span" were 0 - that would only happen if
"bitoffset" and "bitlength" were both 0, and "bitlength" should never be
0).

svn path=/trunk/; revision=3929
2001-09-13 20:42:13 +00:00
Guy Harris eb63c37b0e Fixes to the OSPFv3 dissector, from Palle Lyckegaard.
svn path=/trunk/; revision=3928
2001-09-13 20:27:24 +00:00
Guy Harris 0b6dbbea35 Make the filter name for the status monitor callback "statnotify", to
match the name in the filterable fields; make the short name "STAT-CB"
again.

svn path=/trunk/; revision=3927
2001-09-13 08:14:45 +00:00
Guy Harris 53292d26a2 Display filters for RIP protocol fields, from Ronnie Sahlberg.
svn path=/trunk/; revision=3926
2001-09-13 08:10:53 +00:00
Guy Harris d18dd29d12 Display filters for XoT protocol fields, from Ronnie Sahlberg.
svn path=/trunk/; revision=3925
2001-09-13 08:05:26 +00:00
Guy Harris 3af4def7d2 NLM fix, and change of status monitor callback protocol name to use "_"
rather than "-" ("-" upsets the display filter parser), from Ronnie
Sahlberg.

svn path=/trunk/; revision=3924
2001-09-13 08:02:11 +00:00
Guy Harris 2a148564d6 TCP desegmentation support, and changes to the ONC RPC and NBSS
dissectors to use it, from Ronnie Sahlberg, with additional changes to
handle the case where a frame contains messages that don't run past the
end followed by one that does and where a reassembled chunk has, at the
end, a message that runs past the end of that chunk (because the
reassembly was for an earlier message).

svn path=/trunk/; revision=3923
2001-09-13 07:56:53 +00:00
Guy Harris a37ddb63b1 Clean up the previous checkin a bit - there's no need to have
"dissect_rpc_common()" check, every time it's about to return FALSE,
whether it's being used as a heuristic dissector and, if not, call
"dissect_rpc_continuation()" - we can just have the non-heuristic
dissector call it and, if it returned FALSE, call
"dissect_rpc_continuation()".

svn path=/trunk/; revision=3922
2001-09-12 08:46:39 +00:00
Guy Harris 94e029fef6 When establishing or searching for a conversation for ONC RPC, use both
source and destination addresses if the transport is TCP (we use that,
for now, as a proxy for "if the transport is connection-oriented"), as
the endpoint addresses should be the same for all packets.

Have both a heuristic RPC dissector and a non-heuristic version, and
make the non-heuristic version the dissector for the conversations we
create; that version will, if the frame doesn't look like a call or
reply, mark it as continuation data.

svn path=/trunk/; revision=3921
2001-09-12 08:13:33 +00:00
Guy Harris e35a8ac8fe Fix from Tom Uijldert: scan TPI's to get proper WTP packet length and
correct start of WSP-data.

svn path=/trunk/; revision=3920
2001-09-11 14:36:33 +00:00
Guy Harris a649181931 GTPv1 support and GTPv0 improvements, from Michal Melerowicz and Nicolas
Balkota.

svn path=/trunk/; revision=3919
2001-09-11 08:14:39 +00:00
Guy Harris b6ac95ef20 Fix some bugs (and some indentation).
svn path=/trunk/; revision=3918
2001-09-11 06:38:57 +00:00
Guy Harris 65ac4971d2 The byte count field in an SMB Write request counts not only the data
being written, but the 2 bytes of data length and one byte of buffer
type preceding that data; use the data length (which doesn't count
itself or the buffer type byte), rather than the byte count, to
determine how much data is being written.

svn path=/trunk/; revision=3917
2001-09-11 05:31:45 +00:00
Guy Harris de14d757d1 From Frank Singleton: install idl2eth in "/usr/local/bin".
svn path=/trunk/; revision=3916
2001-09-10 22:06:33 +00:00
Guy Harris fa8a2ac762 Man page update, from Frank Singleton, to mention
$PYTHONPATH/site-packages/.

svn path=/trunk/; revision=3915
2001-09-10 21:59:57 +00:00
Guy Harris 1d16da664c Some WAP WTP naming fixes plus textual Transaction Class value decoding,
from Olivier Biot.

svn path=/trunk/; revision=3914
2001-09-10 21:54:08 +00:00
Guy Harris aa29eca046 The "Save only marked packets" checkbox should change as the file type
changes, just as the "Save only packets currently being displayed"
checkbox should.

svn path=/trunk/; revision=3913
2001-09-10 08:49:11 +00:00
Guy Harris 0ee22efcd6 From Jason Lango:
Clean up RTSP Transport parsing and sub-conversation code.
	Dissect RTP/MP4 (and other RTP/xxx) as RTP/AVP (for now).

svn path=/trunk/; revision=3912
2001-09-08 00:43:51 +00:00
Guy Harris dd1b7eafaf OSPFv3 support, from Palle Lyckegaard.
svn path=/trunk/; revision=3911
2001-09-05 19:53:42 +00:00
Guy Harris 2cdb896f85 Typo fix, from Martti Kuparinen.
svn path=/trunk/; revision=3910
2001-09-05 19:48:53 +00:00
Guy Harris 23140475d7 Close the file to which we're writing before exiting, so that:
buffered data is written out to the file;

	headers are written if the capture file header depends on the
	number or sizes of the packets;

etc..

svn path=/trunk/; revision=3909
2001-09-05 05:03:47 +00:00
Guy Harris b98e472531 From Frank Singleton: first look in $PYTHONPATH/site-packages for
ethereal_be.py and ethereal_gen.py, then look in the current directory.

svn path=/trunk/; revision=3908
2001-09-04 21:06:58 +00:00
Guy Harris 4ad369eca1 HMIPv6 support, from Martti Kuparinen.
svn path=/trunk/; revision=3907
2001-09-04 21:04:52 +00:00
Guy Harris 0e68611e41 From Thomas Wittwer: add "prefs_register_string_preference()" to the
list of functions available to plugins.

svn path=/trunk/; revision=3906
2001-09-04 01:05:41 +00:00
Guy Harris 32b1270b4d Change from Thomas Wittwer to register HTTP dissector by name, for other
dissectors to call.

svn path=/trunk/; revision=3905
2001-09-04 01:01:48 +00:00
Guy Harris 1a2d09a302 Use cURL's strategy for parsing 227 responses.
Add comments noting the IPv6 issues for PASV responses.

When adding the FTP dissector for the FTP port, give its protocol as
"proto_ftp", not "proto_ftp_data".

svn path=/trunk/; revision=3904
2001-09-03 20:52:25 +00:00
Guy Harris 14eb1cb5fa Use "tvb_reported_length_remaining()" to check whether there's data left
in the packet; this eliminates a signed vs. unsigned comparison warning
in GCC.

svn path=/trunk/; revision=3903
2001-09-03 18:05:57 +00:00
Guy Harris 554eb35fcf Get rid of a no-longer-used #define.
svn path=/trunk/; revision=3902
2001-09-03 17:57:17 +00:00
Guy Harris 3388bde488 Instead of having a single datum attached to a conversation, have a list
of protocol-id-plus-datum pairs, so that multiple protocols can attach
information to the same conversation.

Dissectors that attach information to a conversation should not assume
that if they find a conversation it has one of its data attached to it;
the conversation might've been created by another dissector.

svn path=/trunk/; revision=3901
2001-09-03 10:33:12 +00:00
Guy Harris 31f2f8cabb Squelch some compiler warnings.
svn path=/trunk/; revision=3900
2001-09-03 08:27:56 +00:00
Guy Harris ab5d4fcca0 Squelch some compiler warnings.
svn path=/trunk/; revision=3899
2001-09-03 08:19:12 +00:00
Guy Harris 24ddb0198b Make routines that are passed an unsigned integer as their last argument
have an unsigned integer as that argument; this squelches some compiler
warnings, and it's the right thing to do in any case.

Don't check whether an unsigned integer value is > 0 - that's the same
as checking whether it's != 0.

svn path=/trunk/; revision=3898
2001-09-03 08:10:46 +00:00
Guy Harris f6c33914fe Don't pass wildcarded arguments to "find_conversation()" to routines
that look up conversations in hash tables, unless they are arguments
that will be ignored; if they're not being ignored, then if the argument
is a null pointer you may get a crash if it's dereferenced, and if it's
not a null pointer you'll only get a match if the conversation has
whatever stuff the arguments points to as its first address or port.

If you match a conversation with a wildcarded address and/or port, and
the address and/or port matched a non-wildcarded search argument, and
the conversation is for a connection-oriented transport protocol, set
the wildcarded address and/or port for the conversation to the value
that matched it.

svn path=/trunk/; revision=3897
2001-09-03 07:31:20 +00:00
Guy Harris c21d49795d Get the IP address, as well as the port, from a PASV reply, and use it
rather than the address from which the PASV reply came when setting up a
conversation.

Don't compare the reply code with "227" unless the reply code is 3
characters long.

Set up the conversation for a PASV response only if we haven't already
processed the packet (and thus haven't already set up the conversation).

svn path=/trunk/; revision=3896
2001-09-03 03:12:01 +00:00
Guy Harris 88cebea17c Fix up the handling of data after the first token on the line.
svn path=/trunk/; revision=3895
2001-09-03 02:41:31 +00:00
Guy Harris 11e21f0f8c Parse the address as well as the port in a PASV response.
Don't have two separate pieces of code that look at the response code of
a response.

svn path=/trunk/; revision=3894
2001-09-03 02:32:10 +00:00
Guy Harris 2c9de0038c In "find_conversation()", do the same type of matching that
"try_conversation_dissector()" does - start with as exact matches as
possible, and then start doing wildcarding - so that it can find
conversations with wildcard addresses or ports even if both address and
port arguments are supplied to it.

svn path=/trunk/; revision=3893
2001-09-03 00:26:31 +00:00
Guy Harris ecb162ee80 Handle, as best we can, the case where the authentication flavor is
GSS-API but the RPCSEC_GSS procedure and service information isn't
available in the captured data.

svn path=/trunk/; revision=3892
2001-09-02 23:57:33 +00:00
Guy Harris 3ad3db9658 Don't attempt to fetch the authentication flavor from a call if it's not
available - just mark it as "authentication flavor unknown".  Don't
dissect the next protocol if the authentication flavor is unknown.

This lets us get some more work done on short frames (although if you
really want to analyze ONC RPC traffic, you should make the snapshot
length large enough to capture enough of the frames).

svn path=/trunk/; revision=3891
2001-09-02 22:49:56 +00:00
Uwe Girlich 9088f16241 Some new commands added. I found them in a recent trace of Q3A 1.27g.
svn path=/trunk/; revision=3890
2001-09-01 14:47:48 +00:00