How do we determine IP Address of interface the packet arrived on

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Wed Sep 24 08:25:52 EDT 2014


On Wed, 24 Sep 2014 10:19:34 +0530, Maninder Singh said:
> Hi,
>
> Each time a packet arrives at a router in a subnet during transit, I
> need to determine the IP address of the incoming interface of the
> router for that packet.

What problem are you trying to solve using the IP address of the interface,
given that a single interface can have multiple IP addresses?

(Also - are your writing your code to be IPv6-ready? :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140924/2f768d0f/attachment-0001.bin 


More information about the Kernelnewbies mailing list