Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34f4c429 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[NETFILTER]: x_tables: enable compat translation for IPv6 matches/targets

parent 3bc3fe5e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -160,6 +160,11 @@ static struct xt_target connmark_tg_reg[] __read_mostly = {
		.destroy	= connmark_tg_destroy,
		.target		= connmark_tg,
		.targetsize	= sizeof(struct xt_connmark_target_info),
#ifdef CONFIG_COMPAT
		.compatsize	= sizeof(struct compat_xt_connmark_target_info),
		.compat_from_user = connmark_tg_compat_from_user,
		.compat_to_user	= connmark_tg_compat_to_user,
#endif
		.me		= THIS_MODULE
	},
};
+5 −0
Original line number Diff line number Diff line
@@ -126,6 +126,11 @@ static struct xt_match connmark_mt_reg[] __read_mostly = {
		.match		= connmark_mt,
		.destroy	= connmark_mt_destroy,
		.matchsize	= sizeof(struct xt_connmark_info),
#ifdef CONFIG_COMPAT
		.compatsize	= sizeof(struct compat_xt_connmark_info),
		.compat_from_user = connmark_mt_compat_from_user,
		.compat_to_user	= connmark_mt_compat_to_user,
#endif
		.me		= THIS_MODULE
	},
};
+5 −0
Original line number Diff line number Diff line
@@ -187,6 +187,11 @@ static struct xt_match limit_mt_reg[] __read_mostly = {
		.checkentry	= limit_mt_check,
		.match		= limit_mt,
		.matchsize	= sizeof(struct xt_rateinfo),
#ifdef CONFIG_COMPAT
		.compatsize	= sizeof(struct compat_xt_rateinfo),
		.compat_from_user = limit_mt_compat_from_user,
		.compat_to_user	= limit_mt_compat_to_user,
#endif
		.me		= THIS_MODULE,
	},
};
+5 −0
Original line number Diff line number Diff line
@@ -94,6 +94,11 @@ static struct xt_match mark_mt_reg[] __read_mostly = {
		.checkentry	= mark_mt_check,
		.match		= mark_mt,
		.matchsize	= sizeof(struct xt_mark_info),
#ifdef CONFIG_COMPAT
		.compatsize	= sizeof(struct compat_xt_mark_info),
		.compat_from_user = mark_mt_compat_from_user,
		.compat_to_user	= mark_mt_compat_to_user,
#endif
		.me		= THIS_MODULE,
	},
};