[NETFILTER]: x_tables: switch hotdrop to bool
[sfrench/cifs-2.6.git] / net / ipv4 / netfilter / ip_tables.c
index 9bacf1a0363085793544d85a1658f8ce91f2d8ba..e2a8938256564fb5e3956fd2601bed247a06a283 100644 (file)
@@ -188,7 +188,7 @@ int do_match(struct ipt_entry_match *m,
             const struct net_device *in,
             const struct net_device *out,
             int offset,
-            int *hotdrop)
+            bool *hotdrop)
 {
        /* Stop iteration if it doesn't match */
        if (!m->u.kernel.match->match(skb, in, out, m->u.kernel.match, m->data,
@@ -216,7 +216,7 @@ ipt_do_table(struct sk_buff **pskb,
        u_int16_t offset;
        struct iphdr *ip;
        u_int16_t datalen;
-       int hotdrop = 0;
+       bool hotdrop = false;
        /* Initializing verdict to NF_DROP keeps gcc happy. */
        unsigned int verdict = NF_DROP;
        const char *indev, *outdev;
@@ -2122,7 +2122,7 @@ icmp_match(const struct sk_buff *skb,
           const void *matchinfo,
           int offset,
           unsigned int protoff,
-          int *hotdrop)
+          bool *hotdrop)
 {
        struct icmphdr _icmph, *ic;
        const struct ipt_icmp *icmpinfo = matchinfo;
@@ -2137,7 +2137,7 @@ icmp_match(const struct sk_buff *skb,
                 * can't.  Hence, no choice but to drop.
                 */
                duprintf("Dropping evil ICMP tinygram.\n");
-               *hotdrop = 1;
+               *hotdrop = true;
                return 0;
        }