[NETFILTER]: x_tables: switch hotdrop to bool
[deliverable/linux.git] / net / netfilter / xt_pkttype.c
index 16e7b080428760c69559135a49bd3cfe76cbad81..692581f40c5f9ae174b4faf08653589e70b25dc8 100644 (file)
@@ -28,13 +28,13 @@ static int match(const struct sk_buff *skb,
       const void *matchinfo,
       int offset,
       unsigned int protoff,
-      int *hotdrop)
+      bool *hotdrop)
 {
        u_int8_t type;
        const struct xt_pkttype_info *info = matchinfo;
 
        if (skb->pkt_type == PACKET_LOOPBACK)
-               type = (MULTICAST(skb->nh.iph->daddr)
+               type = (MULTICAST(ip_hdr(skb)->daddr)
                        ? PACKET_MULTICAST
                        : PACKET_BROADCAST);
        else
This page took 0.026869 seconds and 5 git commands to generate.