source: trunk/minix/include/net/gen/tcp_io.h@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 1.8 KB
Line 
1/*
2server/ip/gen/tcp_io.h
3*/
4
5#ifndef __SERVER__IP__GEN__TCP_IO_H__
6#define __SERVER__IP__GEN__TCP_IO_H__
7
8typedef struct nwio_tcpconf
9{
10 u32_t nwtc_flags;
11 ipaddr_t nwtc_locaddr;
12 ipaddr_t nwtc_remaddr;
13 tcpport_t nwtc_locport;
14 tcpport_t nwtc_remport;
15} nwio_tcpconf_t;
16
17#define NWTC_NOFLAGS 0x0000L
18#define NWTC_ACC_MASK 0x0003L
19# define NWTC_EXCL 0x00000001L
20# define NWTC_SHARED 0x00000002L
21# define NWTC_COPY 0x00000003L
22#define NWTC_LOCPORT_MASK 0x0030L
23# define NWTC_LP_UNSET 0x00000010L
24# define NWTC_LP_SET 0x00000020L
25# define NWTC_LP_SEL 0x00000030L
26#define NWTC_REMADDR_MASK 0x0100L
27# define NWTC_SET_RA 0x00000100L
28# define NWTC_UNSET_RA 0x01000000L
29#define NWTC_REMPORT_MASK 0x0200L
30# define NWTC_SET_RP 0x00000200L
31# define NWTC_UNSET_RP 0x02000000L
32
33typedef struct nwio_tcpcl
34{
35 long nwtcl_flags;
36 long nwtcl_ttl;
37} nwio_tcpcl_t;
38
39#define TCF_DEFAULT 0 /* Default parameters */
40#define TCF_ASYNCH 1 /* Asynchronous connect for non-blocking
41 * socket emulation.
42 */
43
44typedef struct nwio_tcpatt
45{
46 long nwta_flags;
47} nwio_tcpatt_t;
48
49typedef struct nwio_tcpopt
50{
51 u32_t nwto_flags;
52} nwio_tcpopt_t;
53
54#define NWTO_NOFLAG 0x0000L
55#define NWTO_SND_URG_MASK 0x0001L
56# define NWTO_SND_URG 0x00000001L
57# define NWTO_SND_NOTURG 0x00010000L
58#define NWTO_RCV_URG_MASK 0x0002L
59# define NWTO_RCV_URG 0x00000002L
60# define NWTO_RCV_NOTURG 0x00020000L
61#define NWTO_BSD_URG_MASK 0x0004L
62# define NWTO_BSD_URG 0x00000004L
63# define NWTO_NOTBSD_URG 0x00040000L
64#define NWTO_DEL_RST_MASK 0x0008L
65# define NWTO_DEL_RST 0x00000008L
66#define NWTO_BULK_MASK 0x0010L
67# define NWTO_BULK 0x00000010L
68# define NWTO_NOBULK 0x00100000L
69
70#define TC_SECRET_SIZE 12
71
72typedef struct tcp_cookie
73{
74 u32_t tc_ref;
75 u8_t tc_secret[TC_SECRET_SIZE];
76} tcp_cookie_t;
77
78#endif /* __SERVER__IP__GEN__TCP_IO_H__ */
79
80/*
81 * $PchId: tcp_io.h,v 1.5 2001/02/19 07:36:55 philip Exp $
82 */
Note: See TracBrowser for help on using the repository browser.