From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Theil Subject: Re: lib ipq Date: Wed, 22 Jun 2005 11:28:02 +0000 Message-ID: <33d4ee94050622042852fa791e@mail.gmail.com> References: Reply-To: Christian Theil Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org You could probably mark the packet using the nfmark field of the skb.=20 If you are doing this with iptables, use the -j MARK target to do this; something ala this: iptables -A OUTPUT -t mangle -i eth0 -j MARK --set-mark 42 Make sure you do this before you queue the packet to userspace. Regards, Christian Theil Have. If you need to do this from userspace with iptables probably On 6/21/05, Unix User wrote: > hi all > I use the lib ipq. I want to know how one can make the difference > between an outgoing and incoming packets with the lib ipq . I queued > incoming and outgoing packets . > i use the packet information to look at the tcp/ip headers and check the = ip > addresses to see if it is incoming or outgoing but it doesnt work if > the localhost send a packet at his self (ex : source adress: 127.0.0.1 > , dest adress: 127.0.0.1). >=20 > how can i make the difference ? >=20 > sorry for my bad english :) >=20 >