netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* NF_IP_POST_ROUTING hook question (2.4)
@ 2007-10-16 10:28 Yakov Lerner
  2007-10-19  8:46 ` Jozef Hamar
  0 siblings, 1 reply; 3+ messages in thread
From: Yakov Lerner @ 2007-10-16 10:28 UTC (permalink / raw)
  To: netfilter-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-19 11:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-16 10:28 NF_IP_POST_ROUTING hook question (2.4) Yakov Lerner
2007-10-19  8:46 ` Jozef Hamar
2007-10-19 11:46   ` NF_IP_POST_ROUTING hook & sk_buff struct Garrick il Bardo

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).