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@xxxxxxxxxxxxxxxxx, kadlec@xxxxxxxxxxxxxxx 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