From 8bb6572e21f759a2ec4bfb74329fdcb26aadadfd Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Mon, 20 Feb 2006 20:06:03 +0000 Subject: [PATCH] - allow -j CLASSIFY to be called from the mangle or vnet tables --- net/ipv4/netfilter/ipt_CLASSIFY.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/net/ipv4/netfilter/ipt_CLASSIFY.c b/net/ipv4/netfilter/ipt_CLASSIFY.c index 9842e6e23..e56b45f8f 100644 --- 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; -- 2.47.0