[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150828163325.GB10425@Alexeis-MBP-2.westell.com>
Date: Fri, 28 Aug 2015 09:33:26 -0700
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Jiri Benc <jbenc@...hat.com>
Cc: netdev@...r.kernel.org, Thomas Graf <tgraf@...g.ch>
Subject: Re: [PATCH net-next 2/4] ip_tunnels: record IP version in tunnel info
On Fri, Aug 28, 2015 at 04:27:26PM +0200, Jiri Benc wrote:
> There's currently nothing preventing directing packets with IPv6
> encapsulation data to IPv4 tunnels (and vice versa). If this happens,
> IPv6 addresses are incorrectly interpreted as IPv4 ones.
>
> Track whether the given ip_tunnel_key contains IPv4 or IPv6 data. Store this
> in ip_tunnel_info. Reject packets at appropriate places if they are supposed
> to be encapsulated into an incompatible protocol.
>
> Signed-off-by: Jiri Benc <jbenc@...hat.com>
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