diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-02-14 11:28:55 -0500 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-02-14 11:28:55 -0500 |
commit | a2361c8735e07322023aedc36e4938b35af31eb0 (patch) | |
tree | 387f1dfc6d7735e850531c99c6355d1e593196ef /net | |
parent | 20b7975e5aefc7fd08b7f582f3901b1669725cd0 (diff) |
netfilter: xt_conntrack: warn about use in raw table
nfct happens to run after the raw table only.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/xt_conntrack.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/netfilter/xt_conntrack.c b/net/netfilter/xt_conntrack.c index 4ef1b63ad73f..2c0086a4751e 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) | |||
272 | { | 272 | { |
273 | int ret; | 273 | int ret; |
274 | 274 | ||
275 | if (strcmp(par->table, "raw") == 0) { | ||
276 | pr_info("state is undetermined at the time of raw table\n"); | ||
277 | return -EINVAL; | ||
278 | } | ||
279 | |||
275 | ret = nf_ct_l3proto_try_module_get(par->family); | 280 | ret = nf_ct_l3proto_try_module_get(par->family); |
276 | if (ret < 0) | 281 | if (ret < 0) |
277 | pr_info("cannot load conntrack support for proto=%u\n", | 282 | pr_info("cannot load conntrack support for proto=%u\n", |