mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Acked-by: Gao feng <[email protected]>
This commit is contained in:
parent
6d11cfdba5
commit
de94c4591b
4 changed files with 19 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue