This is a static archive of our old Q&A Site. Please post any new questions and answers at

Registering variables in a dissector code??


I have a field in my protocol like this:

IP (which is a set of 32 IP addresses). So should I use an array to display the 32 IP addresses or something else?

If I use the array, how do I register my array in the dissector's proto_register function??

Please help..!!

asked 21 Jul '11, 23:41

sid's gravatar image

accept rate: 0%

One Answer:


Define one field with FT_IPv4, then reuse that for all items in the sequence of your protocol message.

answered 22 Jul '11, 04:36

Jaap's gravatar image

Jaap ♦
accept rate: 14%