* $Id$
*
* Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@ethereal.com>
+ * By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* Based on packet-fcip.c, Copyright 2001, Dinesh G Dutt (ddutt@cisco.com)
{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;
if (version != 0)
ver = ep_strdup_printf(ver, "ver %d ", version);
}
- if (check_col(pinfo->cinfo, COL_PROTOCOL))
- col_set_str(pinfo->cinfo, COL_PROTOCOL, "FCoE");
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "FCoE");
crc_offset = header_len + frame_len;
eof_offset = crc_offset + 4;
bytes_remaining = tvb_length_remaining(tvb, header_len);
static hf_register_info hf[] = {
{ &hf_fcoe_sof,
{"SOF", "fcoe.sof", FT_UINT8, BASE_HEX, VALS(&fcoe_sof_vals), 0,
- "", HFILL}},
+ NULL, HFILL}},
{ &hf_fcoe_eof,
{"EOF", "fcoe.eof", FT_UINT8, BASE_HEX, VALS(&fcoe_eof_vals), 0,
- "", HFILL}},
+ NULL, HFILL}},
{ &hf_fcoe_ver,
- {"Version", "fcoe.ver", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL}},
+ {"Version", "fcoe.ver", FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL}},
{ &hf_fcoe_len,
{"Frame length", "fcoe.len", FT_UINT32,
- BASE_DEC, NULL, 0, "", HFILL}},
+ BASE_DEC, NULL, 0, NULL, HFILL}},
{ &hf_fcoe_crc,
- {"CRC", "fcoe.crc", FT_UINT32, BASE_HEX, NULL, 0, "", HFILL}},
+ {"CRC", "fcoe.crc", FT_UINT32, BASE_HEX, NULL, 0, NULL, HFILL}},
{ &hf_fcoe_crc_good,
- {"CRC good", "fcoe.crc_good", FT_BOOLEAN, BASE_NONE, NULL, 0,
- "True: CRC matches packet content; "
- "False: doesn't match or not checked.", HFILL }},
+ {"CRC good", "fcoe.crc_good", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
+ "True: CRC matches packet content; False: doesn't match or not checked.", HFILL }},
{ &hf_fcoe_crc_bad,
- {"CRC bad", "fcoe.crc_bad", FT_BOOLEAN, BASE_NONE, NULL, 0,
- "True: CRC doesn't match packet content; "
- "False: matches or not checked.", HFILL }}
+ {"CRC bad", "fcoe.crc_bad", FT_BOOLEAN, BASE_NONE, NULL, 0x0,
+ "True: CRC doesn't match packet content; False: matches or not checked.", HFILL }}
};
static gint *ett[] = {
&ett_fcoe,
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);
+ fcoe_module = prefs_register_protocol(proto_fcoe, NULL);
prefs_register_obsolete_preference(fcoe_module, "ethertype");
}