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

Wireshark-dev: Re: [Wireshark-dev] wireshark

From: "Gilbert Ramirez" <gram@xxxxxxxxxxxxxxx>
Date: Wed, 18 Jun 2008 19:25:32 +0530
It's needed so that the display filter engine knows about your fields.

--gilbert

On 6/18/08, Martin Corraine (mcorrain) <mcorrain@xxxxxxxxx> wrote:
>
>
> 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 }}
>  };
> _______________________________________________
>  Wireshark-dev mailing list
>  Wireshark-dev@xxxxxxxxxxxxx
>  https://wireshark.org/mailman/listinfo/wireshark-dev
>
>