Re: Getting interface list and details

Glynn Clements (glynn@sensei.co.uk)
Thu, 9 Dec 1999 12:20:31 +0100 (GMT--1:00)


Borek Lupomesky wrote:

> > > and details about network interfaces?
> >
> > The SIOCGIF* ioctl()s.
>
> But how do I create the socket to perform these ioctl's
> on? socket(AF_PACKET, SOCK_DGRAM, ...) ?

socket(AF_INET, SOCK_DGRAM, IPPROTO_IP);

-- 
Glynn Clements <glynn@sensei.co.uk>

- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.rutgers.edu