Re: Can I use devinet_ioctl to assign an ip address to the interface in a kernel module

From: Thomas Graf
Date: Wed Nov 29 2006 - 09:12:31 EST


* Prashant kumar <laud.prashant@xxxxxxxxx> 2006-11-29 17:12
> You can use netlink interface to assign an ip address to any local
> interface. See the implemention of ip command (sources of iproute2)
> for reference.

Or you can use libnl which makes adding addresses trivial.
-
To unsubscribe from this list: 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