At 02:01 AM 11/24/2004 -0800, you wrote:
Hi *,
If I want to assign an IP address to an ethernet interface (say eth0)
in a kernel module,
can I directly call one of these functions defined in net/ipv4/devinet.c
inet_ioctl(SIOCSIFADDR, (struct ifreq*)ifq) or
devinet_ioctl(SIOCSIFADDR, (struct ifreq*)ifq) ?
You could, but not directly. take a look at ic_dev_ioctl() in
net/ipv4/ipconfig.c.
Or is there any other way I can do this ?
Thanks in adv,
Subhash
--Ravi
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html