Assinging IP to interface in kernel module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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) ?

Or is there any other way I can do this ?

Thanks in adv,
Subhash

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux