tcp: add SO_PEEK_OFF socket option tor TCPv6
authorJon Maloy <jmaloy@redhat.com>
Wed, 28 Aug 2024 18:37:51 +0000 (14:37 -0400)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Aug 2024 20:00:36 +0000 (13:00 -0700)
When doing further testing of the recently added SO_PEEK_OFF feature
for TCP I realized I had omitted to add it for TCP/IPv6.

I do that here.

Fixes: 05ea491641d3 ("tcp: add support for SO_PEEK_OFF socket option")
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Tested-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
Reviewed-by: Jason Xing <kerneljasonxing@gmail.com>
Link: https://patch.msgid.link/20240828183752.660267-2-jmaloy@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/af_inet6.c

index 90d2c7e..ba69b86 100644 (file)
@@ -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,