netfilter: xtables: move extension arguments into compound structure (6/6)
This patch does this for target extensions' destroy functions. Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
committed by
Patrick McHardy
parent
af5d6dc200
commit
a2df1648ba
@@ -146,10 +146,9 @@ static bool connmark_tg_check(const struct xt_tgchk_param *par)
|
||||
return true;
|
||||
}
|
||||
|
||||
static void
|
||||
connmark_tg_destroy(const struct xt_target *target, void *targinfo)
|
||||
static void connmark_tg_destroy(const struct xt_tgdtor_param *par)
|
||||
{
|
||||
nf_ct_l3proto_module_put(target->family);
|
||||
nf_ct_l3proto_module_put(par->target->family);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_COMPAT
|
||||
|
@@ -114,10 +114,9 @@ static bool connsecmark_tg_check(const struct xt_tgchk_param *par)
|
||||
return true;
|
||||
}
|
||||
|
||||
static void
|
||||
connsecmark_tg_destroy(const struct xt_target *target, void *targinfo)
|
||||
static void connsecmark_tg_destroy(const struct xt_tgdtor_param *par)
|
||||
{
|
||||
nf_ct_l3proto_module_put(target->family);
|
||||
nf_ct_l3proto_module_put(par->target->family);
|
||||
}
|
||||
|
||||
static struct xt_target connsecmark_tg_reg[] __read_mostly = {
|
||||
|
@@ -139,10 +139,9 @@ err1:
|
||||
return false;
|
||||
}
|
||||
|
||||
static void xt_rateest_tg_destroy(const struct xt_target *target,
|
||||
void *targinfo)
|
||||
static void xt_rateest_tg_destroy(const struct xt_tgdtor_param *par)
|
||||
{
|
||||
struct xt_rateest_target_info *info = targinfo;
|
||||
struct xt_rateest_target_info *info = par->targinfo;
|
||||
|
||||
xt_rateest_put(info->est);
|
||||
}
|
||||
|
@@ -113,7 +113,7 @@ static bool secmark_tg_check(const struct xt_tgchk_param *par)
|
||||
return true;
|
||||
}
|
||||
|
||||
static void secmark_tg_destroy(const struct xt_target *target, void *targinfo)
|
||||
static void secmark_tg_destroy(const struct xt_tgdtor_param *par)
|
||||
{
|
||||
switch (mode) {
|
||||
case SECMARK_MODE_SEL:
|
||||
|
Reference in New Issue
Block a user