netfilter: xtables: add struct xt_mtchk_param::net
authorAlexey Dobriyan <adobriyan@gmail.com>
Mon, 18 Jan 2010 07:21:13 +0000 (08:21 +0100)
committerPatrick McHardy <kaber@trash.net>
Mon, 18 Jan 2010 07:21:13 +0000 (08:21 +0100)
commita83d8e8d099fc373a5ca7112ad08c553bb2c180f
tree19b7bbeb34ae718f5bac20d1ab42d6280bb20665
parenta1004d8e3d463012f231bab104325ecb15637f78
netfilter: xtables: add struct xt_mtchk_param::net

Some complex match modules (like xt_hashlimit/xt_recent) want netns
information at constructor and destructor time. We propably can play
games at match destruction time, because netns can be passed in object,
but I think it's cleaner to explicitly pass netns.

Add ->net, make sure it's set from ebtables/iptables/ip6tables code.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter/x_tables.h
net/bridge/netfilter/ebtables.c
net/ipv4/netfilter/ip_tables.c
net/ipv6/netfilter/ip6_tables.c