tcp_io.h

Go to the documentation of this file.
00001 /*
00002 server/ip/gen/tcp_io.h
00003 */
00004 
00005 #ifndef __SERVER__IP__GEN__TCP_IO_H__
00006 #define __SERVER__IP__GEN__TCP_IO_H__
00007 
00008 typedef struct nwio_tcpconf
00009 {
00010         u32_t nwtc_flags;
00011         ipaddr_t nwtc_locaddr;
00012         ipaddr_t nwtc_remaddr;
00013         tcpport_t nwtc_locport;
00014         tcpport_t nwtc_remport;
00015 } nwio_tcpconf_t;
00016 
00017 #define NWTC_NOFLAGS    0x0000L
00018 #define NWTC_ACC_MASK   0x0003L
00019 #       define NWTC_EXCL        0x00000001L
00020 #       define NWTC_SHARED      0x00000002L
00021 #       define NWTC_COPY        0x00000003L
00022 #define NWTC_LOCPORT_MASK       0x0030L
00023 #       define NWTC_LP_UNSET    0x00000010L
00024 #       define NWTC_LP_SET      0x00000020L
00025 #       define NWTC_LP_SEL      0x00000030L
00026 #define NWTC_REMADDR_MASK       0x0100L
00027 #       define NWTC_SET_RA      0x00000100L
00028 #       define NWTC_UNSET_RA    0x01000000L
00029 #define NWTC_REMPORT_MASK       0x0200L
00030 #       define NWTC_SET_RP      0x00000200L
00031 #       define NWTC_UNSET_RP    0x02000000L
00032 
00033 typedef struct nwio_tcpcl
00034 {
00035         long nwtcl_flags;
00036         long nwtcl_ttl;
00037 } nwio_tcpcl_t;
00038 
00039 #define TCF_DEFAULT     0       /* Default parameters */
00040 #define TCF_ASYNCH      1       /* Asynchronous connect for non-blocking
00041                                  * socket emulation.
00042                                  */
00043 
00044 typedef struct nwio_tcpatt
00045 {
00046         long nwta_flags;
00047 } nwio_tcpatt_t;
00048 
00049 typedef struct nwio_tcpopt
00050 {
00051         u32_t nwto_flags;
00052 } nwio_tcpopt_t;
00053 
00054 #define NWTO_NOFLAG             0x0000L
00055 #define NWTO_SND_URG_MASK       0x0001L
00056 #       define NWTO_SND_URG     0x00000001L
00057 #       define NWTO_SND_NOTURG  0x00010000L
00058 #define NWTO_RCV_URG_MASK       0x0002L
00059 #       define NWTO_RCV_URG     0x00000002L
00060 #       define NWTO_RCV_NOTURG  0x00020000L
00061 #define NWTO_BSD_URG_MASK       0x0004L
00062 #       define NWTO_BSD_URG     0x00000004L
00063 #       define NWTO_NOTBSD_URG  0x00040000L
00064 #define NWTO_DEL_RST_MASK       0x0008L
00065 #       define NWTO_DEL_RST     0x00000008L
00066 #define NWTO_BULK_MASK          0x0010L
00067 #       define NWTO_BULK        0x00000010L
00068 #       define NWTO_NOBULK      0x00100000L
00069 
00070 #define TC_SECRET_SIZE  12
00071 
00072 typedef struct tcp_cookie
00073 {
00074         u32_t tc_ref;
00075         u8_t tc_secret[TC_SECRET_SIZE];
00076 } tcp_cookie_t;
00077 
00078 #endif /* __SERVER__IP__GEN__TCP_IO_H__ */
00079 
00080 /*
00081  * $PchId: tcp_io.h,v 1.5 2001/02/19 07:36:55 philip Exp $
00082  */

Generated on Fri Apr 14 22:57:21 2006 for minix by  doxygen 1.4.6