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

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


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
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 06 Nov 2002 - 07:03:41 GMT by hypermail 2.1.3