]> err.no Git - linux-2.6/blobdiff - net/8021q/vlan_dev.c
[PATCH] Remove unused code from rioroute.h
[linux-2.6] / net / 8021q / vlan_dev.c
index f2a8750bbf1d7555633c1b2562883dcd02b800bc..0f604d227da2ba003a25256a28cf3e7de0fd0076 100644 (file)
@@ -214,7 +214,7 @@ int vlan_skb_recv(struct sk_buff *skb, struct net_device *dev,
                 * This allows the VLAN to have a different MAC than the underlying
                 * device, and still route correctly.
                 */
-               if (memcmp(eth_hdr(skb)->h_dest, skb->dev->dev_addr, ETH_ALEN) == 0) {
+               if (!compare_ether_addr(eth_hdr(skb)->h_dest, skb->dev->dev_addr)) {
                        /* It is for our (changed) MAC-address! */
                        skb->pkt_type = PACKET_HOST;
                }