void proto_register_hpteam(void) { static hf_register_info hf_pid = { &hf_llc_hpteam_pid, { "PID", "llc.hpteam_pid", FT_UINT16, BASE_HEX, VALS(hpteam_pid_vals), 0x0, NULL, HFILL } }; static hf_register_info hf_data[] = { {&hf_hpteam, { "Proprietary Data", "hpteam.data", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL } } }; static gint *ett[] = { &ett_hpteam }; proto_hpteam = proto_register_protocol ("HP NIC Teaming Heartbeat", "HPTEAM", "hpteam"); /*Tied into the LLC dissector so register the OUI with LLC*/ llc_add_oui(OUI_HP_2, "llc.hpteam_pid", "LLC Hewlett Packard OUI PID", &hf_pid); proto_register_field_array(proto_hpteam, hf_data, array_length(hf_data)); proto_register_subtree_array(ett, array_length(ett)); register_dissector("hpteam", dissect_hpteam, proto_hpteam); }
/* * NOTE: there's no dissector here, just registration routines to set * up the dissector table for the Force10 OUI. */ void proto_register_force10_oui(void) { static hf_register_info hf[] = { { &hf_llc_force10_pid, { "PID", "llc.force10_pid", FT_UINT16, BASE_HEX, VALS(force10_pid_vals), 0x0, NULL, HFILL } } }; llc_add_oui(OUI_FORCE10, "llc.force10_pid", "LLC FORCE10 OUI PID", hf); }
/* * NOTE: there's no dissector here, just registration routines to set * up the dissector table for the Nortel OUI. */ void proto_register_nortel_oui(void) { static hf_register_info hf[] = { { &hf_llc_nortel_pid, { "PID", "llc.nortel_pid", FT_UINT16, BASE_HEX, VALS(nortel_pid_vals), 0x0, NULL, HFILL } } }; llc_add_oui(OUI_NORTEL, "llc.nortel_pid", "Nortel OUI PID", hf); }
/* * NOTE: there's no dissector here, just registration routines to set * up the dissector table for the IANA OUI. */ void proto_register_iana_oui(void) { static hf_register_info hf[] = { { &hf_llc_iana_pid, { "PID", "llc.iana_pid", FT_UINT16, BASE_HEX, VALS(iana_pid_vals), 0x0, NULL, HFILL } } }; llc_add_oui(OUI_IANA, "llc.iana_pid", "IANA OUI PID", hf); }
/* * NOTE: there's no dissector here, just registration routines to set * up the dissector table for the Cisco OUI. */ void proto_register_cisco_oui(void) { static hf_register_info hf[] = { { &hf_llc_cisco_pid, { "PID", "llc.cisco_pid", FT_UINT16, BASE_HEX, VALS(cisco_pid_vals), 0x0, "Protocol ID", HFILL } } }; llc_add_oui(OUI_CISCO, "llc.cisco_pid", "LLC Cisco OUI PID", hf, -1); }
void proto_register_cimetrics(void) { static hf_register_info hf[] = { { &hf_cimetrics_mstp_timer, { "Delta Time", "cimetrics.mstp_timer", FT_UINT16, BASE_DEC, NULL, 0, "Milliseconds", HFILL } }, { &hf_cimetrics_mstp_value, { "8-bit value", "cimetrics.mstp_value", FT_UINT8, BASE_DEC, NULL, 0, "value", HFILL } } }; static hf_register_info hf2[] = { { &hf_llc_cimetrics_pid, { "PID", "llc.cimetrics_pid", FT_UINT16, BASE_HEX, VALS(cimetrics_pid_vals), 0, NULL, HFILL } } }; static gint *ett[] = { &ett_cimetrics_mstp }; proto_cimetrics_mstp = proto_register_protocol("Cimetrics MS/TP", "Cimetrics MS/TP", "cimetrics"); proto_register_field_array(proto_cimetrics_mstp, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); register_dissector("cimetrics", dissect_cimetrics_mstp, proto_cimetrics_mstp); llc_add_oui(OUI_CIMETRICS, "llc.cimetrics_pid", "Cimetrics OUI PID", hf2); }