netfilter: xtables: change targets to return error code
[deliverable/linux.git] / net / netfilter / xt_TPROXY.c
index 189df9af4de6e4a40a04878dabc39e833143ec9c..4f246ddc5c481f5ccaf9545e55b87cc9d331c0ca 100644 (file)
@@ -65,11 +65,11 @@ static int tproxy_tg_check(const struct xt_tgchk_param *par)
 
        if ((i->proto == IPPROTO_TCP || i->proto == IPPROTO_UDP)
            && !(i->invflags & IPT_INV_PROTO))
-               return true;
+               return 0;
 
        pr_info("Can be used only in combination with "
                "either -p tcp or -p udp\n");
-       return false;
+       return -EINVAL;
 }
 
 static struct xt_target tproxy_tg_reg __read_mostly = {
This page took 0.025284 seconds and 5 git commands to generate.