get IP address from struct net_device

From: blue (blue@wire.cs.nthu.edu.tw)
Date: Thu Jul 24 2003 - 01:23:51 EST


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
 
-
To unsubscribe from this list: 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



This archive was generated by hypermail 2b29 : Thu Jul 31 2003 - 22:00:01 EST