[<prev] [next>] [day] [month] [year] [list]
Message-ID: <f36b08ee0710160503i78a7f102y762002b40dac9845@mail.gmail.com>
Date: Tue, 16 Oct 2007 14:03:39 +0200
From: "Yakov Lerner" <iler.ml@...il.com>
To: netdev@...r.kernel.org
Subject: NF_IP_POST_ROUTING hook question (2.4)
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
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists