From: "Yakov Lerner" <iler.ml@gmail.com>
To: netdev@vger.kernel.org
Subject: NF_IP_POST_ROUTING hook question (2.4)
Date: Tue, 16 Oct 2007 14:03:39 +0200 [thread overview]
Message-ID: <f36b08ee0710160503i78a7f102y762002b40dac9845@mail.gmail.com> (raw)
In-Reply-To: <f36b08ee0710160328h3a45d18k41a32dcb8f6f3d4e@mail.gmail.com>
In the NF_IP_POST_ROUTING hook function, how can I
tell that packet originated locally vs was forwarded ?
I need to hook NF_IP_POST_ROUTING not NF_IP_FORWARD.
I'd expect that 'net_device *in' argument to be not NULL for
forwarded packets.
But what I see is NULL for both forwarded and locally sent packets
(in NF_IP_POST_ROUTING hook).
Which field of skb can tell me that packet originated locally ?
Yakov
parent reply other threads:[~2007-10-16 12:03 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <f36b08ee0710160328h3a45d18k41a32dcb8f6f3d4e@mail.gmail.com>]
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=f36b08ee0710160503i78a7f102y762002b40dac9845@mail.gmail.com \
--to=iler.ml@gmail.com \
--cc=netdev@vger.kernel.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).