aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ncp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-05-11 18:58:02 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-05-11 18:58:02 +0000
commit28b719a3628286913b517a884fe53369aecc16e9 (patch)
tree739275caf1f64b3300b2547aeea2926683299a5d /packet-ncp.c
parenteec032c757b5e550fb847fdbfdfc503cc3fe3efa (diff)
Add a mechanism for registering "obsolete" preference modules, so that
if a dissector had preferences at one point but no longer does, it can register that fact, so that the old preferences in the preference file are silently ignored. Use that mechanism in the NCP dissector. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5446 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ncp.c')
-rw-r--r--packet-ncp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/packet-ncp.c b/packet-ncp.c
index 45077fffeb..d98b8a29ed 100644
--- a/packet-ncp.c
+++ b/packet-ncp.c
@@ -3,7 +3,7 @@
* Gilbert Ramirez <gram@alumni.rice.edu>
* Modified to allow NCP over TCP/IP decodes by James Coe <jammer@cin.net>
*
- * $Id: packet-ncp.c,v 1.56 2002/05/09 23:50:25 gram Exp $
+ * $Id: packet-ncp.c,v 1.57 2002/05/11 18:58:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -258,10 +258,16 @@ proto_register_ncp(void)
static gint *ett[] = {
&ett_ncp,
};
+ module_t *ncp_module;
proto_ncp = proto_register_protocol("NetWare Core Protocol", "NCP", "ncp");
proto_register_field_array(proto_ncp, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+
+ /* Register an obsolete configuration option for what used to be the
+ initial size of the NCP hash. */
+ ncp_module = prefs_register_protocol_obsolete(proto_ncp);
+ prefs_register_obsolete_preference(ncp_module, "initial_hash_size");
}
void