aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/gnu/netinet
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/gnu/netinet')
-rw-r--r--sysdeps/gnu/netinet/tcp.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sysdeps/gnu/netinet/tcp.h b/sysdeps/gnu/netinet/tcp.h
index 44a72e9..1a164a96 100644
--- a/sysdeps/gnu/netinet/tcp.h
+++ b/sysdeps/gnu/netinet/tcp.h
@@ -75,6 +75,14 @@
#define TCP_MD5SIG_EXT 32 /* TCP MD5 Signature with extensions. */
#define TCP_FASTOPEN_KEY 33 /* Set the key for Fast Open (cookie). */
#define TCP_FASTOPEN_NO_COOKIE 34 /* Enable TFO without a TFO cookie. */
+#define TCP_ZEROCOPY_RECEIVE 35
+#define TCP_INQ 36 /* Notify bytes available to read
+ as a cmsg on read. */
+#define TCP_CM_INQ TCP_INQ
+
+#define TCP_REPAIR_ON 1
+#define TCP_REPAIR_OFF 0
+#define TCP_REPAIR_OFF_NO_WP -1
#ifdef __USE_MISC
# include <sys/types.h>
@@ -327,6 +335,14 @@ struct tcp_repair_window
uint32_t rcv_wup;
};
+/* For use with TCP_ZEROCOPY_RECEIVE. */
+struct tcp_zerocopy_receive
+{
+ uint64_t address; /* In: address of mapping. */
+ uint32_t length; /* In/out: number of bytes to map/mapped. */
+ uint32_t recv_skip_hint; /* Out: amount of bytes to skip. */
+};
+
#endif /* Misc. */
#endif /* netinet/tcp.h */