- allow -j CLASSIFY to be called from the mangle or vnet tables
authorMark Huang <mlhuang@cs.princeton.edu>
Mon, 20 Feb 2006 20:06:03 +0000 (20:06 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Mon, 20 Feb 2006 20:06:03 +0000 (20:06 +0000)
net/ipv4/netfilter/ipt_CLASSIFY.c

index 9842e6e..e56b45f 100644 (file)
@@ -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;