Added ioctls for listen/accept. Added cookies for accept.
This commit is contained in:
		
							parent
							
								
									dd1186d65d
								
							
						
					
					
						commit
						055168bd31
					
				@ -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__ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 | 
			
		||||
@ -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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user