Re: [PATCH ipsec] xfrm: esp6: fix encapsulation header offset computation

2020-07-08 Thread Steffen Klassert
On Fri, Jul 03, 2020 at 04:57:09PM +0200, Sabrina Dubroca wrote: > In commit 0146dca70b87, I incorrectly adapted the code that computes > the location of the UDP or TCP encapsulation header from IPv4 to > IPv6. In esp6_input_done2, skb->transport_header points to the ESP > header, so by adding skb_

Re: [PATCH ipsec] xfrm: esp6: fix encapsulation header offset computation

2020-07-06 Thread Tobias Brunner
Hi Sabrina, > In commit 0146dca70b87, I incorrectly adapted the code that computes > the location of the UDP or TCP encapsulation header from IPv4 to > IPv6. In esp6_input_done2, skb->transport_header points to the ESP > header, so by adding skb_network_header_len, uh and th will point to > the ES

[PATCH ipsec] xfrm: esp6: fix encapsulation header offset computation

2020-07-03 Thread Sabrina Dubroca
In commit 0146dca70b87, I incorrectly adapted the code that computes the location of the UDP or TCP encapsulation header from IPv4 to IPv6. In esp6_input_done2, skb->transport_header points to the ESP header, so by adding skb_network_header_len, uh and th will point to the ESP header, not the encap