Re: how to write a kernel module that will add an IP address to an Interface

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

 



Hi Jitendra...

On Wed, May 20, 2009 at 5:13 PM, Jitendra Pradhan
<jitendra.pradhan@xxxxxxxxxxxxxxxx> wrote:
> Hi,
>
>
>
> I am a new member in kernel newbies forum. As per my requirement, I would
> like to add an IP address to an interface through a kernel module.
>
>
>
> I will appreciate if I get some sample code or pointers for adding ip to an
> interface in kernel space.
>

Few greps brought me to this function:
 devinet_ioctl() in net/ipv4/devinet.c

check for the case of SIOCSIFADDR ioctl, around line 716.

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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