]> git.ipfire.org Git - thirdparty/linux.git/commit
ipv4: tcp: give socket pointer to control skbs
authorEric Dumazet <edumazet@google.com>
Thu, 10 Oct 2024 17:48:17 +0000 (17:48 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Oct 2024 00:39:37 +0000 (17:39 -0700)
commit79636038d37e7bd4d078238f2a3f002cab4423bc
treeb6d28ee2b7994c49ec797f143840e22eabdbd45a
parent507a96737d99686ca1714c7ba1f60ac323178189
ipv4: tcp: give socket pointer to control skbs

ip_send_unicast_reply() send orphaned 'control packets'.

These are RST packets and also ACK packets sent from TIME_WAIT.

Some eBPF programs would prefer to have a meaningful skb->sk
pointer as much as possible.

This means that TCP can now attach TIME_WAIT sockets to outgoing
skbs.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Brian Vazquez <brianvv@google.com>
Link: https://patch.msgid.link/20241010174817.1543642-6-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/ip.h
net/ipv4/ip_output.c
net/ipv4/tcp_ipv4.c