Commit be9a4fb8 authored by Jon Maloy's avatar Jon Maloy Committed by Jakub Kicinski
Browse files

tcp: add SO_PEEK_OFF socket option tor TCPv6



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: 05ea4916 ("tcp: add support for SO_PEEK_OFF socket option")
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Reviewed-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
Reviewed-by: default avatarStefano Brivio <sbrivio@redhat.com>
Tested-by: default avatarStefano Brivio <sbrivio@redhat.com>
Signed-off-by: default avatarJon Maloy <jmaloy@redhat.com>
Reviewed-by: default avatarJason Xing <kerneljasonxing@gmail.com>
Link: https://patch.msgid.link/20240828183752.660267-2-jmaloy@redhat.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 3d8806f3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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,