include/net/gen/tcp_io.h

http://www.minix3.org/ · C Header · 82 lines · 62 code · 12 blank · 8 comment · 0 complexity · 484607cb810f9edd3dbb583036742e56 MD5 · raw file

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