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
>
>