diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2011-01-07 17:50:43 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2011-01-07 17:50:43 +0000 |
commit | ba8c20f2e182424ed1367b88d68e34f4af4c4ca3 (patch) | |
tree | 03d05a1b68a921ce094af5e6f7d44820280a8a6b /sys/netinet/tcp_var.h | |
parent | 1f7e102bf0ea0844d71f0ac775bc385b4b7ffdd7 (diff) |
Add socket option SO_SPLICE to splice together two TCP sockets.
The data received on the source socket will automatically be sent
on the drain socket. This allows to write relay daemons with zero
data copy.
ok markus@
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r-- | sys/netinet/tcp_var.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index 6ded3dd733f..0573c7d966b 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_var.h,v 1.97 2010/10/21 11:38:27 bluhm Exp $ */ +/* $OpenBSD: tcp_var.h,v 1.98 2011/01/07 17:50:42 bluhm Exp $ */ /* $NetBSD: tcp_var.h,v 1.17 1996/02/13 23:44:24 christos Exp $ */ /* @@ -95,6 +95,8 @@ struct tcpcb { #define TF_LASTIDLE 0x00100000 /* no outstanding ACK on last send */ #define TF_DEAD 0x00200000 /* dead and to-be-released */ #define TF_PMTUD_PEND 0x00400000 /* Path MTU Discovery pending */ +#define TF_NEEDOUTPUT 0x00800000 /* call tcp_output after tcp_input */ +#define TF_BLOCKOUTPUT 0x01000000 /* avert tcp_output during tcp_input */ struct mbuf *t_template; /* skeletal packet for transmit */ struct inpcb *t_inpcb; /* back pointer to internet pcb */ |