In one of my protocols I receive an integer which represents an ip address. Like this :
180619876... (which means) = AC40A64 = 10.196.10.1
So I would like to have this integer display the ip address. That is, from 180619876 to 10.196.10.1
Is this possible, is there some easy way?
Thank you in advance,
asked 17 Jan '13, 07:38
if it's a custom protocol, you need a dissector anyway. Within that code you can do whatever your want, including any number format conversion.
Some information how to develop a dissector.
answered 17 Jan '13, 11:03
Kurt Knochner ♦
edited 17 Jan '13, 11:04
Is that an integer represented as 4 consecutive bytes (i.e., a binary integer), or is it an integer represented as some number of ASCII characters giving a decimal value? If it's just a binary integer, you could treat it in your dissector as being an IPv4 address type rather than an integer type, the same way a lot of other dissectors (such as, well, the IPv4 dissector) do.
answered 17 Jan '13, 12:49
Guy Harris ♦♦