projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20b7975
)
netfilter: xt_conntrack: warn about use in raw table
author
Jan Engelhardt
<jengelh@medozas.de>
Mon, 14 Feb 2011 16:28:55 +0000
(17:28 +0100)
committer
Patrick McHardy
<kaber@trash.net>
Mon, 14 Feb 2011 16:28:55 +0000
(17:28 +0100)
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>
net/netfilter/xt_conntrack.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netfilter/xt_conntrack.c
b/net/netfilter/xt_conntrack.c
index 4ef1b63ad73fc6d7ab7bec4675272ac18a058316..2c0086a4751e3a846d517236869d52a5ae6f548a 100644
(file)
--- 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",