Yes portablity is a concern, unfortunately my program will probably
be used on Linux more than FreeBSD, sigh.  I starting to read about
ioctl() and SIOCGIFADDR which appears to be portable (and a pain).

It looks like the Linux crowd is adding getifaddrs(3) as part of their
ipv6 effort, but I'd rather not depend on that.

>On Thu, Jul 18, 2002 at 09:52:14AM -0700, Chuck T. wrote:
> > Excellent, that's just what I was looking for!  Thanks.
> > >do a man getifaddrs(3)
> > >
> > >Bruce
>
>Just be aware that getifaddrs(3) (which does seem to be a quite useful
>function) is not very portable.
>It appears to be available on recent releases of all the *BSDs, but it
>does not seem to exist on Solaris or Linux.
>
>Now, if you don't need your program to be portable this is of course
>not a problem, but writing unportable code should be an informed
>decision rather than done out of ignorance.
>
>
>--
><Insert your favourite quote here.>
>Erik Trulsson
>[EMAIL PROTECTED]




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to