tcp: add SO_PEEK_OFF socket option tor TCPv6
Subsystems (2)
From: Jon Maloy <[email protected]>
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.
--- net/ipv6/af_inet6.c | 1 + 1 file changed, 1 insertion(+)
net/ipv6/af_inet6.c +1 -0
@@ -708,6 +708,7 @@ const struct proto_ops inet6_stream_ops = { .splice_eof = inet_splice_eof, .sendmsg_locked = tcp_sendmsg_locked, .splice_read = tcp_splice_read, + .set_peek_off = sk_set_peek_off, .read_sock = tcp_read_sock, .read_skb = tcp_read_skb, .peek_len = tcp_peek_len,
Signature · 1 line
2.45.2
Eric Dumazet
Reviewed-byQuoted 11 lines · On Sat, Jul 20, 2024 at 7:09 AM <[email protected]> wrote:
From: Jon Maloy <[email protected]>
When we added the
SO_PEEK_OFFsocket 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 <[email protected]>
It would be nice to add a selftest for SO_PEEK_OFF for TCP and UDP, any volunteers ?
Thanks.
Quoted 10 lines · Eric Dumazet
Quoted 8 lines · On Sat, Jul 20, 2024 at 7:09 AM <[email protected]> wrote:
From: Jon Maloy <[email protected]>
When we added the
SO_PEEK_OFFsocket option to TCP we forgot to add it even for TCP on IPv6.We do that here.
Quoted 8 lines
Quoted 3 lines
Fixes 05ea491641d3 ("tcp: add support for SO_PEEK_OFF socket option")Signed-off-by Jon Maloy <[email protected]>Reviewed-by Eric Dumazet <[email protected]>It would be nice to add a selftest for
SO_PEEK_OFFfor TCP and UDP, any volunteers ?
If Jon doesn't have much time, I volunteer :) :p
Thanks,
Jason
Jakub Kicinski
maintainerQuoted 3 lines · On Sat, 20 Jul 2024 10:09:14 -0400 [email protected] wrote:
Fixes 05ea491641d3 ("tcp: add support for SO_PEEK_OFF socket option")Signed-off-by Jon Maloy <[email protected]>
Please repost with the selftest and the empty line between Fixes and S-o-b removed.
Signature · 1 line
pw-bot: cr
Quoted 12 lines · Jason Xing
Quoted 11 lines · Eric Dumazet
Quoted 10 lines · On Sat, Jul 20, 2024 at 7:09 AM <[email protected]> wrote:
From: Jon Maloy <[email protected]>
When we added the
SO_PEEK_OFFsocket 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 <[email protected]>
Quoted 8 lines
Quoted 4 lines
Reviewed-by Eric Dumazet <[email protected]>It would be nice to add a selftest for
SO_PEEK_OFFfor 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