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

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

From: Alex Kirk <alex@xxxxxxxxxxxx>
Date: Thu, 27 Jan 2005 13:46:43 -0500
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