diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-05-22 22:42:37 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-05-23 14:23:16 +0200 |
commit | de94c4591bd606729af1b913d6e98c6c449e42df (patch) | |
tree | 7c829fc4d72632b28c0927a3942c1ab6012b77c7 /net/bridge | |
parent | 6d11cfdba52af08b889fd6d3ee4212930493eb38 (diff) | |
download | linux-stable-de94c4591bd606729af1b913d6e98c6c449e42df.tar.gz linux-stable-de94c4591bd606729af1b913d6e98c6c449e42df.tar.bz2 linux-stable-de94c4591bd606729af1b913d6e98c6c449e42df.zip |
netfilter: {ipt,ebt}_ULOG: rise warning on deprecation
This target has been superseded by NFLOG. Spot a warning
so we prepare removal in a couple of years.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Gao feng <gaofeng@cn.fujitsu.com>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/netfilter/ebt_ulog.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/bridge/netfilter/ebt_ulog.c b/net/bridge/netfilter/ebt_ulog.c index fc1905c51417..2ec6c19ff903 100644 --- a/net/bridge/netfilter/ebt_ulog.c +++ b/net/bridge/netfilter/ebt_ulog.c @@ -267,6 +267,12 @@ static int ebt_ulog_tg_check(const struct xt_tgchk_param *par) { struct ebt_ulog_info *uloginfo = par->targinfo; + if (!par->net->xt.ebt_ulog_warn_deprecated) { + pr_info("ebt_ulog is deprecated and it will be removed soon, " + "use ebt_nflog instead\n"); + par->net->xt.ebt_ulog_warn_deprecated = true; + } + if (uloginfo->nlgroup > 31) return -EINVAL; |