netinet/tcp.h: update to linux v5.7
authorSzabolcs Nagy <nsz@port70.net>
Mon, 13 Jul 2020 19:59:41 +0000 (19:59 +0000)
committerRich Felker <dalias@aerifal.cx>
Wed, 9 Sep 2020 21:20:57 +0000 (17:20 -0400)
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

index 92550dc..b7b997f 100644 (file)
@@ -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