netfilter: xtables: make use of caller family rather than match family
authorJan Engelhardt <jengelh@medozas.de>
Wed, 17 Mar 2010 23:44:52 +0000 (00:44 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 18 Mar 2010 13:20:06 +0000 (14:20 +0100)
commitaa5fa3185791aac71c9172d4fda3e8729164b5d1
treeed49f5c01d7bdb0e994243c3a0888b4a54bb6981
parent115bc8f2874078e6ac78d88652a91b58447d5f4d
netfilter: xtables: make use of caller family rather than match family

The matches can have .family = NFPROTO_UNSPEC, and though that is not
the case for the touched modules, it seems better to just use the
nfproto from the caller.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
net/netfilter/xt_dscp.c
net/netfilter/xt_hashlimit.c
net/netfilter/xt_policy.c
net/netfilter/xt_recent.c
net/netfilter/xt_state.c