Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

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

From: "Abhik Sarkar" <sarkar.abhik@xxxxxxxxx>
Date: Wed, 18 Jun 2008 18:11:42 +0400
I believe the data type provided by the field registration it is also
used by various functions like (but not limited to):
 - tshark when it is converting a capture to some text based format (like PDML).
 - column sorting

HTH
Abhik.

On Wed, Jun 18, 2008 at 5:55 PM, Gilbert Ramirez <gram@xxxxxxxxxxxxxxx> wrote:
> 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
>>
>>
> _______________________________________________
> Wireshark-dev mailing list
> Wireshark-dev@xxxxxxxxxxxxx
> https://wireshark.org/mailman/listinfo/wireshark-dev
>