Commit Graph

3966 Commits

Author SHA1 Message Date
Guy Harris 971ceec9d2 Remove the check I added to see whether the length of the packet, based
on the location of the UCB_ETX, is greater than the length of the tvbuff
- that can never happen, as the UCB_ETX is, as it was found, definitely
inside the tvbuff.

svn path=/trunk/; revision=4010
2001-10-08 17:37:52 +00:00
Guy Harris bebcff62d7 UCP support, from Tom Uijldert.
svn path=/trunk/; revision=4009
2001-10-08 17:30:23 +00:00
Nathan Neulinger c84fa84414 more packet types and fix some incorrect offsets and sizes in other packets
svn path=/trunk/; revision=4008
2001-10-08 14:32:06 +00:00
Guy Harris 1265cd6aff From Joerg Mayer: explain in the "LWP isn't installed" message where you
can get LWP.

svn path=/trunk/; revision=4007
2001-10-07 22:19:14 +00:00
Guy Harris fb8a4e877c From Joerg Mayer: a patch to add 00:40:96 as an OUI for Aironet wireless
devices (which are now Cisco wireless devices, as Cisco bought Aironet).

This overrides the out-of-date assignment of 00:40:96 to Telesystems SLW
in the cavebear.com file (Telesystems SLW were bought by Telxon, who
then apparently spun off their RF division, plus Telesystems, as
Aironet).

svn path=/trunk/; revision=4006
2001-10-07 09:27:57 +00:00
Guy Harris f859d94bad Fix to show FN_PROFILE_WARNING14, rather than FN_PROFILE_WARNING, as
"Profile-Warning (encoding 1.4)".

svn path=/trunk/; revision=4005
2001-10-07 08:49:46 +00:00
Guy Harris 421f1b6a6c From Georg von Zezschwitz:
- A bug related to "WSP header pages" is fixed, that
    resulted into "malformed WSP frame" alerts
  - "Concatenated PDUs" (Multiple PDUs within one UDP
    packet) are now supported (used e.g. by Nokia 8310)
  - The URL of WSP GET/POST requests is display in the
    info column, same like HTTP GET requests

svn path=/trunk/; revision=4004
2001-10-07 08:37:29 +00:00
Nathan Neulinger caacc41920 correct subtrees for redirect/refuse, alter how data packets are processed, bitfield'ize the data flag
svn path=/trunk/; revision=4003
2001-10-06 17:58:56 +00:00
Nathan Neulinger aa12f0b584 Use separate items for accept/etc data fields
Add support for redirect and refuse packets (however, I don't have
	examples of content for these.)
Change some variable names to match the routines they are in.
Make sure to insert boolean for each packet type.

svn path=/trunk/; revision=4002
2001-10-06 16:48:00 +00:00
Nathan Neulinger 784044cc72 break out fields of accept packet, only print connect data if it is actually present
svn path=/trunk/; revision=4001
2001-10-06 15:45:38 +00:00
Nathan Neulinger 1c2c8a2d42 expand out all fields in connect packet
svn path=/trunk/; revision=4000
2001-10-06 15:27:47 +00:00
Nathan Neulinger ed8369f276 more packet types - starting work on more complete dissection of tns
svn path=/trunk/; revision=3999
2001-10-06 14:24:36 +00:00
Guy Harris c8a0ae1bc1 Update from Todd Sabin to the data representation decoding:
Fixes a typo in the offset used for the floating point byte
	(offset should be offset+1), changes cn_drep* to just drep*
	(since it's the same for connection oriented and connectionless
	packets), and adds the corresponding code to the connectionless
	side of things.

svn path=/trunk/; revision=3998
2001-10-05 20:25:41 +00:00
Guy Harris 1230f38cdc Decode the mailslot payload as data in some additional cases where we
didn't dissect it as some other protocol.

svn path=/trunk/; revision=3997
2001-10-04 23:19:01 +00:00
Guy Harris 70cd4ff2ef If the body of a mailslot message isn't decoded as anything we know
about, dump it as data.

svn path=/trunk/; revision=3996
2001-10-04 23:06:49 +00:00
Guy Harris 5881ffaf2a From Motonori Shindo: have CVS ignore some files generated by Win32
builds.

svn path=/trunk/; revision=3995
2001-10-04 21:08:11 +00:00
Guy Harris e0b9c9d187 From Motonori Shindo:
Use hex notation in strings for ISO 8859-1 characters as keysym
	names.

	Fix one error in the table of keysym names.

svn path=/trunk/; revision=3994
2001-10-04 08:52:38 +00:00
Guy Harris 3c9efdf478 Use longs as file offsets, so that on platforms with 64-bit "long" we
can handle capture files bigger than 2GB.

svn path=/trunk/; revision=3993
2001-10-04 08:30:36 +00:00
Guy Harris f52303ffc9 Avoid using non-ASCII characters in labels in the protocol tree - some
compilers may not interpret them as the ISO 8859/1 characters they're
intended to be, and the GUI toolkit or other software through which the
text passes might not interpret them as such, either.

svn path=/trunk/; revision=3992
2001-10-04 00:30:23 +00:00
Richard Sharpe 1f682d68f3 Attribute the packet-x11-keysym.h fixes properly.
svn path=/trunk/; revision=3991
2001-10-03 15:15:34 +00:00
Richard Sharpe 24ee7a93c0 Apply Monotori Shindo's fixes for X11 double byte chars ...
svn path=/trunk/; revision=3990
2001-10-03 15:13:24 +00:00
Richard Sharpe 5fac750533 Fix Monotori Shindo's attributions. I screwed up before ...
svn path=/trunk/; revision=3989
2001-10-01 08:58:36 +00:00
Guy Harris 41254f45fd Merge the two AUTHORS entries for Motonori Shindo.
Fix a typo in the AUTHORS entry for Pasi Eronen, and add him to the list
of authors in the man page.

svn path=/trunk/; revision=3988
2001-10-01 08:51:31 +00:00
Richard Sharpe ff50cff36d Damn the torpedos[1], commit it anyway.
Who said that? I think I know ... F...

svn path=/trunk/; revision=3987
2001-10-01 08:47:50 +00:00
Guy Harris d627904aba Have a flag in the "packet_info" structure, which indicates whether the
stuff currently being dissected is part of a packet included in an error
packet (e.g., an ICMP Unreachable packet).  Have the TCP dissector not
bother doing reassembly if the TCP segment is part of an error packet,
rather than an actual TCP transmission; other dissectors might want to
treat those packets specially as well.

Add to the "tcpinfo" structure a flag indicating whether the URG flag
was set, rather than having the zero or non-zero value of the urgent
pointer indicate that.  (Yes, at least as I read RFC 793, a zero urgent
pointer value isn't useful, as it means "the stuff before this segment
is urgent", but it's certainly possible to put onto the wire a TCP
segment with URG set and a zero urgent pointer.)

Don't dissect the TCP header by grabbing the entire header with
"tvb_memcpy()" and then pulling stuff out of it - extract stuff with
individual tvbuff calls, and put stuff into the protocol tree and the
Info column as we extract it, so that we can dissect a partial header.
This lets us, for example, get the source and destination ports from the
TCP header of the part of a TCP segment included in a minimum-length
ICMPv4 error packet.

svn path=/trunk/; revision=3986
2001-10-01 08:29:37 +00:00
Guy Harris 3869ff8bfb Make several of the fields in the SMB header filterable.
Get rid of the "unknown-0xXX" entries in the "value_string" table for
SMB command codes - they make it much more painful to select one of them
in the filter-editing dialog box.

svn path=/trunk/; revision=3985
2001-09-30 23:36:46 +00:00
Guy Harris 1e937e5c0a The length of an NBSS message can be bigger than 64K, so make the
variable that holds it an "int" rather than a "guint16".

Further strengthen the heuristics the NBSS dissector uses to distinguish
NBSS messages from continuations of NBSS messages.

If an frame contains an NBSS continuation, put the protocol tree item
for the continuation data under an NBSS protocol tree item.

Have the TCP dissector supply information to subdissectors via a "struct
tcpinfo" pointed to by "pinfo->private"; move the urgent pointer value
from a global variable into that structure, and add a Boolean flag that
indicates whether the data it's handing to a subdissector is reassembled
data or not.

Make the NBSS dissector check for continuations only in non-reassembled
data.

Fix the computation, in the TCP dissector, of the offset into the tvbuff
handed to the subdissector of the first byte of stuff that needs further
reassembly, and fix the computation of the sequence number corresponding
to that byte.

svn path=/trunk/; revision=3984
2001-09-30 23:14:43 +00:00
Guy Harris 5feac9e72a "packet-ipv6.c" doesn't need anything from "packet-tcp.h" or
"packet-udp.h", so it shouldn't #include them.

svn path=/trunk/; revision=3983
2001-09-30 23:07:12 +00:00
Guy Harris 0e12636ce2 For requests and responses for unknown interfaces, put an entry into the
DCE RPC protocol tree for the stub data.

Use the counts of context items and transfer syntax items when
dissecting a bind or alter context PDU.

In bind and alter context PDUs, create the conversation, attach the
context ID and interface to it, and put the interface information into
the Info column as soon as the first context item is dissected, so that
if we get an exception after that, we've still processed the context ID
and interface information.

Use the count of results when dissecting a bind ack PDU.

In bind ack PDUs, dissect the transfer syntax and syntax version fields,
and put the opnum and context ID information into the Info column as
soon as it's dissected.

When dissecting a connection-oriented request or response, don't make
the tvbuff the full fragment length if we don't have that much data in
the frame being dissected.  (We should do TCP reassembly there,
eventually.)

In connection-oriented response PDUs, put the opnum and context ID
information into the Info column as soon as it's dissected.

svn path=/trunk/; revision=3982
2001-09-30 21:56:24 +00:00
Richard Sharpe 8628761b11 Pasi Eronen's attribution ...
svn path=/trunk/; revision=3981
2001-09-30 13:50:14 +00:00
Richard Sharpe 9668f4b90e Committing Pasi Eronen's patches to dcerpc.
svn path=/trunk/; revision=3980
2001-09-30 13:48:20 +00:00
Richard Sharpe ed5e9c9768 Committing Montonori Shindo's patched to ppp for chap support.
svn path=/trunk/; revision=3979
2001-09-30 13:30:51 +00:00
Richard Sharpe c3c85e5426 Commit Montori Shindo's small patch.
svn path=/trunk/; revision=3978
2001-09-30 13:23:20 +00:00
Guy Harris 745d836320 Make the item for NetBIOS only as long as the NetBIOS header, so that it
doesn't cover the payload.

svn path=/trunk/; revision=3977
2001-09-29 20:32:29 +00:00
Guy Harris f2cb0c704d The Wiretapped.net mirror is OK again (it was a problem with the
mirroring procedure, due to the Politecnico di Torino site's IIS not
being configured to allow the relevant "virtual directories" to be
listed, thus keeping Wiretapped.net from figuring out what files were
there and whether they've changed), so put back the references to it.

svn path=/trunk/; revision=3976
2001-09-29 19:56:08 +00:00
Guy Harris 9be7b5fa6e The Wiretapped.net mirror is OK again (it was a problem with the
mirroring procedure, due to the Politecnico di Torino site's IIS not
being configured to allow the relevant "virtual directories" to be
listed, thus keeping Wiretapped.net from figuring out what files were
there and whether they've changed), so put back the references to it.

svn path=/trunk/; revision=3975
2001-09-29 19:31:31 +00:00
Guy Harris a6c48da6a3 Use tvbuff routines to extract data from the SMB header.
svn path=/trunk/; revision=3974
2001-09-29 01:44:09 +00:00
Guy Harris 0102e0c783 Start the process of tvbuffifying the SMB dissector - give it a
tvbuffified heuristic-dissector interface, but have it immediately turn
its arguments into an old-style buffer pointer and offset.

Register the SMB dissector as a heuristic NetBIOS dissector, and have
"dissect_netbios_payload()" just try the heuristics, as it no longer has
to call the SMB dissector explicitly.

svn path=/trunk/; revision=3973
2001-09-29 01:19:01 +00:00
Guy Harris 0967703289 Have "dissect_netbios_payload()" take as an argument a tvbuff containing
only the NetBIOS payload, and have the NBSS dissector construct tvbuffs
of that sort (i.e., stop at the end of the NBSS session message, not at
the end of the data handed to the NBSS dissector).

svn path=/trunk/; revision=3972
2001-09-29 00:57:36 +00:00
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