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

Ethereal-dev: [Ethereal-dev] writing new dissector query

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "bunty " <bunty123_4@xxxxxxxxxxxxxx>
Date: 20 Mar 2005 19:08:27 -0000

 
hello all,
      I want to add my own protocol to ethereal. its contents are
struct myownhdr
{
     unsigned char *text;
     unsigned long int num;
};

for that i have written void proto_register_myip(void)
with Setup list of header fields  as

static hf_register_info hf[] = {
          { &hf_myip_text,
          { "Text",          "myip.text", FT_STRING, BASE_HEX, NULL, 0x0,
               "", HFILL }},
          { &hf_myip_num,
          { "num",          "myip.num", FT_UINT32, BASE_DEC, NULL, 0x0,
               "", HFILL }}
};


I want to confirm whether above is correct with respect to data types in my protocol structure and in defined setup list of header field.

regards,
bunty.