aboutsummaryrefslogtreecommitdiffstats
path: root/packet-iscsi.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-11-04 02:50:21 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-11-04 02:50:21 +0000
commit55b8ed2189c337703378f35e88dd4e7e4c83eb2a (patch)
tree571378721f73038ee7db6c58e814cde559b8a647 /packet-iscsi.c
parent324d45387cea413ad58c6dbdb17c30fe6b4333b2 (diff)
Allow a dissector to register preferences that it no longer supports as
obsolete; we silently ignore attempts to set those in a preferences file, so that we don't spam the user with error messages caused by them having saved preferences in an earlier release that contained those preferences. Make the Diameter and iSCSI dissectors register obsolete preferences. Crash if some code tries to register a preferences module with a name that contains something other than lower-case ASCII letters, numbers, or underscores, or that has already been registered, or if some code tries to register a preference with a name that contains something other than lower-case ASCII letters, numbers, underscores, or periods, or that has already been registered, so that we don't put code like that in a release and have to shovel code into "prefs.c" to fix it up later. (The problem with multiple modules or preferences with the same name should be obvious; the problem with names with blanks, or upper-case letters, or punctuation, is that they're a pain to type on the command line.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4148 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-iscsi.c')
-rw-r--r--packet-iscsi.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/packet-iscsi.c b/packet-iscsi.c
index 812fb1c145..f6f86c419e 100644
--- a/packet-iscsi.c
+++ b/packet-iscsi.c
@@ -4,7 +4,7 @@
*
* Conforms to the protocol described in: draft-ietf-ips-iscsi-08.txt
*
- * $Id: packet-iscsi.c,v 1.16 2001/11/04 00:58:23 guy Exp $
+ * $Id: packet-iscsi.c,v 1.17 2001/11/04 02:50:19 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1767,6 +1767,13 @@ proto_register_iscsi(void)
"The size of a data digest (bytes)",
10,
&dataDigestSize);
+
+ /* Preference supported in older versions.
+ Register them as obsolete. */
+ prefs_register_obsolete_preference(iscsi_module,
+ "version_03_compatible");
+ prefs_register_obsolete_preference(iscsi_module,
+ "bogus_pdu_max_digest_padding");
}
}