Commit Graph

7241 Commits

Author SHA1 Message Date
Guy Harris 1b8debaf37 From Santeri Paavolainen: make doc/Makefile.am work in POSIXLY_CORRECT
environment.

svn path=/trunk/; revision=7128
2003-02-12 08:55:19 +00:00
Guy Harris 778f43ea73 From Matthew Smart: partial NetFlow V9 support.
svn path=/trunk/; revision=7127
2003-02-12 08:36:48 +00:00
Guy Harris eb9a181518 WBXML updates, and e-mail address update, from Olivier Biot.
svn path=/trunk/; revision=7126
2003-02-12 01:17:07 +00:00
Guy Harris 6c99ee4db0 Make the argument to "abs_time_secs_to_str()" a "time_t" - it's in ANSI
C, and it's the right thing to pass to "localtime()".

svn path=/trunk/; revision=7125
2003-02-12 00:44:04 +00:00
Guy Harris 1ad3b70b4b Add a "abs_time_secs_to_str()" routine that takes a UNIX time-since-the-
epoch-in-seconds value and converts it to a string.

Use that routine in the RADIUS dissector, rather than using "ctime()"
and "tzname[]" - "tzname[]" strings might contain non-ASCII characters,
which currently give the GTK+ 1.3[.x] used on Windows, and also, I
think, GTK+ 2.x, heartburn, as they expect UTF-8, not, for example, ISO
8859/1.

Fix the string length in "abs_time_to_str()".

svn path=/trunk/; revision=7124
2003-02-11 19:42:38 +00:00
Guy Harris c684f70d83 The Novell Web site's information for Scan Directory Disk Space appears
to be correct; remove the comment about what was there not matching.

Note that the PropertyValue item in a Write Property Value request
should perhaps be omitted if MoreFlag isn't set (it appears to be
garbage if it's not set).

svn path=/trunk/; revision=7123
2003-02-11 08:47:22 +00:00
Tim Potter 6f4661637a Decorate ACE items in an ACL with the SID and flag values.
svn path=/trunk/; revision=7122
2003-02-11 04:33:24 +00:00
Tim Potter be1760bfb9 More cleanups.
Added name parameter and add_subtree boolean to dissect_SYSTEM_TIME()

Decorate COL_INFO with changeid and notify information for print
notify RPCs.

svn path=/trunk/; revision=7121
2003-02-11 03:22:59 +00:00
Guy Harris eb3357b648 Future releases of libpcap probably won't install <net/bpf.h>, so we
shouldn't require it to exist.  Instead, as we're already checking
whether we can find <pcap.h> (which is the only thing we actually
include - we rely on it to include whatever BPF headers are necessary),
we print the big "are you sure you installed the development package?"
message if we don't find "pcap.h".

svn path=/trunk/; revision=7120
2003-02-11 02:31:22 +00:00
Guy Harris aa710fd9cd When putting the lowest-level protocol tree item in for a Unicode
string, use the "fake Unicode" value for it.

svn path=/trunk/; revision=7119
2003-02-11 02:18:27 +00:00
Guy Harris d06e3c57bd Decorate the top-level item for a PRIV_NAME_ARRAY with the privilege
names.

svn path=/trunk/; revision=7118
2003-02-10 23:45:56 +00:00
Guy Harris 772e801525 Boost the memory allocation so we can compile "help_dlg.c" which
includes "FAQ.include" as a giant string containing the entire FAQ.

svn path=/trunk/; revision=7117
2003-02-10 23:34:49 +00:00
Guy Harris 795391e4b0 Don't tell the resolver code that a given MAC address corresponds to a
given IP address if:

	the MAC address is non-unicast, not just if it's broadcast;

	the MAC address is all zeroes;

	the IP address is all zeroes.

*Do* tell the resolver code that the target MAC address corresponds to
the target IP address in ARP replies, as long as none of the above are
true - replies are the packets most likely to contain interesting target
address information.

svn path=/trunk/; revision=7116
2003-02-10 21:13:13 +00:00
Guy Harris 59c18d6bd4 Note that one shouldn't put a comma after the last element of an enum.
svn path=/trunk/; revision=7115
2003-02-10 19:21:25 +00:00
Tim Potter 16ccbfd1b3 In dissect_ndr_cvstring(), return string data even if tree == NULL.
svn path=/trunk/; revision=7114
2003-02-10 06:25:10 +00:00
Tim Potter c4c96e0e5e Deleted dissect_unistr2() function - call dissect_ndr_cvstring() instead.
Hooray - I think that's the last of the spoolss specific string routines
cleaned up.

Cleanup of print notify dissections:

 - rename hf variable names
 - added 'job total bytes' and 'job bytes printed' filter fields
 - fixed bug dissecting job notify data introduced when converting to NDR
   routines
 - add hidden values for notify data so that filtering on (say) printer
   name brings up notify data that references it
 - decorate some higher level print notify proto_items to make things look
   pretty

Add printer name to ReplyOpenPrinter policy handle name.

svn path=/trunk/; revision=7113
2003-02-10 06:21:57 +00:00
Guy Harris dae6dd9bcf Update some comments.
svn path=/trunk/; revision=7112
2003-02-10 02:38:24 +00:00
Tim Potter ec194a0766 Cleanup of printer forms dissection:
- display more data in COL_INFO

 - replaced per-RPC level fields with generic spoolss.form.level one

 - put the form type value string into the hf initialisation instead
   of displaying it by hand using proto_tree_add_text

 - added hidden field for all forms RPCs (filter on spoolss.form to get
   all form related RPCs)

 - removed useless dissect_form_name() function

svn path=/trunk/; revision=7111
2003-02-10 02:11:36 +00:00
Tim Potter e447ba4fdf Use new format of dissect_ndr_cvstring() function.
svn path=/trunk/; revision=7110
2003-02-10 02:07:15 +00:00
Tim Potter c112d781b1 Allow dissect_ndr_cvstring to return a malloced copy of the string.
svn path=/trunk/; revision=7109
2003-02-10 02:06:28 +00:00
Tim Potter b3760c6e43 Added a comment about the length argument to fake_unicode. It should be
the number of guint16's to convert from unicode.

Allow dissect_ndr_cvstring to return a malloced copy of the string.

svn path=/trunk/; revision=7108
2003-02-10 02:05:24 +00:00
Guy Harris 64991e3fa1 Have "dissect_ndr_counted_string()" add 2, not 1, to its argument, as it
adds 2 levels to the tree.  Fix calls to it not to add 1 for that level.

The NT and LM challenges in a NETWORK_INFO structure are opaque arrays
of bytes, not Unicode strings; dissect them as such, adding a new
routine "dissect_ndr_counted_byte_array()" for that purpose.

Get rid of some extra colons in names - the colon is put there if a
string is appended, so putting a colon in there explicitly gives double
colons.

Decorate some higher-level tree nodes with strings.

svn path=/trunk/; revision=7107
2003-02-08 09:41:44 +00:00
Guy Harris fcea88589c At least in regular SMB requests, the access mask in an ACE is not
guaranteed to be aligned on a 4-byte boundary, so, if we're not
dissecting an ACE from a DCE RPC request or reply, don't use
"dissect_ndr_uint32()" to extract the access mask.  (Is it guaranteed to
be so aligned even if the ACE is part of a DCE RPC message?  Or are ACLs
just opaque blobs from the point of view of DCE RPC?)

Use "%u", not "%d", to print unsigned quantities.

svn path=/trunk/; revision=7106
2003-02-08 08:55:13 +00:00
Guy Harris 600cbb3d54 Update URLs for NCP documentation.
svn path=/trunk/; revision=7105
2003-02-08 06:25:35 +00:00
Guy Harris 7ffebe8297 0xff00 is a valid completion code for Keyed Object Login requests.
svn path=/trunk/; revision=7104
2003-02-08 05:32:10 +00:00
Guy Harris 529b3b6976 Add a preference to control whether to attempt to un-mangle Linux
token-ring headers; sometimes a header might look mangled when it's not.

(It'd be nice if we could detect that from the capture file;
unfortunately, there are already both mangled Linux libpcap captures
and, presumably, un-mangled non-Linux libpcap captures with the same
DLT_ value.)

svn path=/trunk/; revision=7103
2003-02-08 05:31:05 +00:00
Guy Harris 442536732f Make the request frame number field an FT_FRAMENUM.
0xff00 is a valid reply to "Get Name Space Information".

svn path=/trunk/; revision=7102
2003-02-08 05:05:17 +00:00
Guy Harris 564ad0f504 Fix a typo in the "Defined Name Spaces" field name.
Properly display the reply to a Get Name Space Information request -
there is a sequence of name space names, and a sequence of pairs of
{associated name space, data stream name}, and there are also sequences
of name space index numbers, but if we try to display anything after the
list of loaded name spaces, nothing gets displayed at all.

svn path=/trunk/; revision=7101
2003-02-08 04:34:38 +00:00
Gilbert Ramirez 9615c4ef25 Provide a way for ftype modules to provide a string representation
of their value. Provide such a method for FT_BYTES, FT_UINT_BYTES,
and FT_ETHER. Have proto_alloc_dfilter_string() use the new methods.

This is part of a movement of ftype-related code out of proto.c and
into the ftype code. The immediate effect is that generated display
filters for long byte sequences don't incorrectly have trailing periods
("...") to indicate continuation.

svn path=/trunk/; revision=7100
2003-02-08 04:22:37 +00:00
Guy Harris 086e99dff9 The hour and minute fields of times go from 0 to 23 and 0 to 59, so
adding 1 to them is incorrect (and cannot possibly be correct, as that'd
rule out 0 as valid values, meaning nothing can ever happen in the first
hour after midnight or in the first minute after the hour).

svn path=/trunk/; revision=7099
2003-02-08 03:06:06 +00:00
Guy Harris 4224bb44b5 Force the endianness of the dates and times in DirectoryInstance and
FileInstance to big-endian.

Those structures apparently contain a last access date rather than a
creation time.

svn path=/trunk/; revision=7098
2003-02-08 02:59:05 +00:00
Guy Harris 47be088068 Fix some comments.
svn path=/trunk/; revision=7097
2003-02-07 22:49:35 +00:00
Guy Harris e9f0f4b74f Rename "dissect_ndr_char_string()" and "dissect_ndr_wchar_string()" to
"dissect_ndr_char_cvstring()" and "dissect_ndr_wchar_cvstring()", to
indicate that they're for conformant varying strings.

Rename "dissect_ndr_character_array()" to "dissect_ndr_cvstring()", to
indicate that it's for conformant varying strings.

svn path=/trunk/; revision=7096
2003-02-07 22:44:54 +00:00
Guy Harris 9a348d5736 Rename "dissect_ndr_char_array" and "disect_ndr_wchar_array" to
"dissect_ndr_char_string" and "dissect_ndr_wchar_string", to make it
clearer what it does.

svn path=/trunk/; revision=7095
2003-02-07 22:31:32 +00:00
Guy Harris 6be6afeb1c From Thierry Pelle: updates (use the correct RFC 2472 term - "interface
identifier", not "interface token" - and print the octets of the
interface identifier with zero padding).

svn path=/trunk/; revision=7094
2003-02-07 20:09:33 +00:00
Guy Harris e708872638 Thou Shalt Not Ever Make An Offset An 8-bit Quantity If Thou Art
Comparing It Against An 8-bit Or Longer Length To Make Sure It Doesn't
Go Past The Length, because if the length is 255, it can't ever go past
it as it'll overflow if it does.

svn path=/trunk/; revision=7093
2003-02-07 19:57:19 +00:00
Guy Harris c8386a5829 Catch ReportedBoundsError when dissecting even non-encrypted stub data,
so that even if the stub data is bad, we still dissect and show the
verifier.

svn path=/trunk/; revision=7092
2003-02-07 19:45:56 +00:00
Guy Harris 579d05d1f3 Fix a typo in the multiple-include protection in "packet-dcerpc-nt.h".
Rename "dissect_ndr_element_array()" to "dissect_ndr_character_array()",
move it out of "packet-dcerpc-nt.c" to "packet-dcerpc.c", and have it
use the standard DCE RPC array max count/offset/count fields rather than
their own private versions of those fields.  Give it an option to create
a subtree, and an argument to specify the field to use for the actual
data buffer, and export it.

Move the routines for handling arrays of "char" and "wchar" as strings
out of "packet-dcerpc-nt.c" to "packet-dcerpc.c".

Add a routine to handle an array of "char" as an opaque blob of bytes.

Use "dissect_ndr_character_array()" to dissect character strings in MAPI
(the strings in question are ASCII, not Unicode), and use the routine to
handle an array of "char" as an opaque blob of bytes to dissect
encrypted data (again, it's bytes, not 16-bit quantities).  Show them as
encrypted data, not unknown data.

Use "dissect_ndr_character_array()" to dissect a form name in
"dissect_form_name()" in the SPOOLSS dissector.

svn path=/trunk/; revision=7091
2003-02-07 08:56:12 +00:00
Guy Harris 09052b88d2 Decorate several layers of the tree with the account name in
"USER_INFO_21" and in "LOOKUP_NAMES".

svn path=/trunk/; revision=7090
2003-02-07 08:37:13 +00:00
Guy Harris 5fbd5615c1 Decorate the top-level items for the account name in
POLICY_ACCOUNT_DOMAIN_INFO and the domain in TRUSTED_DOMAIN with the
string.

svn path=/trunk/; revision=7089
2003-02-07 08:33:07 +00:00
Guy Harris 6e33ba9d28 Decorate the top-level tree items for "LSA_TRANSLATED_NAME" and an
"LSA_TRUST_INFORMATION" with the account name.

svn path=/trunk/; revision=7088
2003-02-07 06:38:40 +00:00
Tim Potter e15193fa72 Fix callers to dissect_nt_sec_desc() to use new function interface.
Dissection of security descriptors in SPOOLSS RPC calls now display
the correct meaning of the specific access mask bits.

svn path=/trunk/; revision=7087
2003-02-07 06:04:28 +00:00
Tim Potter 45d316639a Move dissect_nt_access_mask() from packet-dcerpc-nt.c to packet-smb.c
Give dissect_nt_sec_desc() and dissect_nt_access_mask() a specific rights
function parameter for dissecting specific access rights.

Fix callers in packet-smb.c to use the new interface.

svn path=/trunk/; revision=7086
2003-02-07 06:01:49 +00:00
Gerald Combs 835c8d03fe Add the RFC 3203 FORCERENEW message type, as suggested by Suresh K.
svn path=/trunk/; revision=7085
2003-02-07 04:25:37 +00:00
Guy Harris d48ec06a6a From Olivier Biot: WBXML/WMLC support.
svn path=/trunk/; revision=7084
2003-02-06 01:23:32 +00:00
Guy Harris 1576681f28 The "Subdirectory" bit in search attributes means "subdirectories only",
and in file attributes means "this is a subdirectory"; don't mix the
two.

The 1-byte and 2-byte search attributes appear to have the same bit
definitions (except, obviously, for those that are in the topmost byte).

svn path=/trunk/; revision=7083
2003-02-05 20:52:48 +00:00
Laurent Deniel 4616d3416b - protect against multiple inclusion
- remove incorrect and unused definition
  of tapping_is_active

svn path=/trunk/; revision=7082
2003-02-05 20:45:38 +00:00
Guy Harris 9649134bbf Various XXXDirectoryID values always appear to be big-endian (including
the ones not specified as such when used), so declare them as such
rather than specifying them as such when used.

The SearchSequenceWord also appears to be big-endian.

Note that we're not cracking the bits of a DirectoryAttributes field.

The "Subdirectory" bit in search attributes is really "Subdirectories
Only", as in "just show me subdirectories".

Note some confusion about whether the bit numbers on the Novell Web site
for search attributes are bit numbers or bit flags.

Note that we appear to have gotten back attributes for a file rather
than a directory in at least one search that had "Subdirectories Only"
set - unless the problem is that the numbers in the Novell spec are bit
numbers rather than bit flags.

Update some items that claimed to have a 2-byte search attributes field
to have a 1-byte search attributes field instead, to match the spec on
the Novell site (of course, the spec could be wrong...).

svn path=/trunk/; revision=7081
2003-02-05 20:02:34 +00:00
Guy Harris da5c649bbc An object of type 0x5555 is apparently a "Site Lock".
svn path=/trunk/; revision=7080
2003-02-05 19:03:51 +00:00
Guy Harris 7b77fdec83 Sometimes the trace stuff doesn't appear in connect messages.
svn path=/trunk/; revision=7079
2003-02-05 08:06:40 +00:00