aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fcoe.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-11-22 19:02:31 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-11-22 19:02:31 +0000
commit3b46983e9f76ab76f0246619c44df77e7d93a0a5 (patch)
tree3b921fe2d4dce8b878d406b4936491ce20b16538 /epan/dissectors/packet-fcoe.c
parent07ad3cce072c279bb860246fdaa3471b599e22ef (diff)
Make previously removed ethertype preference obsolete. For inclusion in
0.99.7 release. svn path=/trunk/; revision=23545
Diffstat (limited to 'epan/dissectors/packet-fcoe.c')
-rw-r--r--epan/dissectors/packet-fcoe.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/dissectors/packet-fcoe.c b/epan/dissectors/packet-fcoe.c
index 8cdf0f4a91..6ce4bc6ffd 100644
--- a/epan/dissectors/packet-fcoe.c
+++ b/epan/dissectors/packet-fcoe.c
@@ -95,6 +95,8 @@ static const value_string fcoe_sof_vals[] = {
{0, NULL}
};
+void proto_reg_handoff_fcoe(void);
+
static int proto_fcoe = -1;
static int hf_fcoe_ver = -1;
static int hf_fcoe_len = -1;
@@ -284,6 +286,8 @@ dissect_fcoe(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
void
proto_register_fcoe(void)
{
+ module_t *fcoe_module;
+
/* Setup list of header fields See Section 1.6.1 for details*/
static hf_register_info hf[] = {
{ &hf_fcoe_sof,
@@ -321,6 +325,10 @@ proto_register_fcoe(void)
* subtrees used */
proto_register_field_array(proto_fcoe, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+
+ fcoe_module = prefs_register_protocol(proto_fcoe, proto_reg_handoff_fcoe);
+
+ prefs_register_obsolete_preference(fcoe_module, "ethertype");
}
/*