diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-05-16 09:59:52 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-05-16 09:59:52 +0000 |
commit | e1b2d0ef8563bfc08b97281f0da1a2f66a7fadf4 (patch) | |
tree | f7dd594451c6594189fae0cf16b7cd0045d61e66 /packet-ncp-int.h | |
parent | e39ee24b148f9f680c2512a511ee90ae4cc372e9 (diff) |
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
Diffstat (limited to 'packet-ncp-int.h')
-rw-r--r-- | packet-ncp-int.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/packet-ncp-int.h b/packet-ncp-int.h index d4eb2bdf59..604da5efc2 100644 --- a/packet-ncp-int.h +++ b/packet-ncp-int.h @@ -2,12 +2,11 @@ * Structures and functions for NetWare Core Protocol. * Gilbert Ramirez <gram@alumni.rice.edu> * - * $Id: packet-ncp-int.h,v 1.7 2002/05/09 23:50:25 gram Exp $ + * $Id: packet-ncp-int.h,v 1.8 2002/05/16 09:59:52 guy Exp $ * * Ethereal - Network traffic analyzer - * By Gerald Combs <gerald@zing.org> + * By Gerald Combs <gerald@ethereal.com> * Copyright 2000 Gerald Combs - * * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -85,10 +84,21 @@ typedef struct { void dissect_ncp_request(tvbuff_t*, packet_info*, guint16, guint8, guint16, proto_tree*); -void dissect_ncp_reply(tvbuff_t *, packet_info*, guint16, - guint8, proto_tree*); +void dissect_ncp_reply(tvbuff_t *, packet_info*, guint16, guint8, + guint16, proto_tree*); extern int proto_ncp; extern gint ett_ncp; +/* + * NCP packet types. + */ +#define NCP_ALLOCATE_SLOT 0x1111 +#define NCP_SERVICE_REQUEST 0x2222 +#define NCP_SERVICE_REPLY 0x3333 +#define NCP_WATCHDOG 0x3e3e +#define NCP_DEALLOCATE_SLOT 0x5555 +#define NCP_BURST_MODE_XFER 0x7777 +#define NCP_POSITIVE_ACK 0x9999 + #endif |