diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2014-12-29 22:28:17 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2015-01-06 08:25:09 +0100 |
commit | f1d7b4b97f82c5fb912e0857818cbec07d264b23 (patch) | |
tree | 034c4d665ccd1c1e1ae64b066e2c65580547619d /kernel/net/netfilter/xt_set.c | |
parent | f5faf94ec994b470ad4a23daa0218a75c5003f46 (diff) |
More compatibility checking and simplifications
Try hard to keep the support of the 2.6.32 kernel tree and
simplify the code with self-referential macros.
Diffstat (limited to 'kernel/net/netfilter/xt_set.c')
-rw-r--r-- | kernel/net/netfilter/xt_set.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/net/netfilter/xt_set.c b/kernel/net/netfilter/xt_set.c index 9953a7b..6e2ab11 100644 --- a/kernel/net/netfilter/xt_set.c +++ b/kernel/net/netfilter/xt_set.c @@ -486,7 +486,8 @@ set_target_v3(struct sk_buff *skb, const struct xt_action_param *par) map_opt.cmdflags |= info->flags & (IPSET_FLAG_MAP_SKBMARK | IPSET_FLAG_MAP_SKBPRIO | IPSET_FLAG_MAP_SKBQUEUE); - ret = match_set(info->map_set.index, skb, par, &map_opt, + ret = match_set(info->map_set.index, skb, CAST_TO_MATCH par, + &map_opt, info->map_set.flags & IPSET_INV_MATCH); if (!ret) return XT_CONTINUE; |