]> err.no Git - linux-2.6/blobdiff - net/core/dv.c
[PATCH] inotify: fix one-shot support
[linux-2.6] / net / core / dv.c
index c5deb365525782cdfe16ba5c9438e60cf03ff069..cf581407538c4b160947548b0fa350840b959dd0 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/netdevice.h>
 #include <linux/etherdevice.h>
 #include <linux/skbuff.h>
+#include <linux/capability.h>
 #include <linux/errno.h>
 #include <linux/init.h>
 #include <net/dst.h>
@@ -457,7 +458,7 @@ void divert_frame(struct sk_buff *skb)
        unsigned char                   *skb_data_end = skb->data + skb->len;
 
        /* Packet is already aimed at us, return */
-       if (!compare_ether_addr(eth, skb->dev->dev_addr))
+       if (!compare_ether_addr(eth->h_dest, skb->dev->dev_addr))
                return;
        
        /* proto is not IP, do nothing */