Commit Graph

3927 Commits

Author SHA1 Message Date
Guy Harris 168a986072 Re-strengthen the check for NBSS continuations, to avoid, for example,
session messages with a zero byte count.

svn path=/trunk/; revision=3971
2001-09-29 00:00:26 +00:00
Guy Harris 5406cdeb95 Fix indentation.
svn path=/trunk/; revision=3970
2001-09-28 23:34:03 +00:00
Guy Harris 44e672ab42 From Todd Sabin: dissect the auth info in connection oriented dcerpc
packets.

Make a "dissect_netbios_payload()" routine, called from the
NetBIOS-over-802.2 (NBF), NetBIOS-over-IPX, and NetBIOS-over-TCP
dissectors.  Take Todd Sabin's changes to add a heuristic dissector list
to the NBSS dissector, and apply them to "dissect_netbios_payload()"
instead.  Make the SMB dissector heuristic, returning FALSE if it
doesn't see 0xFF S M B at the beginning of the packet, and have
"dissect_netbios_payload()" first try the heuristic dissector list, then
try the SMB dissector if no other heuristic dissector claims the packet,
then just dissect the payload as data.

From Todd Sabin: have the DCE/RPC dissector register as a heuristic
dissector for NetBIOS.

svn path=/trunk/; revision=3969
2001-09-28 22:43:57 +00:00
Guy Harris 434a3ded4c Push-traffic dissecting for WSP/WTLS, from Tom Uijldert.
svn path=/trunk/; revision=3968
2001-09-28 18:59:30 +00:00
Guy Harris 28c42a21ec Additional Ascend codes, and IETF codes, for Radius, from Graeme Hewson.
svn path=/trunk/; revision=3967
2001-09-28 18:50:19 +00:00
Guy Harris 5a16a295ad WordCount is unsigned, so test for "WordCount != 0" rather than
"WordCount > 0".

Always put the byte count field into the protocol tree, regardless of
whether WordCount is 0 - it's not one of the word parameters counted by
WordCount, so it's present even if WordCount is 0.

Fix a "val_to_str()" call.

svn path=/trunk/; revision=3966
2001-09-28 08:39:59 +00:00
Guy Harris 31328f1ac4 Base decisions on whether to dump the word parameters on the word count
value being non-zero, not on whether the error code is zero.  Don't
bother passing the error code to dissectors for particular SMBs, as they
don't need to use it.

In "get_unicode_or_ascii_string()", when aligning to an even boundary,
align to an even boundary in the SMB message, not in the packet as a
whole - there's no guarantee that there are an even number of bytes in
the frame before the SMB message.

In the Info column, mark the packet as a request or response based on
the request/response bit in the Flags field, not on the matched port -
for NBIPX, the source and destination ports (IPX sockets) may be the
same, so you may not be able to determine whether it's a request or a
response based on that.

svn path=/trunk/; revision=3965
2001-09-28 08:01:22 +00:00
Guy Harris 6515004633 Sigh. The wiretapped.net site appears to have an old version of
WinPcap's installer (it dates back to May, meaning it may be a beta of
2.2 or may even be 2.1), so don't suggest that people go there.

svn path=/trunk/; revision=3964
2001-09-28 07:50:48 +00:00
Guy Harris 61568581bd We have our own internal versions of "gzgets()" and "gzgetc()", so we
don't need to check whether zlib has them.  We *do*, however, have to
check for "gzseek()", as we don't have our own version of that.

svn path=/trunk/; revision=3963
2001-09-28 05:41:45 +00:00
Guy Harris ad0e1385e3 Add support for NT error codes.
svn path=/trunk/; revision=3962
2001-09-27 22:48:46 +00:00
Guy Harris f0a15c306b Handle interim Transact2 responses correctly.
Mark interim responses as such in the Info column.

svn path=/trunk/; revision=3961
2001-09-27 22:33:44 +00:00
Guy Harris 6395ce3749 When dissecting an ICMP datagram that contains part of an IP datagram,
hand the (possibly-partial) IP datagram to the IP dissector, as we do
for IPv6 datagrams inside ICMPv6 and CLNP datagrams inside CLNP ER PDUs.

When dissecting IPv6 datagrams inside ICMPv6 and CLNP datagrams inside
CLNP ER PDUs, catch the ReportedLengthError exception and ignore it, as
they don't guarantee that all of the original PDU is present.

svn path=/trunk/; revision=3960
2001-09-27 10:35:40 +00:00
Guy Harris 43cd2ff411 If the amount of available data in a UDP packet is less than the length,
as reported in the header, don't checksum the packet.

svn path=/trunk/; revision=3959
2001-09-27 10:19:14 +00:00
Guy Harris f5ae39b540 Use the right #define for the length of the CC.NEW TCP option.
svn path=/trunk/; revision=3958
2001-09-27 10:10:08 +00:00
Guy Harris 6518163e63 Show Boolean flags as Booleans.
svn path=/trunk/; revision=3957
2001-09-27 10:01:07 +00:00
Guy Harris daebc74d91 2.1 isn't the current version of WinPcap; don't say what the current
version is, as that's subject to change - just speak of the "latest
non-beta version".

Mention the mirrors for WinPcap and WinDump.

svn path=/trunk/; revision=3956
2001-09-26 21:22:02 +00:00
Guy Harris c2d19c1ceb Make the message popped up if you try to do a capture on a Win32 machine
when wpcap.dll couldn't be loaded more detailed, in the hopes that it'll
reduce the chances that somebody will see that message and not know what
to do.  Also, mention the Wiretapped.net mirror of the WinPcap site, as
the WinPcap site is all-too-often down due to networking glitches.

svn path=/trunk/; revision=3955
2001-09-26 20:02:36 +00:00
Guy Harris 4325d41fbd MMSE support, from Tom Uijldert.
svn path=/trunk/; revision=3954
2001-09-25 21:32:41 +00:00
Guy Harris a86490d2a7 If "snprintf()" can't print all the data because there's not enough
room, it might return -1 in some versions of glibc; check for that, and
quit if that happens.

It might also return the number of characters that would've been printed
had there been enough room; this means that a loop that does

	n += snprintf (buf + n, BUF_LENGTH - n, ...);

may end up making "n" bigger than BUF_LENGTH, and "snprintf()" might not
sanely handle being passed a negative length, so if "n" isn't less than
the total length of the string buffer, don't add stuff to it.

The "capabilitiesStart" variable in "add_capabilities()" in the WSP
dissector is an offset into the PDU data; there's no guarantee that said
offet is < 256, and, even if there were, there's no point in making it
an 8-bit variable.

Add some additional buffer overflow checks to the WSP dissector.

svn path=/trunk/; revision=3953
2001-09-25 18:27:35 +00:00
Guy Harris 12db23546d If "snprintf()" can't print all the data because there's not enough
room, it might return -1 in some versions of glibc; check for that, and
quit if that happens.

It might also return the number of characters that would've been printed
had there been enough room; this means that a loop that does

	n += snprintf (buf + n, BUF_LENGTH - n, ...);

may end up making "n" bigger than BUF_LENGTH, and "snprintf()" might not
sanely handle being passed a negative length, so if "n" isn't less than
the total length of the string buffer, don't add stuff to it.

svn path=/trunk/; revision=3952
2001-09-25 02:21:15 +00:00
Guy Harris 7ee55bfd6b The data in a tagged field can be up to 255 bytes (the length is an
8-bit value), and the raw data of an SSID parameter is the
interpretation, so the buffer into which we put the interpretation must
be at least 256 bytes long; it's an array of size SHORT_STR, so boost
SHORT_STR to 256.

svn path=/trunk/; revision=3951
2001-09-25 00:34:24 +00:00
Guy Harris cf5dc889a9 Explain what the LLC header vs. no LLC header stuff in the ATM on Linux
tcpdump patch is all about, and note that a future version of libpcap
may render it irrelevant.

svn path=/trunk/; revision=3950
2001-09-23 23:10:30 +00:00
Guy Harris c80cd072ac Update the URL for ATM-on-Linux.
svn path=/trunk/; revision=3949
2001-09-23 21:55:21 +00:00
Ashok Narayanan 29c8fa03b3 Removed the dependency on gzgetc and gzgets by implementing internal
versions of these commands in file_wrappers.c. This allows us to
compile successfully even on platforms where X has an older zlib built
in.

Removed this restriction from acinclude.m4

svn path=/trunk/; revision=3948
2001-09-20 16:36:45 +00:00
Guy Harris d1ec951825 "value_string" arrays must end with a terminator entry.
If "get_hex_uint()" supplies a "next_offset" equal to the offset fed
into it, it found no hex digits; don't put the value into the tree if
that's the case.

If "get_unquoted_string()" or "get_quoted_string()" returns NULL, the
string separator/terminator wasn't found; don't put the value into the
tree if that's the case.

svn path=/trunk/; revision=3947
2001-09-20 02:26:03 +00:00
Guy Harris 5644182f65 Updates from Michal Melerowicz:
1. simplified and shorter names
	2. fixed problem with filtering (consequence of 1st point)
	3. added more charging tickets

svn path=/trunk/; revision=3946
2001-09-19 06:08:36 +00:00
Gilbert Ramirez 6ea1d075c1 Distribute the make-manuf and manuf.tmpl files in the source tarball.
svn path=/trunk/; revision=3945
2001-09-18 21:29:56 +00:00
Guy Harris 7e9fee9f39 Fix from Andy Hood, to remove a bogus extra line.
svn path=/trunk/; revision=3944
2001-09-17 23:35:22 +00:00
Guy Harris 0e10085580 Add support for desegmentation of DNS messages.
Make the default for NBSS and ONC RPC-over-TCP desegmentation "on",
rather than "off"; the default for desegmentation in general is "off",
so this won't change the default behavior, but it lets you turn
desegmentation on by flipping only one switch (and turn it off for
particular protocols if you desire).

svn path=/trunk/; revision=3943
2001-09-17 02:07:00 +00:00
Guy Harris 16b4866dca Add "idl2eth" to the list of files for CVS to ignore; it's now a
generated file.

svn path=/trunk/; revision=3942
2001-09-17 00:37:04 +00:00
Guy Harris b55b8ba57b Fix the handling of DNS-over-TCP.
Rename the "cap_len" argument to "dissect_dns_common()" to "msg_len", as
it's just the length of the DNS message being dissected.

svn path=/trunk/; revision=3941
2001-09-17 00:36:04 +00:00
Guy Harris dcb2bdf420 Generate "idl2eth" from "idl2eth.sh", filling in the pathname for the
shell.  (This also arranges that the source to "idl2eth" - which is now
"idl2eth.sh" - not be deleted by "make clean").

Add "doc/idl2eth.pod" to the list of files in a source tarball.

svn path=/trunk/; revision=3940
2001-09-15 23:01:12 +00:00
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