From: Jan Engelhardt Date: Mon, 14 Feb 2011 16:28:55 +0000 (+0100) Subject: netfilter: xt_conntrack: warn about use in raw table X-Git-Tag: v2.6.39-rc1~468^2~10^2~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a2361c8735e07322023aedc36e4938b35af31eb0;p=platform%2Fkernel%2Flinux-exynos.git netfilter: xt_conntrack: warn about use in raw table nfct happens to run after the raw table only. Signed-off-by: Jan Engelhardt Signed-off-by: Patrick McHardy --- diff --git a/net/netfilter/xt_conntrack.c b/net/netfilter/xt_conntrack.c index 4ef1b63..2c0086a 100644 --- a/net/netfilter/xt_conntrack.c +++ b/net/netfilter/xt_conntrack.c @@ -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",