From: Philip Homburg Date: Wed, 27 Jul 2005 11:40:34 +0000 (+0000) Subject: Added ioctls for listen/accept. Added cookies for accept. X-Git-Tag: v3.1.0~525 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/index.css?a=commitdiff_plain;h=055168bd31cec31ddd6644ee22f1b2426c7a3bfe;p=minix.git Added ioctls for listen/accept. Added cookies for accept. --- diff --git a/include/net/gen/tcp_io.h b/include/net/gen/tcp_io.h index 62339d684..3d025be40 100755 --- a/include/net/gen/tcp_io.h +++ b/include/net/gen/tcp_io.h @@ -62,6 +62,14 @@ typedef struct nwio_tcpopt # define NWTO_BULK 0x00000010L # define NWTO_NOBULK 0x00100000L +#define TC_SECRET_SIZE 12 + +typedef struct tcp_cookie +{ + u32_t tc_ref; + u8_t tc_secret[TC_SECRET_SIZE]; +} tcp_cookie_t; + #endif /* __SERVER__IP__GEN__TCP_IO_H__ */ /* diff --git a/include/net/ioctl.h b/include/net/ioctl.h index 33bb22de9..148ac99d7 100755 --- a/include/net/ioctl.h +++ b/include/net/ioctl.h @@ -41,6 +41,9 @@ #define NWIOSTCPOPT _IOW('n', 54, struct nwio_tcpopt) #define NWIOGTCPOPT _IOR('n', 55, struct nwio_tcpopt) #define NWIOTCPPUSH _IO ('n', 56) +#define NWIOTCPLISTENQ _IOW('n', 57, int) +#define NWIOGTCPCOOKIE _IOR('n', 58, struct tcp_cookie) +#define NWIOTCPACCEPTTO _IOW('n', 59, struct tcp_cookie) #define NWIOSUDPOPT _IOW('n', 64, struct nwio_udpopt) #define NWIOGUDPOPT _IOR('n', 65, struct nwio_udpopt)