From: Pravin B Shelar Date: Sat, 12 Nov 2011 00:09:20 +0000 (-0800) Subject: datapath: Use correct ethernet addr len. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39640c1b7174299194dbc2756257693ec6e1c8c3;p=openvswitch datapath: Use correct ethernet addr len. Signed-off-by: Pravin B Shelar Acked-by: Jesse Gross --- diff --git a/datapath/actions.c b/datapath/actions.c index dc74a376..ac7187bc 100644 --- a/datapath/actions.c +++ b/datapath/actions.c @@ -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; }