From mboxrd@z Thu Jan 1 00:00:00 1970 From: aoliva Subject: Re: How to know inside a match which chain is calling Date: Tue, 17 Oct 2006 14:21:14 +0200 Message-ID: <4534CABA.8030608@it.uc3m.es> References: <2FEE63312285CF428A8480B07AC1C359036187D0@CHN-SNR-MBX01.wipro.com> <4534BB76.7060500@it.uc3m.es> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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"; format="flowed" Cc: netfilter@lists.netfilter.org Thanks for the answers, I have not read ipt_state or contract but if Jozsef is saying it is not possible I will provide the info through the command line. Thanks a lot to all Regards Antonio Jozsef Kadlecsik wrote: > On Tue, 17 Oct 2006, aoliva wrote: > > >> Sorry for being unspecific. I have implemented a match, this match is called >> in the chains OUTPUT and INPUT. I would like to know a way of accessing an >> structure or calling a function or something similar in order to be able of >> doing a switch inside the match changing the behaviour if the match is called >> from OUTPUT or INPUT. >> > > You can't figure out the calling chain in a match: netfilter does not > provide the data. You have to pass the info as a command line option. > > Best regards, > Jozsef > - > E-mail : kadlec@blackhole.kfki.hu, kadlec@sunserv.kfki.hu > PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt > Address : KFKI Research Institute for Particle and Nuclear Physics > H-1525 Budapest 114, POB. 49, Hungary > >