ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 11187] abnormal behavior for display filter auto-completio

Date: Thu, 14 May 2015 15:32:05 +0000

Comment # 9 on bug 11187 from
  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.