]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv4/netfilter/ipt_ULOG.c
Merge remote-tracking branch 'spi/fix/xilinx' into spi-linus
[karo-tx-linux.git] / net / ipv4 / netfilter / ipt_ULOG.c
index 32b0e978c8e07efbb875fafbc15d7715003ec1d8..cbc22158af490589833a4918f3610050a60d5be4 100644 (file)
@@ -331,6 +331,12 @@ static int ulog_tg_check(const struct xt_tgchk_param *par)
 {
        const struct ipt_ulog_info *loginfo = par->targinfo;
 
+       if (!par->net->xt.ulog_warn_deprecated) {
+               pr_info("ULOG is deprecated and it will be removed soon, "
+                       "use NFLOG instead\n");
+               par->net->xt.ulog_warn_deprecated = true;
+       }
+
        if (loginfo->prefix[sizeof(loginfo->prefix) - 1] != '\0') {
                pr_debug("prefix not null-terminated\n");
                return -EINVAL;