Comment # 9
on bug 11187
from Xiaochuan Sun
I resolved the auto-completion issue of "qct" protocol. The abbrev of hfinfo
should be consistent with filter_name of protocol_t for wireshark QT. It seems
only wireshark QT has this restriction.
void proto_register_qualcomm(void)
{
static hf_register_info hf[] = {
{ &hf_qualcomm_record,
{ "Record", "qct.record",
FT_STRING, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_qualcomm_info,
{ "Info", "qct.info",
FT_STRING, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_qualcomm_logcode,
{ "logcode", "qct.logcode",
FT_UINT16, BASE_HEX,
NULL, 0x0,
NULL, HFILL }
},
};
/* Setup protocol subtree array */
static gint *ett[] = {
&ett_qualcomm,
};
proto_qualcomm = proto_register_protocol (
"Qualcomm Text Protocol", /* name */
"QUALCOMM", /* short name */
//"qualcomm", //changed to "qct"
"qct" /* abbrev */
);
proto_register_field_array(proto_qualcomm, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
//register_dissector("qualcomm", dissect_qualcomm, proto_qualcomm);
register_dissector("qct", dissect_qualcomm, proto_qualcomm);
}
You are receiving this mail because:
- You are watching all bug changes.