netinet/tcp.h: add tcp zerocopy related changes from linux v5.11
[musl] / include / netinet / tcp.h
index db3904a..30f2023 100644 (file)
@@ -78,6 +78,8 @@ enum {
        TCP_NLA_DSACK_DUPS,
        TCP_NLA_REORD_SEEN,
        TCP_NLA_SRTT,
+       TCP_NLA_TIMEOUT_REHASH,
+       TCP_NLA_BYTES_NOTSENT,
 };
 
 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
@@ -247,14 +249,15 @@ struct tcp_info {
 
 #define TCP_MD5SIG_MAXKEYLEN    80
 
-#define TCP_MD5SIG_FLAG_PREFIX  1
+#define TCP_MD5SIG_FLAG_PREFIX  0x1
+#define TCP_MD5SIG_FLAG_IFINDEX 0x2
 
 struct tcp_md5sig {
        struct sockaddr_storage tcpm_addr;
        uint8_t tcpm_flags;
        uint8_t tcpm_prefixlen;
        uint16_t tcpm_keylen;
-       uint32_t __tcpm_pad;
+       int tcpm_ifindex;
        uint8_t tcpm_key[TCP_MD5SIG_MAXKEYLEN];
 };
 
@@ -278,10 +281,17 @@ struct tcp_repair_window {
        uint32_t rcv_wup;
 };
 
+#define TCP_RECEIVE_ZEROCOPY_FLAG_TLB_CLEAN_HINT 0x1
+
 struct tcp_zerocopy_receive {
        uint64_t address;
        uint32_t length;
        uint32_t recv_skip_hint;
+       uint32_t inq;
+       int32_t err;
+       uint64_t copybuf_address;
+       int32_t copybuf_len;
+       uint32_t flags;
 };
 
 #endif