]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/netfilter/xt_TPROXY.c
netfilter: xtables: change xt_target.checkentry return type
[karo-tx-linux.git] / net / netfilter / xt_TPROXY.c
index 1340c2fa3621e54f651d4a66b25edd79007e93c2..189df9af4de6e4a40a04878dabc39e833143ec9c 100644 (file)
@@ -9,7 +9,7 @@
  * published by the Free Software Foundation.
  *
  */
-
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 #include <linux/module.h>
 #include <linux/skbuff.h>
 #include <linux/ip.h>
@@ -59,7 +59,7 @@ tproxy_tg(struct sk_buff *skb, const struct xt_target_param *par)
        return NF_DROP;
 }
 
-static bool tproxy_tg_check(const struct xt_tgchk_param *par)
+static int tproxy_tg_check(const struct xt_tgchk_param *par)
 {
        const struct ipt_ip *i = par->entryinfo;
 
@@ -67,7 +67,7 @@ static bool tproxy_tg_check(const struct xt_tgchk_param *par)
            && !(i->invflags & IPT_INV_PROTO))
                return true;
 
-       pr_info("xt_TPROXY: Can be used only in combination with "
+       pr_info("Can be used only in combination with "
                "either -p tcp or -p udp\n");
        return false;
 }