Re: How to find the chain which calls the match
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hello,
aoliva a écrit :
Hi all, I am writing a match for iptables and I would like it to have a
different behaviour when it is called from different chains (e.g.
different behaviour when called from INPUT than OUTPUT) anyone knows how
to check in the match which is the chain that is calling it?
I do not have the answer to your question, but you could watch the code
of the NETMAP target which does destination NAT in the PREROUTING chain
and source NAT in the POSTROUTING chain. By the way, how does it behave
in the OUTPUT chain ?
[Index of Archives]
[Linux Netfilter Development]
[Linux Kernel Networking Development]
[Netem]
[Berkeley Packet Filter]
[Linux Kernel Development]
[Advanced Routing & Traffice Control]
[Bugtraq]