[ovs-dev] [PATCH] datapath: Use correct ethernet addr len.
Ben Pfaff
blp at nicira.com
Fri Nov 11 22:44:17 UTC 2011
On Fri, Nov 11, 2011 at 02:41:37PM -0800, Pravin B Shelar wrote:
> 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;
> }
Jari, I think that this must be the problem you're encountering. Can
you try out that patch?
More information about the dev
mailing list