datapath: Use correct ethernet addr len.
authorPravin B Shelar <pshelar@nicira.com>
Sat, 12 Nov 2011 00:09:20 +0000 (16:09 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Sat, 12 Nov 2011 00:09:20 +0000 (16:09 -0800)
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/actions.c

index dc74a3768776cf0e4d86171e439a8c4be9cbff76..ac7187bc3000bea61ec736ed2f753d16b5809862 100644 (file)
@@ -124,8 +124,8 @@ static int set_eth_addr(struct sk_buff *skb,
        if (unlikely(err))
                return err;
 
-       memcpy(eth_hdr(skb)->h_source, eth_key->eth_src, ETH_HLEN);
-       memcpy(eth_hdr(skb)->h_dest, eth_key->eth_dst, ETH_HLEN);
+       memcpy(eth_hdr(skb)->h_source, eth_key->eth_src, ETH_ALEN);
+       memcpy(eth_hdr(skb)->h_dest, eth_key->eth_dst, ETH_ALEN);
 
        return 0;
 }