aboutsummaryrefslogtreecommitdiffstats
path: root/prefs.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-01-15 10:01:21 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-01-15 10:01:21 +0000
commitc25fe281863dcdeed508799f3d328df7f4120a5e (patch)
treec3abba1472451fe53306defcccebe2671a8d4798 /prefs.c
parent7a0b8d9261cda03a720d24fba990ac153d867f50 (diff)
Fix some preferences to eliminate the extra copy of the protocol name at
the beginning, and to use underscores rather than periods where the preference's name really isn't part of a hierarchical namespace. Use "%u" rather than "%d" to print unsigned quantities. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4543 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'prefs.c')
-rw-r--r--prefs.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/prefs.c b/prefs.c
index a09723259c..648df882d4 100644
--- a/prefs.c
+++ b/prefs.c
@@ -1,7 +1,7 @@
/* prefs.c
* Routines for handling preferences
*
- * $Id: prefs.c,v 1.77 2002/01/13 20:35:08 guy Exp $
+ * $Id: prefs.c,v 1.78 2002/01/15 10:01:21 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1447,6 +1447,20 @@ set_pref(gchar *pref_name, gchar *value)
/* Otherwise it's from the command line, and we don't bother
mapping it. */
}
+ } else if (strncmp(pref_name, "smb.", 4) == 0) {
+ /* Handle old names for SMB preferences. */
+ if (strcmp(dotp, "smb.trans.reassembly") == 0)
+ pref = find_preference(module, "trans_reassembly");
+ else if (strcmp(dotp, "smb.dcerpc.reassembly") == 0)
+ pref = find_preference(module, "dcerpc_reassembly");
+ } else if (strncmp(pref_name, "ndmp.", 5) == 0) {
+ /* Handle old names for NDMP preferences. */
+ if (strcmp(dotp, "ndmp.desegment") == 0)
+ pref = find_preference(module, "desegment");
+ } else if (strncmp(pref_name, "diameter.", 9) == 0) {
+ /* Handle old names for Diameter preferences. */
+ if (strcmp(dotp, "diameter.desegment") == 0)
+ pref = find_preference(module, "desegment");
}
}
if (pref == NULL)