[vserver] SIOCGIFCONF ioctl()

About this list Date view Thread view Subject view Author view Attachment view

From: Sam Vilain (sam_at_vilain.net)
Date: Thu Jul 18 2002 - 09:13:05 EDT


It looks like the SIOCGIFCONF ioctl needs some work for iproot; ie, if you
make a socket and then call the SIOCGIFCONF ioctl, you can still see all
the interfaces. There's a for loop in the dev_ifconf() function in
net/core/dev.c that looks like the one to change. Should be fairly
simple.

The program `dnsmasq' (http://thekelleys.org.uk/dnsmasq/doc.html) is an
example program that fetches the list of interfaces in this manner.

--
   Sam Vilain, sam_at_vilain.net     WWW: http://sam.vilain.net/
    7D74 2A09 B2D3 C30F F78E      GPG: http://sam.vilain.net/sam.asc
    278A A425 30A9 05B5 2F13

Real computer scientists don't write the user interfaces, they merely argue over what they should look like.


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Mon Aug 19 2002 - 12:01:01 EDT