From: "Yakov Lerner" <iler.ml@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: NF_IP_POST_ROUTING hook question (2.4)
Date: Tue, 16 Oct 2007 12:28:43 +0200 [thread overview]
Message-ID: <f36b08ee0710160328h3a45d18k41a32dcb8f6f3d4e@mail.gmail.com> (raw)
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
next reply other threads:[~2007-10-16 10:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-16 10:28 Yakov Lerner [this message]
2007-10-19 8:46 ` NF_IP_POST_ROUTING hook question (2.4) Jozef Hamar
2007-10-19 11:46 ` NF_IP_POST_ROUTING hook & sk_buff struct Garrick il Bardo
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=f36b08ee0710160328h3a45d18k41a32dcb8f6f3d4e@mail.gmail.com \
--to=iler.ml@gmail.com \
--cc=netfilter-devel@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).