X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/cb3231590a3c94ab4375e2228bd5e86b0cf1ad7e..a991bd8d3e7fe02dbca0644054bab73c5b75324a:/bsd/netinet/tcp.h diff --git a/bsd/netinet/tcp.h b/bsd/netinet/tcp.h index 06e25d6bb..b63fc818b 100644 --- a/bsd/netinet/tcp.h +++ b/bsd/netinet/tcp.h @@ -63,11 +63,19 @@ #ifndef _NETINET_TCP_H_ #define _NETINET_TCP_H_ -#include +#ifndef DRIVERKIT #include +#endif /* DRIVERKIT */ + #include #include /* __uint32_t */ +#ifndef DRIVERKIT +#include +#else +#include +#endif /* DRIVERKIT */ + #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) typedef __uint32_t tcp_seq; typedef __uint32_t tcp_cc; /* connection count per rfc1644 */ @@ -237,11 +245,7 @@ struct tcphdr { #define TCP_MEASURE_BW_BURST 0x203 /* Burst size to use for bandwidth measurement */ #define TCP_PEER_PID 0x204 /* Lookup pid of the process we're connected to */ #define TCP_ADAPTIVE_READ_TIMEOUT 0x205 /* Read timeout used as a multiple of RTT */ -/* - * Enable message delivery on a socket, this feature is currently unsupported and - * is subjected to change in future. - */ -#define TCP_ENABLE_MSGS 0x206 +#define TCP_OPTION_UNUSED_0 0x206 /* UNUSED */ #define TCP_ADAPTIVE_WRITE_TIMEOUT 0x207 /* Write timeout used as a multiple of RTT */ #define TCP_NOTIMEWAIT 0x208 /* Avoid going into time-wait */ #define TCP_DISABLE_BLACKHOLE_DETECTION 0x209 /* disable PMTU blackhole detection */ @@ -478,17 +482,17 @@ typedef struct conninfo_tcp { #pragma pack() struct mptcp_itf_stats { - uint16_t ifindex; - uint16_t switches; - uint32_t is_expensive:1; - uint64_t mpis_txbytes __attribute__((aligned(8))); - uint64_t mpis_rxbytes __attribute__((aligned(8))); - uint64_t mpis_wifi_txbytes __attribute__((aligned(8))); - uint64_t mpis_wifi_rxbytes __attribute__((aligned(8))); - uint64_t mpis_wired_txbytes __attribute__((aligned(8))); - uint64_t mpis_wired_rxbytes __attribute__((aligned(8))); - uint64_t mpis_cell_txbytes __attribute__((aligned(8))); - uint64_t mpis_cell_rxbytes __attribute__((aligned(8))); + u_short ifindex; + uint16_t switches; + uint32_t is_expensive:1; + uint64_t mpis_txbytes __attribute__((aligned(8))); + uint64_t mpis_rxbytes __attribute__((aligned(8))); + uint64_t mpis_wifi_txbytes __attribute__((aligned(8))); + uint64_t mpis_wifi_rxbytes __attribute__((aligned(8))); + uint64_t mpis_wired_txbytes __attribute__((aligned(8))); + uint64_t mpis_wired_rxbytes __attribute__((aligned(8))); + uint64_t mpis_cell_txbytes __attribute__((aligned(8))); + uint64_t mpis_cell_rxbytes __attribute__((aligned(8))); }; /* Version solely used to let libnetcore survive */