Re: [PATCH net] ip6_gre: skb_push ipv6hdr before packing the header in ip6gre_header

2017-09-18 Thread David Miller
From: Xin Long Date: Fri, 15 Sep 2017 12:00:07 +0800 > Now in ip6gre_header before packing the ipv6 header, it skb_push t->hlen > which only includes encap_hlen + tun_hlen. It means greh and inner header > would be over written by ipv6 stuff and ipv6h might have no chance to set > up. > > Jianli

[PATCH net] ip6_gre: skb_push ipv6hdr before packing the header in ip6gre_header

2017-09-14 Thread Xin Long
Now in ip6gre_header before packing the ipv6 header, it skb_push t->hlen which only includes encap_hlen + tun_hlen. It means greh and inner header would be over written by ipv6 stuff and ipv6h might have no chance to set up. Jianlin found this issue when using remote any on ip6_gre, the packets he