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 /ncp2222.py | |
parent | e39ee24b148f9f680c2512a511ee90ae4cc372e9 (diff) | |
download | wireshark-e1b2d0ef8563bfc08b97281f0da1a2f66a7fadf4.tar.gz wireshark-e1b2d0ef8563bfc08b97281f0da1a2f66a7fadf4.tar.bz2 wireshark-e1b2d0ef8563bfc08b97281f0da1a2f66a7fadf4.zip |
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 'ncp2222.py')
-rwxr-xr-x | ncp2222.py | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/ncp2222.py b/ncp2222.py index 06c7edd51b..d945866712 100755 --- a/ncp2222.py +++ b/ncp2222.py @@ -24,7 +24,7 @@ http://developer.novell.com/ndk/doc/docui/index.htm#../ncp/ncp__enu/data/ for a badly-formatted HTML version of the same PDF. -$Id: ncp2222.py,v 1.19 2002/05/16 03:31:33 gram Exp $ +$Id: ncp2222.py,v 1.20 2002/05/16 09:59:51 guy Exp $ Copyright (c) 2000-2002 by Gilbert Ramirez <gram@alumni.rice.edu> @@ -5611,6 +5611,29 @@ proto_register_ncp2222(void) { &hf_ncp_completion_code, { "Completion Code", "ncp.completion_code", FT_UINT8, BASE_HEX, NULL, 0x0, "", HFILL }}, + /* + * XXX - the page at + * + * http://www.odyssea.com/whats_new/tcpipnet/tcpipnet.html + * + * says of the connection status "The Connection Code field may + * contain values that indicate the status of the client host to + * server connection. A value of 1 in the fourth bit of this data + * byte indicates that the server is unavailable (server was + * downed). + * + * The page at + * + * http://www.unm.edu/~network/presentations/course/appendix/appendix_f/tsld088.htm + * + * says that bit 0 is "bad service", bit 2 is "no connection + * available", bit 4 is "service down", and bit 6 is "server + * has a broadcast message waiting for the client". + * + * Should it be displayed in hex, and should those bits (and any + * other bits with significance) be displayed as bitfields + * underneath it? + */ { &hf_ncp_connection_status, { "Connection Status", "ncp.connection_status", FT_UINT8, BASE_DEC, NULL, 0x0, "", HFILL }}, |