summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2020-03-31 20:07:33 +0000
committerRich Felker <dalias@aerifal.cx>2020-09-09 17:20:18 -0400
commitc6321616b81a38f4413c2c28c5f7043b55e20d4e (patch)
tree651d723a7d710df5b77b1281930835fafd88b0dd /include
parent8fca0ea4e9d09b0ada66b135533a74a643de77ef (diff)
downloadmusl-c6321616b81a38f4413c2c28c5f7043b55e20d4e.tar.gz
netinet/tcp.h: update for linux v5.6
TCP_NLA_TIMEOUT_REHASH queries timeout-triggered rehash attempts, tcpm_ifindex limits the scope of TCP_MD5SIG* sockopt to a device. see linux commit 32efcc06d2a15fa87585614d12d6c2308cc2d3f3 tcp: export count for rehash attempts linux commit 6b102db50cdde3ba2f78631ed21222edf3a5fb51 net: Add device index to tcp_md5sig
Diffstat (limited to 'include')
-rw-r--r--include/netinet/tcp.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/netinet/tcp.h b/include/netinet/tcp.h
index db3904ae..92550dcc 100644
--- a/include/netinet/tcp.h
+++ b/include/netinet/tcp.h
@@ -78,6 +78,7 @@ enum {
TCP_NLA_DSACK_DUPS,
TCP_NLA_REORD_SEEN,
TCP_NLA_SRTT,
+ TCP_NLA_TIMEOUT_REHASH,
};
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
@@ -247,14 +248,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];
};