Re: ifa_list member of in_device structure

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

 



* sun (sun@phear.org) wrote:
> Hi!
> I know I'm probably being lazy or ignorant. But I'm a kernelnewbie.
> I've been looking at some sourcecode, and I was wondering why have 
> a member of in_device, ifa_list, which is a linked list of network
> parameters.
> I thought at first they might be aliases, but don't aliases get their
> own net_device structure etc?

The aliases are hung off the ifa_list.  So you have:
"eth0" -> net_device 
net_device -> in_device (via the ip_ptr)
in_device -> alias list by walking the ifa_list

walking the ifa_list might look like (from the ifa_label):

"eth0" -> "eth0:0" -> "eth0:1"

cheers,
-chris
--
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