* Routines for NetWare Core Protocol
* Gilbert Ramirez <gram@verdict.uthscsa.edu>
*
- * $Id: packet-ncp.c,v 1.16 1999/07/07 22:51:48 gram Exp $
+ * $Id: packet-ncp.c,v 1.19 1999/09/02 23:17:57 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
#include "packet-ipx.h"
#include "packet-ncp.h"
+static int proto_ncp = -1;
+
struct svc_record;
static void
}
void
-dissect_ncp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree,
- int max_data) {
+dissect_ncp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
proto_tree *ncp_tree = NULL;
proto_item *ti;
nw_ncp_type = header.type;
if (tree) {
- ti = proto_tree_add_text(tree, offset, END_OF_FRAME,
- "NetWare Core Protocol");
+ ti = proto_tree_add_item(tree, proto_ncp, offset, END_OF_FRAME, NULL);
ncp_tree = proto_item_add_subtree(ti, ETT_NCP);
proto_tree_add_text(ncp_tree, offset, 2,
break;
default:
- /* nothing */
+ ; /* nothing */
+ break;
}
field_offset += field_length;
rec++;
return "I don't know how to parse this completion code. Please send this packet trace to Gilbert Ramirez <gram@xiexie.org> for analysis";
}
}
+
+void
+proto_register_ncp(void)
+{
+/* static hf_register_info hf[] = {
+ { &variable,
+ { "Name", "ncp.abbreviation", TYPE, VALS_POINTER }},
+ };*/
+
+ proto_ncp = proto_register_protocol("NetWare Core Protocol", "ncp");
+ /* proto_register_field_array(proto_ncp, hf, array_length(hf));*/
+}