Assigning 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, I call the function ic_dev_ioctl(SIOCSIFADDR,
struct ifreq *ir)..
However this doesn't seem to set the IP Addr....Any ideas why ? Or is
there any other way of setting the IP ?

Thanks,
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