aboutsummaryrefslogtreecommitdiffstats
path: root/packet-lmp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-05-24 02:25:21 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-05-24 02:25:21 +0000
commit19543e35901862a33b72ca7db78717d3e2673d53 (patch)
treeea0dc09abb3bad519585a3c81e2c1592383a9bc7 /packet-lmp.c
parentd55e2cbd95c2ea0ea9d3e63ff40d3f1db8aabf49 (diff)
Have two strings in an enum_val_t - one that's a short string that is
convenient to put into a command line (no capital letters, no spaces to require quotes), and one that's a detailed description for use in the UI. Allow either of them in the preferences file or "-o" option; use the detailed description in the UI, and also use it when writing the preferences out, so that the preference will be readable by older versions of Ethereal (assuming the preference existed in that version). Update "README.developer" to give more detail about an enum_val_t (and to put the _t in), and to give a more detailed description of the "radio_buttons" argument to "prefs_register_enum_preference()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10982 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-lmp.c')
-rw-r--r--packet-lmp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-lmp.c b/packet-lmp.c
index 4fe2d3b7ab..5a6b248896 100644
--- a/packet-lmp.c
+++ b/packet-lmp.c
@@ -3,7 +3,7 @@
*
* (c) Copyright Ashok Narayanan <ashokn@cisco.com>
*
- * $Id: packet-lmp.c,v 1.20 2004/05/20 11:47:46 ulfl Exp $
+ * $Id: packet-lmp.c,v 1.21 2004/05/24 02:25:18 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -2264,10 +2264,10 @@ register_lmp_prefs (void)
{
module_t *lmp_module;
static enum_val_t lmp_ver[] = {
- {"draft-ietf-ccamp-lmp-09", LMP_VER_DRAFT_CCAMP_09},
- {"draft-ietf-ccamp-lmp-03", LMP_VER_DRAFT_CCAMP_03},
- {"draft-ietf-ccamp-lmp-02", LMP_VER_DRAFT_CCAMP_02},
- {NULL, -1}
+ {"draft-ietf-ccamp-lmp-09", "draft-ietf-ccamp-lmp-09", LMP_VER_DRAFT_CCAMP_09},
+ {"draft-ietf-ccamp-lmp-03", "draft-ietf-ccamp-lmp-03", LMP_VER_DRAFT_CCAMP_03},
+ {"draft-ietf-ccamp-lmp-02", "draft-ietf-ccamp-lmp-02", LMP_VER_DRAFT_CCAMP_02},
+ {NULL, NULL, -1}
};
lmp_module = prefs_register_protocol(proto_lmp, lmp_prefs_applied);