Commit Graph

64 Commits

Author SHA1 Message Date
Guy Harris e748cb2ea2 From Greg Morris:
Novell Modular Authentication Services support;

	fix some return values and decodes;

	show the NDS reply buffer only in service request packets.

svn path=/trunk/; revision=10263
2004-02-29 08:01:22 +00:00
Guy Harris 4b5d30e724 From Greg Morris:
1. Add several return values
	2. Fix the reply structure for NCP 22/48, 23/122
	3. Fix the request structure for NCP 23/121
	4. ServerID should be displayed as a hex value.
	5. ServerStationLong should be LE.
	6. JobNumberList should be JobNumberLong.
	7. Fix 87/64, 87/65, 87/66, 87/68, 87/69 - These are not Advanced Audit
	   Service, they really 64 bit file support NCP's.

svn path=/trunk/; revision=8855
2003-11-01 04:42:19 +00:00
Guy Harris aae16c9178 From Greg Morris:
1. Added Secret Store Services group
	2. Added a number of NCP return values
	3. Added support for NDS defragmentation
	4. Fixed type from file to bindery on ncp's 23/20, 23/21, 23/22, 23/24,
	   23/27, 23/28, 23/29, 23/30, and 23/31
	5. Fixed type from comm to nmas on ncp 91
	6. Fixed ncp 92 to include 92/01, 92/02, 92/03, 92/04, 92/05, 92/06,
	   92/07, 92/08, 92/09, and 92/10
	7. Added return value for 104/02
	8. Fixed reply structures for NCP 123/60 and NCP 123/79

svn path=/trunk/; revision=8256
2003-08-25 22:06:38 +00:00
Guy Harris 5cf4d87bab Add some missing entries to "ncp_nds_verb_vals[]".
svn path=/trunk/; revision=8059
2003-07-21 09:18:31 +00:00
Guy Harris 38f39bcbdf Use "ncp_nds_verb_vals" for the NDS Verb item.
svn path=/trunk/; revision=8056
2003-07-20 00:37:20 +00:00
Gilbert Ramirez 2cd3b04259 SetCmdValueNum needs to be used with a fixed length, not -1. Thus,
use rec() instead of srec().

svn path=/trunk/; revision=7847
2003-06-11 20:57:11 +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 bf10523c44 From Greg Morris: change the endianness of CCFilehandle to match other
NCP's.

svn path=/trunk/; revision=7633
2003-05-02 21:26:47 +00:00
Guy Harris d7bbbacc6d From Greg Morris:
NCP 123,62 did not display value for the set command. Set default
	value to guint32.

	Add some stuff for the Novell Modular Authentication Service.

svn path=/trunk/; revision=7559
2003-04-25 20:33:16 +00:00
Guy Harris d8b9b01ad4 From Greg Morris: level 2 oplock support, add additional error codes,
fix the "Delete a File or Subdirectory" item.

svn path=/trunk/; revision=7412
2003-04-08 00:07:01 +00:00
Guy Harris d902039842 Updates from Greg Morris:
1. Added a number of NCP Error return values.
	2. Added ability to pass byte strings to summary window.
	3. Modified file NCP's to reflect file handle in summary window.
	4. Changed all NCP's using QueueID from big endian to little endian.
	This is different from Novell's NCP documentation but matches same
	information obtained from NDS dissector.
	5. Added over 50 more NDS error return values.
	6. Partially fixed NDS Request verb 6 (Search Entries)

svn path=/trunk/; revision=7172
2003-02-19 21:47:46 +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
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 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
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 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
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 b224382433 FileSize appears to be big-endian in DOSFileEntryStruct and FileInstance
structures; make it so (which makes it big-endian on other structures as
well).

The same appears to be true of the UpdateID.

There doesn't appear to be a reserved word between the
SearchSequenceWord and DirectoryID fields of a DirectoryInstance or a
FileInstance.

The dates and times in a DirectoryInstance or a FileInstance appear to
be big-endian; note that we need to add the ability to make those
instances big-endian but leave others little-endian.

Note that there's a sequence of NameSpaceNames and a sequence of
DataStreamNames in the reply to a Get Name Space Operation request.

A Login Object request has a 2-byte object type followed by a
ClientName, just a UserName.  The same applies to a Get Object
Connection List request.

Note that the DirectoryInstance or FileInstance in a File Search
Continue reply appears to be garbage if the reply doesn't succeed with
"OK".

svn path=/trunk/; revision=7077
2003-02-05 06:24:30 +00:00
Guy Harris 60e77fd780 The MemberType field in various bindery operations is 2 bytes, not 1
byte or 4 bytes.

svn path=/trunk/; revision=7049
2003-01-30 22:39:51 +00:00
Ronnie Sahlberg b8fd3cc391 Keep track of and display the time between Call and Reply in NCP packets.
svn path=/trunk/; revision=6968
2003-01-22 00:45:30 +00:00
Guy Harris 22667240e5 "hf_nds_time_filter" is put into the tree as an integral value; make it
one.

svn path=/trunk/; revision=6851
2003-01-06 02:10:54 +00:00
Guy Harris 59932f2722 Don't cast away constness, and fix variable and structure member
qualifiers as necessary to ensure that we don't have to.

"strcmp()", "strcasecmp()", and "memcmp()" don't return booleans; don't
test their results as if they did.

Use "guint8", not "guchar", for a pointer to (one or more) 8-bit bytes.

Update Michael Tuexen's e-mail address.

svn path=/trunk/; revision=6726
2002-12-02 23:43:30 +00:00
Guy Harris c9900e6390 From Greg Morris:
Various NDS dissector enhancements including NDS verb 0x07, and
	proper ping flags for NDS ping version 10 request.

	Updated error codes for several NCP reply packets.

	NDPS enhancements.

svn path=/trunk/; revision=6463
2002-10-21 18:56:52 +00:00
Guy Harris 4f471acc34 Fix some spelling errors.
svn path=/trunk/; revision=6410
2002-10-10 23:52:51 +00:00
Guy Harris cda87c4a51 Mark some fields as NDS fields.
svn path=/trunk/; revision=6409
2002-10-10 23:41:27 +00:00
Guy Harris 15c6ff4f2f Rename "ncp.nds_string" to "ncp.nds_tree_name", as it's not a generic
string, it's a tree name (as the field's display name suggests).

Get rid of the unused "ncp.nds_string_value" field.

Fix up the names of some fields, and use "proto_tree_add_uint()" rather
than "proto_tree_add_uint_format()" to add them to the protocol tree.

svn path=/trunk/; revision=6408
2002-10-10 23:32:01 +00:00
Jörg Mayer 011a6aafde Warning fixes for the ncp code by Greg Morris and J�rg Mayer.
svn path=/trunk/; revision=6338
2002-09-26 02:08:21 +00:00
Jörg Mayer 8c3a0d068f Greg Morris:
This update adds NCP 87/66.
Also add additional error codes, added hf_definition for super class
(NDS). Cleaned up some unused variables (Warnings when building
Ethereal). Fixed NCP type 0x9999 (server busy packets to echo
information to summary information), Added subtree format to NDS
dissector to cleanup display.

svn path=/trunk/; revision=6331
2002-09-25 00:37:01 +00:00
Gerald Combs c9cdfff342 From Greg Morris: More NDS decodes.
Fix a typo in get_string().

svn path=/trunk/; revision=6313
2002-09-22 15:46:42 +00:00
Guy Harris ab89806eab Give the NDS Verb field a value_string table, so you can filter on it
without having to know the numerical values for the verbs.

Use that table to convert the verb value to a verb name.

Fix indentation.

svn path=/trunk/; revision=6075
2002-08-23 22:44:57 +00:00
Gilbert Ramirez 34180e1bf2 From Greg Morris:
1. Secret Store Services (NCP 94) (ncp2222.py)
2. NMAS (NCP 92) (ncp2222.py)
3. NDS information in summary screen (packet-ncp.c & packet-ncp2222.inc)
4. Sever broadcast packets (NCP type 0xbbbb) to notify workstation to clear op-lock (packet-ncp.c)
5. Large Internet Packets (LIP) (packet-ncp.c)
6. Unicode Support. (unicode_to_string function in packet-ncp2222.inc & ncp2222.py)

svn path=/trunk/; revision=6069
2002-08-23 17:47:31 +00:00
Guy Harris 7167435205 Put in a note about the two SAP number lists in this file and in
"packet-ipx.c".

svn path=/trunk/; revision=5766
2002-06-26 07:29:41 +00:00
Gilbert Ramirez 707e40187a Update from Greg Morris.
1. Fixes for NCP decodes (87/6), (30), (87/32)
2. Endianness fixes for a number of decodes
3. Added error codes for return values not defined
4. Added most common SAP types under ObjectType table

svn path=/trunk/; revision=5758
2002-06-24 15:47:10 +00:00
Guy Harris b406d462b7 Add in names for NDS verbs, from a list found by a Web search that found
the source to an "ipxdump" utility from the Linux ncpfs package.

The NetworkAddress field in a 23/26 GetInternetAddress reply appears
to be big-endian; we assume it's big-endian in all messages.

The NetworkSocket field in that reply also appears to be big-endian;
it was already set up to be big-endian in other messages.

Put in comments noting other things seen in captures.

svn path=/trunk/; revision=5658
2002-06-09 01:36:43 +00:00
Gilbert Ramirez ec51177792 Fix the decode of NCP 8701.
svn path=/trunk/; revision=5651
2002-06-07 15:33:37 +00:00
Gilbert Ramirez 5b06245f6c Fix indentation of bitfield-checking code so that all variables
contained within a bitfield are properly registered.

svn path=/trunk/; revision=5565
2002-05-25 13:57:19 +00:00
Guy Harris d46b0ee96d Fix the bit value for "Last Access" in the ExtendedInfo bitmask, and add
the bit for "64 Bit File Sizes".

svn path=/trunk/; revision=5561
2002-05-25 11:18:15 +00:00
Gilbert Ramirez 3e082f277e Fix the definition of AllocateMode; it's only ever used as a 2-byte
value, so make it a val_string16 instead of a val_string8.

svn path=/trunk/; revision=5547
2002-05-24 11:45:51 +00:00
Gilbert Ramirez 1f22f0e277 Have bitfields check the type of bf_booleans inside of them, ensuring
they're the right width.
Fix the definitions of AccessRightsMask and JobControlFlagsWord,
and add AccessRightsMaskWord.

svn path=/trunk/; revision=5546
2002-05-24 11:38:22 +00:00
Gilbert Ramirez 5a4e9fa396 Update from Greg Morris.
Increase the max number of allowable req_cond_index's.

svn path=/trunk/; revision=5497
2002-05-17 23:17:22 +00:00
Gilbert Ramirez f58590ef4c DirectoryBase should be a uint32.
svn path=/trunk/; revision=5495
2002-05-17 05:00:50 +00:00
Guy Harris e1b2d0ef85 Move the #defines for NCP packet types to "packet-ncp-int.h", and use
them in "packet-ncp2222.inc".

The page at

	http://www.odyssea.com/whats_new/tcpipnet/tcpipnet.html

indicates that a positive ACK (0x9999) NCP packet has the same
completion code and connection status fields as a reply (0x3333) packet
(but nothing after them); hand "dissect_ncp_reply()" the packet type as
one of its arguments, and have it handle positive ACK packets as well as
reply packets.

It also indicates that bit 4 of the connection status indicates that the
server is unavailable, and the page at

	http://www.unm.edu/~network/presentations/course/appendix/appendix_f/tsld088.htm

speaks of that and of the significance of other bits; put a comment in
"ncp2222.py", before the "hf_ncp_connection_status" field, about that.

From looking at a capture, it appears that a "destroy service
connection" (0x5555) packet should be treated like a "create service
connection" (0x1111) packet and be handed to "dissect_ncp_request()".

Note that perhaps watchdog packets should be handled by
"dissect_ncp_reply()" as well.

svn path=/trunk/; revision=5489
2002-05-16 09:59:52 +00:00
Gilbert Ramirez 0df97ac2b6 For response packets, add a field showing the number of the frame
containing the request packet.

svn path=/trunk/; revision=5485
2002-05-16 03:31:34 +00:00
Guy Harris bd7e4ee0e6 Add a comment about the Name Space field and its possible use to
indicate the character set for strings.

svn path=/trunk/; revision=5471
2002-05-15 03:33:40 +00:00
Gilbert Ramirez 9a4f903835 Fix JobFileHandle and JobFileHandleLong.
svn path=/trunk/; revision=5467
2002-05-14 20:06:37 +00:00
Gilbert Ramirez cd88ae9e82 Change the name under which variables are hashed during processing.
svn path=/trunk/; revision=5458
2002-05-13 22:52:15 +00:00
Gilbert Ramirez 41cc7f0707 Merge the work in Novell_NCP_branch into the mainline code.
A little work still needs to be done on the new NCP dissector -- make
some of the COL_INFO texts more useful, handle a Unicode issue, and
modify some of the cases that use "request conditions".
But the NCP dissector as it stands is very usable now.

Note: I didn't merge in the PROTO_LENGTH_UNTIL_END macro... I wanted
to think about the various possible macros and review an email conversation
I had with Guy on the subject.

svn path=/trunk/; revision=5432
2002-05-09 23:50:34 +00:00