defines.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TRUE   1
 
#define FALSE   0
 
#define BUFSIZ   4096 /* make unreasonable guess */
 
#define COMM_SELECT_READ   (0x1)
 
#define COMM_SELECT_WRITE   (0x2)
 
#define DISK_OK   (0)
 
#define DISK_ERROR   (-1)
 
#define DISK_EOF   (-2)
 
#define DISK_NO_SPACE_LEFT   (-6)
 
#define FD_DESC_SZ   64
 
#define FQDN_LOOKUP_IF_MISS   0x01
 
#define FQDN_MAX_NAMES   5
 
#define USER_IDENT_SZ   64
 
#define IP_LOOKUP_IF_MISS   0x01
 
#define ICP_FLAG_SRC_RTT   0x40000000ul
 
#define ICP_VERSION_2   2
 
#define ICP_VERSION_3   3
 
#define ICP_VERSION_CURRENT   ICP_VERSION_2
 
#define DIRECT_UNKNOWN   0
 
#define DIRECT_NO   1
 
#define DIRECT_MAYBE   2
 
#define DIRECT_YES   3
 
#define REDIRECT_AV_FACTOR   1000
 
#define REDIRECT_NONE   0
 
#define REDIRECT_PENDING   1
 
#define REDIRECT_DONE   2
 
#define LOG_ENABLE   1
 
#define LOG_DISABLE   0
 
#define SM_PAGE_SIZE   4096
 
#define EBIT_SET(flag, bit)   ((void)((flag) |= ((1L<<(bit)))))
 
#define EBIT_CLR(flag, bit)   ((void)((flag) &= ~((1L<<(bit)))))
 
#define EBIT_TEST(flag, bit)   ((flag) & ((1L<<(bit))))
 
#define CBIT_BIT(bit)   (1<<((bit)%8))
 
#define CBIT_BIN(mask, bit)   (mask)[(bit)>>3]
 
#define CBIT_SET(mask, bit)   ((void)(CBIT_BIN(mask, bit) |= CBIT_BIT(bit)))
 
#define CBIT_CLR(mask, bit)   ((void)(CBIT_BIN(mask, bit) &= ~CBIT_BIT(bit)))
 
#define CBIT_TEST(mask, bit)   (CBIT_BIN(mask, bit) & CBIT_BIT(bit))
 
#define MAX_URL   8192
 
#define MAX_LOGIN_SZ   128
 
#define PEER_MAX_ADDRESSES   10
 
#define RTT_AV_FACTOR   50
 
#define RTT_BACKGROUND_AV_FACTOR   25 /* Background pings need a smaller factor since they are sent less frequently */
 
#define PEER_DEAD   0
 
#define PEER_ALIVE   1
 
#define CLIENT_REQ_BUF_SZ   4096
 
#define STORE_META_OK   0x03
 
#define IPC_NONE   0
 
#define IPC_TCP_SOCKET   1
 
#define IPC_UDP_SOCKET   2
 
#define IPC_FIFO   3
 
#define IPC_UNIX_STREAM   4
 
#define IPC_UNIX_DGRAM   5
 
#define IPC_STREAM   IPC_TCP_SOCKET
 
#define IPC_DGRAM   IPC_UDP_SOCKET
 
#define STORE_META_KEY   STORE_META_KEY_MD5
 
#define STORE_HDR_METASIZE   (4*sizeof(time_t)+2*sizeof(uint16_t)+sizeof(uint64_t))
 
#define STORE_HDR_METASIZE_OLD   (4*sizeof(time_t)+2*sizeof(uint16_t)+sizeof(size_t))
 
#define COUNT_INTERVAL   60
 
#define N_COUNT_HIST   (3600 / COUNT_INTERVAL) + 1
 
#define N_COUNT_HOUR_HIST   (86400 * 3) / (60 * COUNT_INTERVAL)
 
#define PEER_TCP_MAGIC_COUNT   10
 
#define URI_WHITESPACE_STRIP   0
 
#define URI_WHITESPACE_ALLOW   1
 
#define URI_WHITESPACE_ENCODE   2
 
#define URI_WHITESPACE_CHOP   3
 
#define URI_WHITESPACE_DENY   4
 
#define O_TEXT   0
 
#define O_BINARY   0
 
#define FILE_MODE(x)   ((x)&(O_RDONLY|O_WRONLY|O_RDWR))
 

Macro Definition Documentation

◆ BUFSIZ

#define BUFSIZ   4096 /* make unreasonable guess */

Definition at line 20 of file defines.h.

◆ CBIT_BIN

#define CBIT_BIN (   mask,
  bit 
)    (mask)[(bit)>>3]

Definition at line 73 of file defines.h.

◆ CBIT_BIT

#define CBIT_BIT (   bit)    (1<<((bit)%8))

Definition at line 72 of file defines.h.

◆ CBIT_CLR

#define CBIT_CLR (   mask,
  bit 
)    ((void)(CBIT_BIN(mask, bit) &= ~CBIT_BIT(bit)))

Definition at line 75 of file defines.h.

◆ CBIT_SET

#define CBIT_SET (   mask,
  bit 
)    ((void)(CBIT_BIN(mask, bit) |= CBIT_BIT(bit)))

Definition at line 74 of file defines.h.

◆ CBIT_TEST

#define CBIT_TEST (   mask,
  bit 
)    (CBIT_BIN(mask, bit) & CBIT_BIT(bit))

Definition at line 76 of file defines.h.

◆ CLIENT_REQ_BUF_SZ

#define CLIENT_REQ_BUF_SZ   4096

Definition at line 88 of file defines.h.

◆ COMM_SELECT_READ

#define COMM_SELECT_READ   (0x1)

Definition at line 24 of file defines.h.

◆ COMM_SELECT_WRITE

#define COMM_SELECT_WRITE   (0x2)

Definition at line 25 of file defines.h.

◆ COUNT_INTERVAL

#define COUNT_INTERVAL   60

Definition at line 117 of file defines.h.

◆ DIRECT_MAYBE

#define DIRECT_MAYBE   2

Definition at line 50 of file defines.h.

◆ DIRECT_NO

#define DIRECT_NO   1

Definition at line 49 of file defines.h.

◆ DIRECT_UNKNOWN

#define DIRECT_UNKNOWN   0

Definition at line 48 of file defines.h.

◆ DIRECT_YES

#define DIRECT_YES   3

Definition at line 51 of file defines.h.

◆ DISK_EOF

#define DISK_EOF   (-2)

Definition at line 29 of file defines.h.

◆ DISK_ERROR

#define DISK_ERROR   (-1)

Definition at line 28 of file defines.h.

◆ DISK_NO_SPACE_LEFT

#define DISK_NO_SPACE_LEFT   (-6)

Definition at line 30 of file defines.h.

◆ DISK_OK

#define DISK_OK   (0)

Definition at line 27 of file defines.h.

◆ EBIT_CLR

#define EBIT_CLR (   flag,
  bit 
)    ((void)((flag) &= ~((1L<<(bit)))))

Definition at line 68 of file defines.h.

◆ EBIT_SET

#define EBIT_SET (   flag,
  bit 
)    ((void)((flag) |= ((1L<<(bit)))))

Definition at line 67 of file defines.h.

◆ EBIT_TEST

#define EBIT_TEST (   flag,
  bit 
)    ((flag) & ((1L<<(bit))))

Definition at line 69 of file defines.h.

◆ FALSE

#define FALSE   0

Definition at line 16 of file defines.h.

◆ FD_DESC_SZ

#define FD_DESC_SZ   64

Definition at line 32 of file defines.h.

◆ FILE_MODE

#define FILE_MODE (   x)    ((x)&(O_RDONLY|O_WRONLY|O_RDWR))

Definition at line 152 of file defines.h.

◆ FQDN_LOOKUP_IF_MISS

#define FQDN_LOOKUP_IF_MISS   0x01

Definition at line 34 of file defines.h.

◆ FQDN_MAX_NAMES

#define FQDN_MAX_NAMES   5

Definition at line 35 of file defines.h.

◆ ICP_FLAG_SRC_RTT

#define ICP_FLAG_SRC_RTT   0x40000000ul

Definition at line 41 of file defines.h.

◆ ICP_VERSION_2

#define ICP_VERSION_2   2

Definition at line 44 of file defines.h.

◆ ICP_VERSION_3

#define ICP_VERSION_3   3

Definition at line 45 of file defines.h.

◆ ICP_VERSION_CURRENT

#define ICP_VERSION_CURRENT   ICP_VERSION_2

Definition at line 46 of file defines.h.

◆ IP_LOOKUP_IF_MISS

#define IP_LOOKUP_IF_MISS   0x01

Definition at line 39 of file defines.h.

◆ IPC_DGRAM

#define IPC_DGRAM   IPC_UDP_SOCKET

Definition at line 109 of file defines.h.

◆ IPC_FIFO

#define IPC_FIFO   3

Definition at line 95 of file defines.h.

◆ IPC_NONE

#define IPC_NONE   0

Definition at line 92 of file defines.h.

◆ IPC_STREAM

#define IPC_STREAM   IPC_TCP_SOCKET

Definition at line 108 of file defines.h.

◆ IPC_TCP_SOCKET

#define IPC_TCP_SOCKET   1

Definition at line 93 of file defines.h.

◆ IPC_UDP_SOCKET

#define IPC_UDP_SOCKET   2

Definition at line 94 of file defines.h.

◆ IPC_UNIX_DGRAM

#define IPC_UNIX_DGRAM   5

Definition at line 97 of file defines.h.

◆ IPC_UNIX_STREAM

#define IPC_UNIX_STREAM   4

Definition at line 96 of file defines.h.

◆ LOG_DISABLE

#define LOG_DISABLE   0

Definition at line 63 of file defines.h.

◆ LOG_ENABLE

#define LOG_ENABLE   1

Definition at line 62 of file defines.h.

◆ MAX_LOGIN_SZ

#define MAX_LOGIN_SZ   128

Definition at line 79 of file defines.h.

◆ MAX_URL

#define MAX_URL   8192

Definition at line 78 of file defines.h.

◆ N_COUNT_HIST

#define N_COUNT_HIST   (3600 / COUNT_INTERVAL) + 1

Definition at line 121 of file defines.h.

◆ N_COUNT_HOUR_HIST

#define N_COUNT_HOUR_HIST   (86400 * 3) / (60 * COUNT_INTERVAL)

Definition at line 125 of file defines.h.

◆ O_BINARY

#define O_BINARY   0

Definition at line 143 of file defines.h.

◆ O_TEXT

#define O_TEXT   0

Definition at line 140 of file defines.h.

◆ PEER_ALIVE

#define PEER_ALIVE   1

Definition at line 86 of file defines.h.

◆ PEER_DEAD

#define PEER_DEAD   0

Definition at line 85 of file defines.h.

◆ PEER_MAX_ADDRESSES

#define PEER_MAX_ADDRESSES   10

Definition at line 81 of file defines.h.

◆ PEER_TCP_MAGIC_COUNT

#define PEER_TCP_MAGIC_COUNT   10

Definition at line 131 of file defines.h.

◆ REDIRECT_AV_FACTOR

#define REDIRECT_AV_FACTOR   1000

Definition at line 53 of file defines.h.

◆ REDIRECT_DONE

#define REDIRECT_DONE   2

Definition at line 57 of file defines.h.

◆ REDIRECT_NONE

#define REDIRECT_NONE   0

Definition at line 55 of file defines.h.

◆ REDIRECT_PENDING

#define REDIRECT_PENDING   1

Definition at line 56 of file defines.h.

◆ RTT_AV_FACTOR

#define RTT_AV_FACTOR   50

Definition at line 82 of file defines.h.

◆ RTT_BACKGROUND_AV_FACTOR

#define RTT_BACKGROUND_AV_FACTOR   25 /* Background pings need a smaller factor since they are sent less frequently */

Definition at line 83 of file defines.h.

◆ SM_PAGE_SIZE

#define SM_PAGE_SIZE   4096

Definition at line 65 of file defines.h.

◆ STORE_HDR_METASIZE

#define STORE_HDR_METASIZE   (4*sizeof(time_t)+2*sizeof(uint16_t)+sizeof(uint64_t))

Definition at line 114 of file defines.h.

◆ STORE_HDR_METASIZE_OLD

#define STORE_HDR_METASIZE_OLD   (4*sizeof(time_t)+2*sizeof(uint16_t)+sizeof(size_t))

Definition at line 115 of file defines.h.

◆ STORE_META_KEY

#define STORE_META_KEY   STORE_META_KEY_MD5

Definition at line 112 of file defines.h.

◆ STORE_META_OK

#define STORE_META_OK   0x03

Definition at line 90 of file defines.h.

◆ TRUE

#define TRUE   1

Definition at line 13 of file defines.h.

◆ URI_WHITESPACE_ALLOW

#define URI_WHITESPACE_ALLOW   1

Definition at line 134 of file defines.h.

◆ URI_WHITESPACE_CHOP

#define URI_WHITESPACE_CHOP   3

Definition at line 136 of file defines.h.

◆ URI_WHITESPACE_DENY

#define URI_WHITESPACE_DENY   4

Definition at line 137 of file defines.h.

◆ URI_WHITESPACE_ENCODE

#define URI_WHITESPACE_ENCODE   2

Definition at line 135 of file defines.h.

◆ URI_WHITESPACE_STRIP

#define URI_WHITESPACE_STRIP   0

Definition at line 133 of file defines.h.

◆ USER_IDENT_SZ

#define USER_IDENT_SZ   64

Definition at line 37 of file defines.h.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors