[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150417152651.GA6965@Alexeis-MBP.westell.com>
Date: Fri, 17 Apr 2015 08:26:52 -0700
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Herbert Xu <herbert@...dor.apana.org.au>
Cc: netdev@...r.kernel.org, jamal <hadi@...erus.ca>
Subject: Re: [v2] act_mirred: Fix bogus header when redirecting from VLAN
On Fri, Apr 17, 2015 at 01:32:09PM +0800, Herbert Xu wrote:
> When you redirect a VLAN device to any device, you end up with
> crap in af_packet on the xmit path because hard_header_len is
> not equal to skb->mac_len. So the redirected packet contains
> four extra bytes at the start which then gets interpreted as
> part of the MAC address.
>
> This patch fixes this by only pushing skb->mac_len. We also
> need to fix ifb because it tries to undo the pushing done by
> act_mirred.
>
> Signed-off-by: Herbert Xu <herbert@...dor.apana.org.au>
Acked-by: Alexei Starovoitov <ast@...mgrid.com>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists