Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

save fields with different mask

hi. in my dissector, i have 2 fields with different mask, so i define 2 fields as below:

{ &hf_myproto_name1, { "Name", "myproto.name1", FT_UINT8, BASE_DEC, NULL, 0xFF, NULL, HFILL } },
{ &hf_myproto_name2, { "Name", "myproto.name2", FT_UINT8, BASE_DEC, NULL, 0x0F, NULL, HFILL } },

is it possible that i define these two fields as an unique field ?

save fields with different mask

hi. in my dissector, i have 2 fields with different mask, so i define 2 fields as below:

{ &hf_myproto_name1, { "Name", "myproto.name1", FT_UINT8, BASE_DEC, NULL, 0xFF, NULL, HFILL } },
{ &hf_myproto_name2, { "Name", "myproto.name2", FT_UINT8, BASE_DEC, NULL, 0x0F, NULL, HFILL } },

is it possible that i define these two fields as an unique field ?

save fields with different maskmask as an unique field

hi. in my dissector, i have 2 fields with different mask, so i define 2 fields as below:

{ &hf_myproto_name1, { "Name", "myproto.name1", FT_UINT8, FT_UINT16, BASE_DEC, NULL, 0xFF, 0xFFFE, NULL, HFILL } },
{ &hf_myproto_name2, { "Name", "myproto.name2", FT_UINT8, BASE_DEC, NULL, 0x0F, NULL, HFILL } },

is it possible that i define these two fields as an unique field ?

save fields with different mask as an unique field

hi. in my dissector, i have 2 fields with different mask, so i define 2 fields as below:

{ &hf_myproto_name1, { "Name", "myproto.name1", FT_UINT16, BASE_DEC, NULL, 0xFFFE, NULL, HFILL } },
{ &hf_myproto_name2, { "Name", "myproto.name2", FT_UINT8, BASE_DEC, NULL, 0x0F, NULL, HFILL } },

is it possible that i define these two fields as an unique field ?? (i want to save these two fields as an unique in hf_register_info)