[IPV4] net/netfilter: Use ipv4_is_<type>
authorJoe Perches <joe@perches.com>
Sun, 16 Dec 2007 21:46:15 +0000 (13:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:58:16 +0000 (14:58 -0800)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/xt_pkttype.c

index c598bbed8e09f7a49d08018591409dc86f29ec70..276244902ab5536adb826cb60c3b0bc65cabf33f 100644 (file)
@@ -31,7 +31,7 @@ pkttype_mt(const struct sk_buff *skb, const struct net_device *in,
        const struct xt_pkttype_info *info = matchinfo;
 
        if (skb->pkt_type == PACKET_LOOPBACK)
-               type = MULTICAST(ip_hdr(skb)->daddr)
+               type = ipv4_is_multicast(ip_hdr(skb)->daddr)
                        ? PACKET_MULTICAST
                        : PACKET_BROADCAST;
        else