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

Registering variables in a dissector code??

0

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

sid
45192021
accept rate: 0%


One Answer:

0

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 ♦
11.7k16101
accept rate: 14%