git://git.onelab.eu
/
linux-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92e3e29
)
- allow -j CLASSIFY to be called from the mangle or vnet tables
author
Mark Huang
<mlhuang@cs.princeton.edu>
Mon, 20 Feb 2006 20:06:03 +0000
(20:06 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Mon, 20 Feb 2006 20:06:03 +0000
(20:06 +0000)
net/ipv4/netfilter/ipt_CLASSIFY.c
patch
|
blob
|
history
diff --git
a/net/ipv4/netfilter/ipt_CLASSIFY.c
b/net/ipv4/netfilter/ipt_CLASSIFY.c
index
9842e6e
..
e56b45f
100644
(file)
--- a/
net/ipv4/netfilter/ipt_CLASSIFY.c
+++ b/
net/ipv4/netfilter/ipt_CLASSIFY.c
@@
-62,10
+62,16
@@
checkentry(const char *tablename,
}
if (strcmp(tablename, "mangle") != 0) {
+#if defined(CONFIG_VNET) || defined(CONFIG_VNET_MODULE)
+ if (strcmp(tablename, "vnet") != 0) {
+#endif
printk(KERN_ERR "CLASSIFY: can only be called from "
"\"mangle\" table, not \"%s\".\n",
tablename);
return 0;
+#if defined(CONFIG_VNET) || defined(CONFIG_VNET_MODULE)
+ }
+#endif
}
return 1;