]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ctnetlink: allow to set expectfn for expectations
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 5 Feb 2012 02:44:51 +0000 (03:44 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 7 Mar 2012 16:40:46 +0000 (17:40 +0100)
commit7842923ddf521c9a51ba38620544e14fcf8f2c91
treed7e4eff56efb23801a5ad0e4720efe13c68672ca
parentbc365fccc8113ece0558741869060e2fee64869e
netfilter: ctnetlink: allow to set expectfn for expectations

This patch allows you to set expectfn which is specifically used
by the NAT side of most of the existing conntrack helpers.

I have added a symbol map that uses a string as key to look up for
the function that is attached to the expectation object. This is
the best solution I came out with to solve this issue.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter/nfnetlink_conntrack.h
include/net/netfilter/nf_conntrack_helper.h
net/ipv4/netfilter/nf_nat_core.c
net/ipv4/netfilter/nf_nat_h323.c
net/ipv4/netfilter/nf_nat_sip.c
net/netfilter/nf_conntrack_helper.c
net/netfilter/nf_conntrack_netlink.c