gabriel rosenkoetter on Sat, 22 Dec 2001 16:10:15 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] enumerating the interfaces on a host


Previously, I said:
> > See if it matches /.*:.*/?

On Fri, Dec 21, 2001 at 01:24:27PM -0500, Kyle R . Burton wrote:
> I was able to figure out a solution:  I've got access to the sockaddr_in for
> each of the interfaces, so I can test sin_family to see if it contains
> either the AF_INET or AF_INET6 flags.  If it's not AF_INET, I skip it.

Oh, yeah, that's a far better solution. ;^>

-- 
gabriel rosenkoetter
gr@eclipsed.net

Attachment: pgpLI4GfiDmNT.pgp
Description: PGP signature