get IP address from struct net_device

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

 



Hi:
  Is it possible to get IP address from structure net_device?
  I found net_device has a field : ip_ptr, then it can be changed type to 
in_device. However, in struct in_device, I saw something like ip_address: 
(__u32) ifa_list -> ifa_address. I wonder why it is a link list?
  Am I right? Or any other better methods to get IP address from structure 
net_device?

  Thanks for your help
  Best regards

  Yi-Wen 
 
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux