Re: [PATCH 2/3] tcp: Add ESP encapsulation support

2018-01-17 Thread Herbert Xu
On Tue, Jan 16, 2018 at 11:28:23AM +0100, Steffen Klassert wrote: > > > Is there any chance this can be done with almost no change in TCP > > stack, using a layer model ? ( net/kcm comes to mind ) > > Herbert, would this be an option or is this not possible? Yes it can be done. I'm working on

Re: [PATCH 2/3] tcp: Add ESP encapsulation support

2018-01-16 Thread Steffen Klassert
On Fri, Jan 12, 2018 at 08:38:01AM -0800, Eric Dumazet wrote: > On Fri, 2018-01-12 at 00:21 +1100, Herbert Xu wrote: > > This patch adds the plumbing in TCP for ESP encapsulation support > > per RFC8229. > > > > The patch mostly deals with inbound processing, as well as enabling > > TCP

Re: [PATCH 2/3] tcp: Add ESP encapsulation support

2018-01-12 Thread Eric Dumazet
On Fri, 2018-01-12 at 00:21 +1100, Herbert Xu wrote: > This patch adds the plumbing in TCP for ESP encapsulation support > per RFC8229. > > The patch mostly deals with inbound processing, as well as enabling > TCP encapsulation on a socket through setsockopt. The outbound > processing is dealt

[PATCH 2/3] tcp: Add ESP encapsulation support

2018-01-11 Thread Herbert Xu
This patch adds the plumbing in TCP for ESP encapsulation support per RFC8229. The patch mostly deals with inbound processing, as well as enabling TCP encapsulation on a socket through setsockopt. The outbound processing is dealt with in the ESP code as is done for UDP. The inbound processing