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. Thanks, Prashant On 11/29/06, prajakta choudhari <prajaktachoudhari@xxxxxxxxx> wrote:
Hi Christoph: I am very new to this programming. Can u suggest any other way , i can use to assign an ip address to any local interface Thank you in advance. On 11/29/06, Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote: > On Wed, Nov 29, 2006 at 03:41:24PM +0530, prajakta choudhari wrote: > > Hi all: > > Can I use devinet_ioctl to assign an ip address to the interface in a > > kernel module > > No, you can't. > -- ------------------------------------- ------------------------------------- Regards, Prajakta Choudhari, Project Engineer, Networking and Internet Software Group, CDAC,Pune Email:prajaktac@xxxxxxx Mobile:9890302701 - 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
- 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