Ethereal-dev: Re: [Ethereal-dev] Validating IPs?

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

From: Michael Tuexen <Michael.Tuexen@xxxxxxxxxxxxxxxxx>
Date: Thu, 27 Jan 2005 19:54:53 +0100
Hi Alex,

what do you mean by "represent an IP address"? All
2**32 possible values are valid IP addresses.

Best regards
Michael

On Jan 27, 2005, at 19:46 Uhr, Alex Kirk wrote:

Hello Again,

Sorry if this is coming to the wrong list -- please let me know if there's
somewhere else I should be sending this message.

Anyway, very quick question: is there a generally accepted way of determining
whether a sequence of four bytes in a tvbuff represent an IP address?
inet_aton() isn't helpful, since it looks for a dotted decimal string, and I'm not seeing much else I could use. I'm certain I'm not the first person to have come across this, so pointers to existing docs that I may be missing would be
just as welcome as a quick "use this function."

Thanks,
Alex Kirk

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev