forked from Minki/linux
[NET]: Fix diverter build.
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8b3a70058b
commit
c3f343e4d7
@ -457,7 +457,7 @@ void divert_frame(struct sk_buff *skb)
|
|||||||
unsigned char *skb_data_end = skb->data + skb->len;
|
unsigned char *skb_data_end = skb->data + skb->len;
|
||||||
|
|
||||||
/* Packet is already aimed at us, return */
|
/* 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;
|
return;
|
||||||
|
|
||||||
/* proto is not IP, do nothing */
|
/* proto is not IP, do nothing */
|
||||||
|
Loading…
Reference in New Issue
Block a user