[net] tcp: add SO_PEEK_OFF socket option tor TCPv6
From: Jon Maloy
On Sat, Jul 20, 2024 at 7:09 AM
From: Jon Maloy
When we added the SO_PEEK_OFF socket option to TCP we forgot to add it even for TCP on IPv6.
We do that here.
Fixes: 05ea491641d3 ("tcp: add support for SO_PEEK_OFF socket option")
Signed-off-by: Jon Maloy
Reviewed-by: Eric Dumazet
On Sun, Jul 21, 2024 at 11:23 PM Eric Dumazet
On Sat, Jul 20, 2024 at 7:09 AM
wrote: From: Jon Maloy
When we added the SO_PEEK_OFF socket option to TCP we forgot to add it even for TCP on IPv6.
We do that here.
Fixes: 05ea491641d3 ("tcp: add support for SO_PEEK_OFF socket option")
Signed-off-by: Jon Maloy
Reviewed-by: Eric Dumazet
It would be nice to add a selftest for SO_PEEK_OFF for TCP and UDP, any volunteers ?
If Jon doesn't have much time, I volunteer :) :p Thanks, Jason
On 2024-07-21 12:13, Jason Xing wrote:
On Sun, Jul 21, 2024 at 11:23 PM Eric Dumazet
wrote: On Sat, Jul 20, 2024 at 7:09 AM
wrote: From: Jon Maloy
When we added the SO_PEEK_OFF socket option to TCP we forgot to add it even for TCP on IPv6.
We do that here.
Fixes: 05ea491641d3 ("tcp: add support for SO_PEEK_OFF socket option")
Signed-off-by: Jon Maloy
Reviewed-by: Eric Dumazet It would be nice to add a selftest for SO_PEEK_OFF for TCP and UDP, any volunteers ? If Jon doesn't have much time, I volunteer :) :p
Thanks, Jason I have been offline for a few weeks, so I didn't see this until now. You are totally welcome ;-) ///jon
participants (5)
-
Eric Dumazet
-
Jakub Kicinski
-
Jason Xing
-
jmaloy@redhat.com
-
Jon Maloy