Signed-off-by: Pravin B Shelar <[email protected]>
---
datapath/actions.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/datapath/actions.c b/datapath/actions.c
index dc74a37..ac7187b 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;
}
--
1.7.1
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev