Commit Graph

5973 Commits

Author SHA1 Message Date
Tim Potter 50b37822a0 Some cleanups and fixes from Guy:
- combine proto_tree_add_text() and proto_tree_append_text() calls in the
   access mask dissector

 - make the specific access bits dissector functions return void instead of
   an offset

I think Samba has the create user reply wrong.  There is perhaps a uint32
marked as unknown that shouldn't be there.  Removing this parses all the
captures I have.

svn path=/trunk/; revision=6057
2002-08-22 01:13:13 +00:00
Ronnie Sahlberg e09e2a2754 Create a subtree with an item "tcp.analysis.flags" to keep all
tcp sequence number analysis flags, such as retransmission , lost-segment, etc
to make it easier to search for all these conditions.

svn path=/trunk/; revision=6056
2002-08-21 23:57:38 +00:00
Tim Potter 55b95e9716 Added some NT access mask constants.
svn path=/trunk/; revision=6055
2002-08-21 21:31:54 +00:00
Tim Potter bc792aa9a4 Call dissect_nt_access_mask() instead of dissect_ndr_uint32()
svn path=/trunk/; revision=6054
2002-08-21 21:31:15 +00:00
Tim Potter de6ea27535 Added a NT access mask dissector. The breaks the permission bits up into
generic, standard and specific mode bits.  A protocol dissector can pass in
it's own function for dissecting the specific mode bits, if known.

svn path=/trunk/; revision=6053
2002-08-21 21:29:22 +00:00
Tim Potter 60e4ca9c4f Moved the generic true_false_string saying "Set", "Not set" into
epan/packet.c

It was cut and pasted into seven other dissectors!

svn path=/trunk/; revision=6052
2002-08-21 21:25:23 +00:00
Guy Harris ec975908e2 Make a common routine for dissecting GSS-API tokens, and call it for
GSS-API tokens in RPCSEC_GSS_INIT and RPCSEC_GSS_CONTINUE_INIT arguments
and results.

svn path=/trunk/; revision=6051
2002-08-21 21:10:10 +00:00
Guy Harris 5d4d48242a Note that, as we now have a GSS-API token dissector, we should perhaps
call that for GSS-API tokens in ONC RPC calls.

svn path=/trunk/; revision=6050
2002-08-21 21:05:08 +00:00
Tim Potter e08c37f7ee Added GSS-API and SPNEGO dissectors to Makefiles
svn path=/trunk/; revision=6049
2002-08-21 21:00:32 +00:00
Tim Potter aad3ca4e58 A dissector for SPNEGO (rfc2478). This is a sub-dissector for GSS-API used
in Windows 2000/XP authentication.  It's pretty skeletal at the moment.
More work required.

svn path=/trunk/; revision=6048
2002-08-21 20:54:16 +00:00
Tim Potter ca5c15a56b A dissector for GSS-API (rfc2078). This is used by Windows 2000/XP when
the extended security bit is set.

svn path=/trunk/; revision=6047
2002-08-21 20:52:40 +00:00
Guy Harris 42d61a85a3 Put the volume identification in quotes, so it doesn't look stupid when
it's empty.

svn path=/trunk/; revision=6046
2002-08-21 10:40:09 +00:00
Guy Harris f81fd11c19 Display volume tags as per SMC-2.
svn path=/trunk/; revision=6045
2002-08-21 10:35:35 +00:00
Ronnie Sahlberg 2b78d4d7c6 Added a few new infromation levels for the share structs based
on samba sources.

svn path=/trunk/; revision=6044
2002-08-21 09:58:59 +00:00
Guy Harris 88565d531b Handle Read Block Position replies.
Display the additional sense code+qualifier in an element in Read Element
Status symbolically.

svn path=/trunk/; revision=6043
2002-08-21 07:55:05 +00:00
Guy Harris 2dc25cef93 Handle mode pages differently depending on the type of device (some mode
page codes are used in different ways in different devices, e.g. 0x10).

Handle commands and mode pages for media changer devices (and move some
commands from the "sequential device" category to the "media changer"
category, where SSC-2 and SMC-2 put them).

Add some missing SPC commands (not present in SPC-2).

Handle some additional SSC-2 commands.

Fix some other bugs.

svn path=/trunk/; revision=6042
2002-08-21 07:15:00 +00:00
Tim Potter 5529d0e598 Dissect udp port 389 which is connectionless LDAP as implemented by
Microsoft.  It would be nice if this proto was called CLDAP in the protocol
field - maybe later.

svn path=/trunk/; revision=6041
2002-08-21 02:18:34 +00:00
Gerald Combs d16ed1c1a0 Update ChangeLog and NEWS files for the 0.9.6 release.
svn path=/trunk/; revision=6039
2002-08-21 00:16:17 +00:00
Guy Harris 849b5f59c0 Use the new dissector API, and check whether the magic number and
protocol version is OK and reject the packet if it's not, so that we
don't grab all packets on port 8116 even if they're, for example, ONC
RPC packets.

Fix some typos.

Get rid of C++-style comments.

svn path=/trunk/; revision=6038
2002-08-20 22:56:29 +00:00
Guy Harris fb1ef7b8da From Anand Narwani: fix an infinite recursion issue when decoding
Concatenated frames which contain 0 length PDU docsis frames.

svn path=/trunk/; revision=6037
2002-08-20 22:44:25 +00:00
Guy Harris 892dab1f40 From Anand Narwani: add a missing "-static.o" file.
svn path=/trunk/; revision=6036
2002-08-20 22:42:16 +00:00
Guy Harris 71bfe6806c Have "dissect_scsi_cdb()" take an argument that's a SCSI device type,
for the benefit of dissectors such as the NDMP dissector that can at
least supply a reasonable guess for the device type; more than one type
of device can be opened on the same host over NDMP, so the scheme
currently used by the SCSI dissector to remember device types in INQUIRY
replies won't work.

Have the iSCSI dissector supply SCSI_DEV_UNKNOWN, and have the NDMP
dissector supply SCSI_DEV_SMC for NDMP_SCSI_EXECUTE_CDB (under the
assumption that it's operating on a media changer) and supply
SCSI_DEV_SSC for NDMP_TAPE_EXECUTE_CDB (under the assumption that it's
operating on a tape device).

Fix memory leaks in the SCSI dissector.

Fix the dissectors for the SSC READ(6) and WRITE(6) CDBs to dissect the
transfer length as a 24-bit quantity.

svn path=/trunk/; revision=6035
2002-08-20 22:33:17 +00:00
Jörg Mayer 7200333d8b Add -S option to tethereal. It is the equivalent to Ethereals display
packets in real time feature.

svn path=/trunk/; revision=6034
2002-08-20 20:49:31 +00:00
Guy Harris ebc4c10168 From Yaniv Kaul:
1. Add parsing of group description attribute (donno why it was
	   missed so far).
	2. Enumeration of # of transforms and # of payloads (just makes
	   it easier to look at).
	3. Parsing of Vendor ID:
		3.1 Identify several vendors' Vendor ID string (Microsoft,
		    CyberGuard, SafeNet, Check Point at the moment) - if
		    anyone has more VendorID strings, I'd be more than
		    happy to add them.
		3.2 Identify Vendor ID string of draft_ietf_ipsec_nat_t_ike_03
		    (NAT traversal RFC draft).
		3.3 Further parsing of Check Point's Vendor ID string, to
		    include Check Point product and version. If anyone has
		    other vendors' parsing knowledge, again, I'd be happy
		    to add it.

svn path=/trunk/; revision=6033
2002-08-20 18:20:11 +00:00
Guy Harris c881048c59 Regularize the format of the "(size)" tags - the SCSI specs appear not
to put a space between the command name and the tag, and we weren't
doing that for all tags, so let's just get rid of the space.

Keep track of the device type and command type separately for commands.

Remember device types when we see an INQUIRY *response*, not a request,
and save the device type bits, rather than saving some random bit from the
INQUIRY *request* as the device type.  This means we have to dissect
the INQUIRY response payload even if we're not building a protocol tree;
do so.

Put in a comment noting that the source and destination address are not
sufficient as a key to use for the device type, as a given network-layer
entity may have more than one SCSI device (and connections aren't good
enough, either).

Put the code to dissect MODE SELECT and MODE SENSE block descriptors
into a common routine.  Have that routine dissect more than one block
descriptor.  Have it take the device type and the "long LBA" flag as
arguments, so that it can correctly dissect the block descriptors.

Handle READ(6) and WRITE(6) on sequential devices.

Get rid of "dissect_scsi()" - it's not used.

svn path=/trunk/; revision=6032
2002-08-20 03:21:42 +00:00
Guy Harris 90ef4c6797 If thou art dissecting a protocol that can have multiple PDUs per frame
and where the PDU header has a length field that is the length of the
entire PDU, including the header, thou shalt not try to loop doing that
if thou findest a packet with a length of zero, lest thou spin in an
infinite loop.

svn path=/trunk/; revision=6031
2002-08-20 02:04:00 +00:00
Jörg Mayer 7bc43b4170 Forgot the RPMS directory in the .cvsignore.
svn path=/trunk/; revision=6030
2002-08-20 01:12:40 +00:00
Jörg Mayer adccfb88ae Small cleanups to the rpm building process:
- Don't fail if the intermediate directories BUILD, SOURCE, SRPMS already
  exist.
- Add these directories to .cvsignore.

svn path=/trunk/; revision=6029
2002-08-20 01:06:29 +00:00
Jörg Mayer 15c6107d19 Add the FAQ to the packages.
svn path=/trunk/; revision=6028
2002-08-20 00:59:42 +00:00
Jörg Mayer 13917def55 Small script to create the plain text version of the FAQ.
svn path=/trunk/; revision=6027
2002-08-20 00:01:52 +00:00
Jörg Mayer 7478576e03 Add Brian Bruns as the author of the tds dissector.
svn path=/trunk/; revision=6026
2002-08-19 21:34:35 +00:00
Jörg Mayer 6bad27d387 Add new dissector by Brian Bruns for the TDS protocol with the
following changes:

- Inserted packet-tds.h This is personal taste because of the many
  files in the toplevel directory. Whoever works on this next is
  free of course to separate it back out again.
- Removed unused includes sys/types.h, snprintf.h, netinet/in.h
- #if-0 unused function
- Removed duplicate define
- Declared all unused parameters as such
- Changed a // comment into /* */
- ifdef-DEBUG a printf statement

svn path=/trunk/; revision=6025
2002-08-19 21:33:29 +00:00
Jörg Mayer bcf1b43dee Fixups after replacement of ethereal.nsi.in by ethereal.nsi
svn path=/trunk/; revision=6024
2002-08-19 21:29:53 +00:00
Jörg Mayer f77acd189f Add a plain text version of the FAQ to the source package.
svn path=/trunk/; revision=6023
2002-08-19 21:22:57 +00:00
Jun-ichiro itojun Hagino ae47e6ed2e dissect LLMNR (formerly known as mDNS) on tcp/udp port 5353.
svn path=/trunk/; revision=6022
2002-08-19 16:02:45 +00:00
Gerald Combs 42427f21a7 Add COMMON_FILES_GNU definition.
svn path=/trunk/; revision=6021
2002-08-19 15:55:43 +00:00
Gerald Combs 6565c486b9 From Ulf Lamping:
Generalize paths and get rid of sed-dependent ethereal.nsi.in.

Remove ethereal.nsi.in, and re-add ethereal.nsi with Ulf's changes.
Modify Makefile.nmake to use it.

Note:  You'll have to add "COMMON_FILES_GNU" path to your config.nmake
that points to a directory with all of Ethereal's required DLLs.

Be obnixious and set "SetShellVarContext all" so that we install for
every user, like most standard Windows apps.

svn path=/trunk/; revision=6020
2002-08-19 15:48:28 +00:00
Guy Harris c1c4eef87d Fix the reporting of the "PS" bit in SCSI mode pages.
For unknown mode pages, make the "Unknown Page" tree item not include
the page code and length, as those were put into the tree already - have
it just include the contents of the page.

For MODE SELECT, use the supplied payload length rather than the mode
data length, as the mode data length is reserved in MODE SELECT (it's
implied by the total data length; in MODE SENSE, the CDB contains the
buffer size, but the target can return fewer bytes than that, so the
mode data length is meaningful).

Add additional checks of the remaining data length when parsing MODE
SELECT and MODE SENSE, and fix up the checks that were there already.

The density code comes *before* the number of blocks in a block
descriptor, and the number of blocks and block length are 3 bytes long
for both the 6-byte and 10-byte versions of MODE SELECT and MODE SENSE.

svn path=/trunk/; revision=6019
2002-08-19 13:06:43 +00:00
Guy Harris a57f7e942a When processing "i" and "a" tags, check only whether we've seen an "m"
tag or not - if we haven't, "i" is "session info" and "a" is "session
attribute", and if we have, "i" is "media title" and "a" is "media
attribute".

svn path=/trunk/; revision=6018
2002-08-19 12:57:12 +00:00
Guy Harris 1ae796de00 Limit the parameter and data tvbuffs to the actual number of bytes of
parameter and data, so the LANMAN RAP pipe dissector, for example,
doesn't get confused and think there is an auxiliary data descriptor in
the parameters when there isn't.

Note that in at least one Negotiate Protocol reply it looks as if a
Unicode domain name might've been aligned.

svn path=/trunk/; revision=6017
2002-08-19 10:53:21 +00:00
Gerald Combs c85e945784 Tweak the Solaris/SVR4 packaging a bit. Change "make install-strip" to
"make install"; even though the resulting files are huge it's probably better
to have the debugging symbols intact.  Set file and directory permissions in
/usr/local to match those in /usr.

svn path=/trunk/; revision=6016
2002-08-18 20:42:13 +00:00
Guy Harris 868c88686f If the length of a string is zero, don't put it into the protocol tree.
Handle the case where "get_unicode_or_ascii_string()" returns a null
pointer (which can be the case if the length supplied is zero, which we
check for as per the above, but can also be the case for a Unicode
string if the length supplied is 1 byte).

Fix a call to "proto_tree_add_uint()" that was presumably supposed to be
a call to "proto_tree_add_item()".

svn path=/trunk/; revision=6015
2002-08-18 20:33:47 +00:00
Guy Harris 0f3a02c956 From Bill Studenmund: fix handling of SCSI mode sense.
Fix Yasuhiro Shirasaki's e-mail address, and [AT]ify Vassilii
Khachaturov's address.

svn path=/trunk/; revision=6014
2002-08-18 19:59:40 +00:00
Guy Harris d487e4f968 From Yaniv Kaul:
1. Proper extraction of data from packet (removed bad
	   tvb_get_ptr() and casting the resulting pointer to a
	   structure method).

	2. Printout of Initator and Responder cookies (per request from
	   VPNC organization).

svn path=/trunk/; revision=6013
2002-08-18 19:19:46 +00:00
Guy Harris 14cff7ceba From Vassilii Khachaturov: put protocol blurbs into tables generated
with the "-G fields" flag.

In the scripts to process that output, handle FT_UINT64, FT_INT64, and
FT_UINT_STRING.

svn path=/trunk/; revision=6012
2002-08-18 19:08:30 +00:00
Gerald Combs 50dfd3eb31 From ENDOH Akira:
- displaying PPP datalink layer protocol names based on iana database:
    http://www.iana.org/assignments/ppp-numbers
- dissecting MPLSCP and CDPCP
- dissecting CDP over PPP

svn path=/trunk/; revision=6011
2002-08-18 15:30:38 +00:00
Ronnie Sahlberg 17e72016ac Changed two ulong REF pointers to just calle the uint32 dissector
directly instead of through a top level ref pointer
and changed the hf field to the proper one.

svn path=/trunk/; revision=6010
2002-08-18 07:24:42 +00:00
Ronnie Sahlberg d8d551c7ed Fix some incorrect poitner types. From Jean-Francois Micouleau
svn path=/trunk/; revision=6009
2002-08-18 07:18:55 +00:00
Ronnie Sahlberg a1c846ba48 Reverted part of the previous patch. It seemed we found a few too many
packets to display the ACK data for.

svn path=/trunk/; revision=6008
2002-08-17 22:26:00 +00:00
Michael Tüxen d38d643891 Fixed a typo in the table and reformatted it..
svn path=/trunk/; revision=6007
2002-08-17 18:38:41 +00:00