Baruch Even wrote:

>
>IOCTLs? inside the kernel? It might be possible but you are in the
>kernel, so you have access to the kernel data structures...
>
>
>  
>
Indeed a bad idea to use an ioctl, but consulting the ioctl
implementation might come in handy.
ifconfig uses devint_ioctl which is located in
/usr/src/linux/net/ipv4/devint.c .
The ioctl also deals with multiple card addresses (i.e. eth0:1), setting
params etc'.

Hillel.




=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to