Commit Graph

7894 Commits

Author SHA1 Message Date
Gilbert Ramirez debac46b66 Add http.request.method field, and a subtree under the HTTP Reqeust in which
to put the field, and any future field extracted from the HTTP Request
record.

svn path=/trunk/; revision=7834
2003-06-10 22:07:18 +00:00
Laurent Deniel 8e2b112ae0 Add a preference for the FDDI dissector to be able to decode
some FDDI captures where 3-byte padding is added in order to
align the FDDI header (case of tcpdump/packetfilters on
Tru64 UNIX for instance).

svn path=/trunk/; revision=7833
2003-06-10 19:34:36 +00:00
Guy Harris 9472b08c4e Get rid of an unused variable.
svn path=/trunk/; revision=7832
2003-06-10 18:03:23 +00:00
Guy Harris bedcff1a07 Fix some places where "Ethereal" wasn't capitalized and boldfaced.
Fix a typo.

svn path=/trunk/; revision=7831
2003-06-10 17:34:01 +00:00
Guy Harris d71bf38e04 Fix a typo.
svn path=/trunk/; revision=7830
2003-06-10 17:24:40 +00:00
Guy Harris 57ae65f70f From Mike Frisch: finish NFS_ACL dissector.
svn path=/trunk/; revision=7829
2003-06-10 17:14:28 +00:00
Guy Harris 32eb0448a8 Handle the case of an empty interface list on Windows the same way we
handle it on UNIX.  Check for an empty interface name (which indicates
the end of the interface list) at the beginning of the loop, so that if
the first interface name is empty (meaning an empty interface list) we
don't put a bogus entry into the list with just a colon.

svn path=/trunk/; revision=7828
2003-06-10 08:01:42 +00:00
Guy Harris 537710afee If ADNS_DIR isn't defined, don't link with the ADNS library; this lets
you build Ethereal without ADNS.  (It'd be nice if ADNS_DIR not being
defined caused the config.h file to have the appropriate #ifdefs turned
off; we can probably do that with another @xxx@ variable in
config.h.win32, and !IFDEFs in the rules to make the config.h files,
although we should then make config.h also depend on config.nmake.)

svn path=/trunk/; revision=7827
2003-06-10 07:20:06 +00:00
Guy Harris 9d24268f8f As "tvb_strneql()" and "tvb_memeql()" now just return -1, rather than
throwing an exception, if the bytes to be compared aren't available in
the tvbuff, we don't need to check for their existence before calling
those routines.

svn path=/trunk/; revision=7826
2003-06-10 05:53:33 +00:00
Guy Harris eab7ed158b When checking for a CR-LF at the end of a packet, don't assume we have
all the data in the packet - we might have captured with a snaplen
insufficient to get it all.

svn path=/trunk/; revision=7825
2003-06-10 05:45:33 +00:00
Guy Harris 43189e4e44 Add support for some additional SAPs for Netware and OSI.
svn path=/trunk/; revision=7824
2003-06-10 05:38:52 +00:00
Guy Harris a048cbebed Show the upper 2 bytes of the formerly-reserved area as a "High Part of
PID" even for SMB-over-IPX.

svn path=/trunk/; revision=7823
2003-06-10 05:28:02 +00:00
Jörg Mayer 00bfd16e5f update manuf to june 10th
svn path=/trunk/; revision=7822
2003-06-10 02:07:33 +00:00
Jörg Mayer 0138ab3c7a update FAQ to may 25th
svn path=/trunk/; revision=7821
2003-06-10 02:03:38 +00:00
Gerald Combs bc8ef81903 Bump the version to 0.9.13 and otherwise prep for the next release. ETA is
Wednesday.

svn path=/trunk/; revision=7820
2003-06-10 01:47:34 +00:00
Guy Harris 9166bdd968 Put the right data into the protocol tree for the high 16 bits of the PID.
svn path=/trunk/; revision=7819
2003-06-09 22:59:11 +00:00
Guy Harris 68a66d01b3 Use B<> for sample command-line options.
Show the name of the program in boldface and capitalize it.

svn path=/trunk/; revision=7818
2003-06-09 18:27:19 +00:00
Ronnie Sahlberg d3eef95496 The tap listener to present sid to name mappings for tethereal
svn path=/trunk/; revision=7817
2003-06-09 10:08:40 +00:00
Ronnie Sahlberg 1630411d40 SID name mappings can now be presented in a table by tethereal
using the -z smb,sids  command argument.

svn path=/trunk/; revision=7816
2003-06-09 10:08:05 +00:00
Guy Harris ecf87b705c Clean up the usage message a bit (using the convention, adhered to by at
least some UNIX utilities, of listing all the flags with no arguments in
a single lump, and then listing the ones with arguments individually;
also, make lines as long as possible, as long as they fit in 80 columns).

svn path=/trunk/; revision=7815
2003-06-09 07:54:11 +00:00
Guy Harris 5e1c267688 Each LDAP message gets a top-level LDAP tree of its own; there's no need
for a subtree for the message.

svn path=/trunk/; revision=7814
2003-06-09 07:45:36 +00:00
Guy Harris 6b36f382ad Fix "tvb_strneql()", "tvb_strncaseeql()", and "tvb_memeql()" not to
throw an exception if there aren't enough bytes in the tvbuff to
compare.

svn path=/trunk/; revision=7813
2003-06-09 07:27:42 +00:00
Richard Sharpe 21f9f7ec48 Dissect the 12-byte reserved field as a 2-byte PID high, 8-byte sig, and
2-byte reserved field.

svn path=/trunk/; revision=7812
2003-06-09 03:01:02 +00:00
Guy Harris 4e3002765d Clean up the checks for valid SIP requests and responses; do the tests -
and the finding of tokens in the header - only once.

Don't assume there's either zero or one spaces after the colon in a
Name:Value header, and don't put a tvb_format_text()-formatted version
of the value into the protocol tree.

svn path=/trunk/; revision=7811
2003-06-09 01:50:08 +00:00
Guy Harris 99f861be11 Update the section numbers in various information level strings to
reflect the 1.0 version of the CIFS spec.  Similarly update function
names containing section numbers.

Change the strings for query file levels 0x0200 and 0x0201 to say
"Query" rather than "Set" (we now have separate tables for "query" and
"set" information levels, as some of them differ), and get rid of the
string for 0x0202, as that's documented in the CIFS spec only as a "set"
level.

svn path=/trunk/; revision=7810
2003-06-09 00:02:13 +00:00
Gerald Combs 99d4291078 Print a warning in the protocol tree instead of the console.
svn path=/trunk/; revision=7809
2003-06-08 16:06:04 +00:00
Michael Tüxen 6fd0c488d8 fixed a typo.
svn path=/trunk/; revision=7808
2003-06-08 15:59:26 +00:00
Olivier Abad c4c4bb0d1a Add a "--enable-threads" option, which allows to build the gtk+ v2
ethereal with or without threads. The default is to use threads.
(see http://www.ethereal.com/lists/ethereal-dev/200210/msg00111.html and
http://www.ethereal.com/lists/ethereal-dev/200306/msg00061.html).

svn path=/trunk/; revision=7807
2003-06-08 09:12:23 +00:00
Guy Harris 84e74c735d The information levels for TRANS2_SET_{PATH,FILE}_INFORMATION are,
according to the SNIA CIFS 1.0 spec and some captures I've seen, are not
the same as for the corresponding TRANS2_GET_{PATH,FILE}_INFORMATION.
Handle the SET information levels as per the CIFS spec.

svn path=/trunk/; revision=7806
2003-06-08 09:11:04 +00:00
Guy Harris 3afd8b77a3 The GCC 2.7.2.3 in FreeBSD 3.4, at least, requires
"__attribute__((unused))" to come after the unused argument; it gives a
syntax error if it appears before the argument.

svn path=/trunk/; revision=7805
2003-06-08 00:38:38 +00:00
Michael Tüxen be17208baf fixed some typos.
svn path=/trunk/; revision=7804
2003-06-07 17:33:30 +00:00
Michael Tüxen 00340a1dcd - updated to support the newest version of supported IDs.
- correct handling of padding bytes.
- tested at the 6.th SCTP bakeoff

svn path=/trunk/; revision=7803
2003-06-07 15:36:21 +00:00
Guy Harris 0e19962a8f From Dinesh Dutt:
Add a preference to control whether to register for ethertype 0
	or not.

	Change the short name of the protocol from "mdshdr" to "MDS
	Header".

Tweak it to work at protocol registration time, by registering or
un-registering the protocol at startup time or when the preferences are
changed, rather than to just abandon the dissection if the preference is
turned off.

svn path=/trunk/; revision=7802
2003-06-07 09:35:13 +00:00
Guy Harris 6082fe3b24 From Didier Gautheron:
Unix Privilege defined as bit 14 for directories seems to be an
	error in AFP3.0.pdf.
	AFP3.1.pdf and AFP3.0 traffic capture use bit 15 for files and
	directories.

svn path=/trunk/; revision=7801
2003-06-07 08:49:32 +00:00
Guy Harris 202ee2ce25 Use "tvb_format_text()" to display strings, so that non-printable
characters don't show up.  (We really need to handle strings better in
Ethereal, so that we can handle various character encodings in the
packets; GTK+ 2.x uses UTF-8 internally, so we could at least map
everything to that when displaying, and I think GTK+ 1.x for Win32 does
so as well, and but we need to clean up the GTK+ 1.x-for-X11 stuff to
handle the various font encodings.)

Get rid of "strtbl_lookup()" in favor of the appropriate direct calls.

svn path=/trunk/; revision=7800
2003-06-06 20:31:45 +00:00
Richard Sharpe e82e7bfc78 Update Jean-Baptiste's AUTHORS entry.
svn path=/trunk/; revision=7799
2003-06-06 17:11:08 +00:00
Richard Sharpe 48774ccaf1 Some fixes to atsvc from Jean-Baptiste Marchand ...
svn path=/trunk/; revision=7798
2003-06-06 17:09:18 +00:00
Tim Potter 13994411a9 Rename EA length field to EA list length. Field was originally just
list length before my previous commit.

svn path=/trunk/; revision=7797
2003-06-06 02:09:35 +00:00
Tim Potter ab7c3c1195 Dissect extended attribute lists in trans2 QUERY_FILE_INFORMATION,
info level 4.

svn path=/trunk/; revision=7796
2003-06-06 02:05:38 +00:00
Guy Harris ea959f5a6d Don't use "tvb_get_nstringz()" to get string data - just use
"tvb_strsize()" to get the string length, and then use "tvb_get_ptr()"
to get a pointer to the guaranteed-to-be-null-terminated string in the
tvbuff (if the null character is missing, "tvb_strsize()" throws an
exception).

svn path=/trunk/; revision=7795
2003-06-06 01:56:39 +00:00
Guy Harris ea0065c234 Frame numbers are unsigned.
svn path=/trunk/; revision=7794
2003-06-05 22:23:57 +00:00
Gerald Combs 96de41b6b2 From Lars Roland: Replace bcmp() with memcmp(), add a missing quote to the
NSIS definition file.

svn path=/trunk/; revision=7793
2003-06-05 22:10:49 +00:00
Gerald Combs 37521e54a5 Use "=" instead of "==" in an assignment.
svn path=/trunk/; revision=7792
2003-06-05 21:54:54 +00:00
Guy Harris 1aa63490c7 From Motonori Shindo: use "val_to_str()" and "sof_vals"/"eof_vals"
rather than a separate indexed table of strings, to avoid crashes with
bad packets.

svn path=/trunk/; revision=7791
2003-06-05 18:46:41 +00:00
Ronnie Sahlberg c00038711d fix to make the dcerpc_smb_fetch_pol use the new function argument list
svn path=/trunk/; revision=7790
2003-06-05 11:13:41 +00:00
Ronnie Sahlberg c9edc3ccee Teach teh sid snooping how to extract sid->name mappings from SAMR:QueryDispInfo
svn path=/trunk/; revision=7789
2003-06-05 11:02:19 +00:00
Guy Harris f2233623ea From Lionel Ains: "-d" flag for decode-as support in Tethereal.
Add a new routine to iterate through all dissector tables, calling a
routine for each table, to support having the "-d" code list all
dissector tables.

Get rid of "dissector_handle_get_dissector_name()"; it was put in there
for "-d", but turns out not to be necessary for that.

Clean up the usage message a bit (using the convention, adhered to by at
least some UNIX utilities, of listing all the flags with no arguments in
a single lump, and then listing the ones with arguments individually,
and also putting "-v" and "-h" in a separate lump, as Ethereal does).

svn path=/trunk/; revision=7788
2003-06-05 04:47:58 +00:00
Guy Harris ef77cb578a In the policy handle hashing, handle more than one policy handle having
the same value, as an open might return handle XXX, handle XXX might
then be closed, and a subsequent handle might return handle XXX, and we
want to keep the two handles distinct to avoid, for example, displaying
handles closed before they're opened.

In policy handle open replies, store the handle name only if the
operation succeeded.  We can now do that without parsing the packet
twice.

Have "dissect_nt_policy_hnd()" optionally return, through a pointer, the
protocol tree item for the handle, so that its caller can decorate the
item with the name of the handle - that's done on opens, where we do
that only if the operation succeeds.

svn path=/trunk/; revision=7787
2003-06-05 04:22:04 +00:00
Guy Harris 7d282e17ed Get rid of trailing white space.
Fix a spelling error.

Don't use lengths with ASCIIZ strings, as "proto_tree_add_item()" will,
with a specified length, attempt to fetch the specified number of bytes
for an FT_STRINGZ string, throwing an exception of there aren't that
many bytes present.

svn path=/trunk/; revision=7786
2003-06-05 04:04:32 +00:00
Guy Harris 85ada1dec6 When "proto_tree_add_item()" is used with FT_STRINGZ with a length
value, just copy the specified number of bytes and stick a '\0' at the
end, don't use "tvb_get_nstringz0()" - yes, you end up copying more
bytes, but you don't have to bother looking for a '\0' that might not
even be present (if the string is null-padded rather than
null-terminated).

Also, set the length of the item to the specified length, rather than to
the length up to the terminating '\0' - if the string is null-padded,
the field should include all the padding bytes.

svn path=/trunk/; revision=7785
2003-06-05 03:57:38 +00:00