ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] wireshark

From: "Martin Corraine (mcorrain)" <mcorrain@xxxxxxxxx>
Date: Wed, 18 Jun 2008 08:56:36 -0400
Hello,
 
I need someone to clarify the purpose of the field registration. I've read the readme.developer but I'm still lost.
 
Thanks!,
martin
 
 
static hf_register_info hf[] = {
 
  { &hf_field_a,
  { "Field A", "proto.field_a", FT_UINT8, BASE_HEX, NULL,
   0xf0, "Field A represents Apples", HFILL }},
 
  { &hf_field_b,
  { "Field B", "proto.field_b", FT_UINT16, BASE_DEC, VALS(vs),
   0x0, "Field B represents Bananas", HFILL }}
 };