Basically, I've got a field in a quasi-fixed-length piece that can either be an
IP address, or a little-endian int that tells me how many IP address pairs
follow. What I want to be able to do is distinguish between that single IP
address and the int that indicates I have a bunch of IP addresses to process.
Alex Kirk
> 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
> >
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>