Wireshark-dev: Re: [Wireshark-dev] wireshark
From: "Gilbert Ramirez" <[email protected]>
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) <[email protected]> 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
>  [email protected]
>  https://wireshark.org/mailman/listinfo/wireshark-dev
>
>