Ethereal-dev: Re: Re: [Ethereal-dev] Simple C datatype query

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "bunty " <bunty123_4@xxxxxxxxxxxxxx>
Date: 30 Mar 2005 07:13:51 -0000

 

Hello sir,

>If you want to add a string (FT_STRING), use BASE_NONE and the appropriate proto_add_ function.
>
            Actually i am confused here on whether to use FT_STRING or FT_STRINGZ as my string is fix which is 8 bytes( that mean its NULL terminated) so should i use FT_STRINGZ or its ok to use FT_STRING.
         
            Also what about initializtion of string field in my case i did
static unsigned char* hf_myip_text = "NULL";
        what is right thing to assign string?

>You'll find a detailed description of the field types in the file doc/README.developer.

        I read that but i found most explanation on integet types with its example but not for string data type.

regards,
bunty.