From 13484d24d561a7c926b1ae7460d35b809ed669d9 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Wed, 26 May 2021 16:01:38 +0000 Subject: [PATCH 12/17] netinet/tcp.h: add tcp_zerocopy_receive fields from linux v5.12 see linux commit 7eeba1706eba6def15f6cb2fc7b3c3b9a2651edc tcp: Add receive timestamp support for receive zerocopy. linux commit 3c5a2fd042d0bfac71a2dfb99515723d318df47b tcp: Sanitize CMSG flags and reserved args in tcp_zerocopy_receive. --- include/netinet/tcp.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/netinet/tcp.h b/include/netinet/tcp.h index 08ed7cc2..fad1d844 100644 --- a/include/netinet/tcp.h +++ b/include/netinet/tcp.h @@ -294,6 +294,10 @@ struct tcp_zerocopy_receive { uint64_t copybuf_address; int32_t copybuf_len; uint32_t flags; + uint64_t msg_control; + uint64_t msg_controllen; + uint32_t msg_flags; + uint32_t reserved; }; #endif -- 2.31.1