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

Commit a2361c87 authored by Jan Engelhardt's avatar Jan Engelhardt Committed by Patrick McHardy
Browse files

netfilter: xt_conntrack: warn about use in raw table



nfct happens to run after the raw table only.

Signed-off-by: default avatarJan Engelhardt <jengelh@medozas.de>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent 20b7975e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -272,6 +272,11 @@ static int conntrack_mt_check(const struct xt_mtchk_param *par)
{
	int ret;

	if (strcmp(par->table, "raw") == 0) {
		pr_info("state is undetermined at the time of raw table\n");
		return -EINVAL;
	}

	ret = nf_ct_l3proto_try_module_get(par->family);
	if (ret < 0)
		pr_info("cannot load conntrack support for proto=%u\n",