finding ip address associated with net_device

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

 



Hi, 

I have a question about ipv4 in 2.4.0. When a IP
packet comes in to a router, I know the device it came
on (skb->dev). If I want to find the IP address
associated with this device, can i use address =
inet_select_addr (dev, 0, RT_SCOPE_LINK) defined in
net/ipv4/devinet.c ?

If this is right, is there an easier way?

If not, and in general, to find the IP address
associated with a struct net_device * dev, what do I
need to use?


TIA
Akshay


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[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