From: Valdis.Kletnieks@vt.edu (Valdis.Kletnieks at vt.edu)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How do we determine IP Address of interface the packet arrived on
Date: Wed, 24 Sep 2014 08:25:52 -0400 [thread overview]
Message-ID: <43252.1411561552@turing-police.cc.vt.edu> (raw)
In-Reply-To: Your message of "Wed, 24 Sep 2014 10:19:34 +0530." <CAHzLHWrsqOeCPaj_EZGOJLhrU=3K+tbQdmaeEdX8wrq1T=0Uzw@mail.gmail.com>
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
next prev parent reply other threads:[~2014-09-24 12:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-24 4:49 How do we determine IP Address of interface the packet arrived on Maninder Singh
2014-09-24 7:41 ` Vlad Dogaru
2014-09-24 12:03 ` 정현
2014-09-24 12:24 ` Valdis.Kletnieks at vt.edu
2014-09-24 14:08 ` John de la Garza
2014-09-24 16:22 ` Valdis.Kletnieks at vt.edu
2014-09-24 16:34 ` Jeff Haran
2014-09-25 3:14 ` maninder.tiet at gmail.com
2014-09-24 12:25 ` Valdis.Kletnieks at vt.edu [this message]
2014-09-25 3:20 ` Maninder Singh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43252.1411561552@turing-police.cc.vt.edu \
--to=valdis.kletnieks@vt.edu \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).