From 616a8bf660d6c616aedf1e17adfb3de64f1ab9de Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Mon, 13 Jul 2020 19:59:41 +0000 Subject: netinet/tcp.h: update to linux v5.7 add TCP_NLA_BYTES_NOTSENT and new tcp_zerocopy_receive fields, see linux commit c8856c051454909e5059df4e81c77b9c366c5515 tcp-zerocopy: Return inq along with tcp receive zerocopy. linux commit 33946518d493cdf10aedb4a483f1aa41948a3dab tcp-zerocopy: Return sk_err (if set) along with tcp receive zerocopy. linux commit e08ab0b377a1489760533424437c5f4be7f484a4 tcp: add bytes not sent to SCM_TIMESTAMPING_OPT_STATS --- include/netinet/tcp.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/netinet/tcp.h b/include/netinet/tcp.h index 92550dcc..b7b997f5 100644 --- a/include/netinet/tcp.h +++ b/include/netinet/tcp.h @@ -79,6 +79,7 @@ enum { TCP_NLA_REORD_SEEN, TCP_NLA_SRTT, TCP_NLA_TIMEOUT_REHASH, + TCP_NLA_BYTES_NOTSENT, }; #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) @@ -284,6 +285,8 @@ struct tcp_zerocopy_receive { uint64_t address; uint32_t length; uint32_t recv_skip_hint; + uint32_t inq; + int32_t err; }; #endif -- cgit v1.2.1