mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
10db9069eb
Florian Westphal reported that the removal of the NOTRACK target
(9655050
netfilter: remove xt_NOTRACK) is breaking some existing
setups.
That removal was scheduled for removal since long time ago as
described in Documentation/feature-removal-schedule.txt
What: xt_NOTRACK
Files: net/netfilter/xt_NOTRACK.c
When: April 2011
Why: Superseded by xt_CT
Still, people may have not notice / may have decided to stick to an
old iptables version. I agree with him in that some more conservative
approach by spotting some printk to warn users for some time is less
agressive.
Current iptables 1.4.16.3 already contains the aliasing support
that makes it point to the CT target, so upgrading would fix it.
Still, the policy so far has been to avoid pushing our users to
upgrade.
As a solution, this patch recovers the NOTRACK target inside the CT
target and it now spots a warning.
Reported-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
20 lines
427 B
C
20 lines
427 B
C
#ifndef __NETNS_X_TABLES_H
|
|
#define __NETNS_X_TABLES_H
|
|
|
|
#include <linux/list.h>
|
|
#include <linux/netfilter.h>
|
|
|
|
struct ebt_table;
|
|
|
|
struct netns_xt {
|
|
struct list_head tables[NFPROTO_NUMPROTO];
|
|
bool notrack_deprecated_warning;
|
|
#if defined(CONFIG_BRIDGE_NF_EBTABLES) || \
|
|
defined(CONFIG_BRIDGE_NF_EBTABLES_MODULE)
|
|
struct ebt_table *broute_table;
|
|
struct ebt_table *frame_filter;
|
|
struct ebt_table *frame_nat;
|
|
#endif
|
|
};
|
|
#endif
|