Commit graph

35 commits

Author SHA1 Message Date
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
Guy Harris
ee5ca25d31 Include files from the "epan" directory and subdirectories thereof with
"epan/..." pathnames, so as to avoid collisions with header files in any
of the directories in which we look (e.g., "proto.h", as some other
package has its own "proto.h" file which it installs in the top-level
include directory).

Don't add "-I" flags to search "epan", as that's no longer necessary
(and we want includes of "epan" headers to fail if the "epan/" is left
out, so that we don't re-introduce includes lacking "epan/").

svn path=/trunk/; revision=4586
2002-01-21 07:37:49 +00:00
Gilbert Ramirez
41f20b3449 From Guy Harris, after checking his Python code.
Some compilers don't mind zero-length arrays, but MSVC++ 6.0 does.

"ncp2222.py" was generating a zero-length "ett[]" array.  Make it generate
the "ett[]" array and the call to "proto_register_subtree_array()"
only if the list of items for "ett[]" is non-empty CVS:

svn path=/trunk/; revision=4529
2002-01-11 14:33:04 +00:00
Gilbert Ramirez
f7265ba975 Allow NCP types to define bitfields. In order to implement
sub-trees, I added new functions to ptvcursor:

	ptvcursor_add_no_advance()
	ptvcursor_tvbuff()
	ptvcursor_current_offset()

Note that no NCP type that actually uses bitfields has been
checked in yet.

svn path=/trunk/; revision=4509
2002-01-10 04:44:34 +00:00
Gilbert Ramirez
f14a6b8b91 Hopefully the last time I have to change my e-mail address.
svn path=/trunk/; revision=4199
2001-11-13 23:55:44 +00:00
Gilbert Ramirez
c70cdb456f Handle a few of the NCP types from the traces sent in by Pete,
<psailor@uswest.net>

svn path=/trunk/; revision=3617
2001-06-28 02:42:48 +00:00
Guy Harris
8412393197 From Joerg Mayer: explicitly fill in all members of a
"header_field_info" structure, including the ones that are later set by
the routines to register fields.

svn path=/trunk/; revision=3561
2001-06-18 02:18:27 +00:00
Guy Harris
b699efc451 Changes to structure initializations not to initialize some but not all
members, from Joerg Mayer.

svn path=/trunk/; revision=3501
2001-06-02 06:26:54 +00:00
Gilbert Ramirez
28ac31a634 Move #included C code from an *.h file to an *.inc file.
svn path=/trunk/; revision=2456
2000-09-22 16:37:50 +00:00
Gilbert Ramirez
066c4e8df9 Fix offset bug in func 0x1737, and added code to automatically check
offsets. Bug found by Marcel Cox <marcel.cox@myrealbox.com>

svn path=/trunk/; revision=2389
2000-09-06 04:50:51 +00:00
Gilbert Ramirez
0e3cb70212 Add FT_STRINGZ type. NCP dissector is only one that uses it right now.
Remove tvb_get_stringz from quake dissector and add tvb_get_nstringz,
tvb_get_nstringz0, and tvb_strnlen to tvbuff.c.

Remove multiple definitions of pntohl and friends from various places
(except for wiretap) and put into pint.h

Consolidate duplicate code for turning FT_* enums into strings (ala the
glossary).

svn path=/trunk/; revision=2382
2000-08-30 02:50:18 +00:00
Gilbert Ramirez
7c0421b146 Change FT_NSTRING_UINT8 to FT_UINT_STRING. The length parameter passed
to proto_tree_add_item() will indicate if the length of the string is
indicated by an UINT8, UINT16, UINT24, or UINT32.

Change NCP dissector-maker to produce FT_UINT_STRING.

Fix off-by-one in dissection of some NCP reply packets.

svn path=/trunk/; revision=2334
2000-08-22 06:38:32 +00:00
Laurent Deniel
02fc097017 - make-reg-dot
Do not assume that all dissectors are in the source directory.
This is the case for instance for packet-ncp2222.c which is
generated in the production directory (current).
This is particularly important when the generation is not
made in the source directory.

- ncp2222.py

Remove tabs in generated source to make the generated code
nicer and to make work the make-reg-dotc. Without that fix,
all NCP packet dissections dump core ...

svn path=/trunk/; revision=2241
2000-08-09 21:24:27 +00:00
Gilbert Ramirez
bda1231ebe Convert comments to docstrings.
svn path=/trunk/; revision=2229
2000-08-08 16:39:48 +00:00
Gilbert Ramirez
8ceb7d40f9 Add the re-write of the NetWare Core Protocol dissector. It's mostly
a framework for the dissector; of the more than 400 NCP packet types, only
a handful are defined. But this dissector framework is much better than
the previous one.

svn path=/trunk/; revision=2173
2000-07-28 20:03:59 +00:00