Go to the documentation of this file.
10#define SQUID_DEFINES_H
24#define COMM_SELECT_READ (0x1)
25#define COMM_SELECT_WRITE (0x2)
28#define DISK_ERROR (-1)
30#define DISK_NO_SPACE_LEFT (-6)
34#define FQDN_LOOKUP_IF_MISS 0x01
35#define FQDN_MAX_NAMES 5
37#define USER_IDENT_SZ 64
39#define IP_LOOKUP_IF_MISS 0x01
41#define ICP_FLAG_SRC_RTT 0x40000000ul
44#define ICP_VERSION_2 2
45#define ICP_VERSION_3 3
46#define ICP_VERSION_CURRENT ICP_VERSION_2
48#define DIRECT_UNKNOWN 0
53#define REDIRECT_AV_FACTOR 1000
55#define REDIRECT_NONE 0
56#define REDIRECT_PENDING 1
57#define REDIRECT_DONE 2
65#define SM_PAGE_SIZE 4096
67#define EBIT_SET(flag, bit) ((void)((flag) |= ((1L<<(bit)))))
68#define EBIT_CLR(flag, bit) ((void)((flag) &= ~((1L<<(bit)))))
69#define EBIT_TEST(flag, bit) ((flag) & ((1L<<(bit))))
72#define CBIT_BIT(bit) (1<<((bit)%8))
73#define CBIT_BIN(mask, bit) (mask)[(bit)>>3]
74#define CBIT_SET(mask, bit) ((void)(CBIT_BIN(mask, bit) |= CBIT_BIT(bit)))
75#define CBIT_CLR(mask, bit) ((void)(CBIT_BIN(mask, bit) &= ~CBIT_BIT(bit)))
76#define CBIT_TEST(mask, bit) (CBIT_BIN(mask, bit) & CBIT_BIT(bit))
79#define MAX_LOGIN_SZ 128
81#define PEER_MAX_ADDRESSES 10
82#define RTT_AV_FACTOR 50
83#define RTT_BACKGROUND_AV_FACTOR 25
88#define CLIENT_REQ_BUF_SZ 4096
91#define IPC_TCP_SOCKET 1
92#define IPC_UDP_SOCKET 2
94#define IPC_UNIX_STREAM 4
95#define IPC_UNIX_DGRAM 5
99#include <sys/socket.h>
102#if HAVE_SOCKETPAIR && defined (AF_UNIX)
103#define IPC_STREAM IPC_UNIX_STREAM
104#define IPC_DGRAM IPC_UNIX_DGRAM
106#define IPC_STREAM IPC_TCP_SOCKET
107#define IPC_DGRAM IPC_UDP_SOCKET
110#define COUNT_INTERVAL 60
114#define N_COUNT_HIST (3600 / COUNT_INTERVAL) + 1
118#define N_COUNT_HOUR_HIST (86400 * 3) / (60 * COUNT_INTERVAL)
124#define PEER_TCP_MAGIC_COUNT 10
126#define URI_WHITESPACE_STRIP 0
127#define URI_WHITESPACE_ALLOW 1
128#define URI_WHITESPACE_ENCODE 2
129#define URI_WHITESPACE_CHOP 3
130#define URI_WHITESPACE_DENY 4
143#define FILE_MODE(x) ((x)&O_ACCMODE)
145#define FILE_MODE(x) ((x)&(O_RDONLY|O_WRONLY|O_RDWR))
150#define _WIN_SQUID_SERVICE_CONTROL_STOP SERVICE_CONTROL_STOP
151#define _WIN_SQUID_SERVICE_CONTROL_SHUTDOWN SERVICE_CONTROL_SHUTDOWN
152#define _WIN_SQUID_SERVICE_CONTROL_INTERROGATE SERVICE_CONTROL_INTERROGATE
153#define _WIN_SQUID_SERVICE_CONTROL_ROTATE 128
154#define _WIN_SQUID_SERVICE_CONTROL_RECONFIGURE 129
155#define _WIN_SQUID_SERVICE_CONTROL_DEBUG 130
156#define _WIN_SQUID_SERVICE_CONTROL_INTERRUPT 131
157#define _WIN_SQUID_SERVICE_OPTION "--ntservice"
158#define _WIN_SQUID_RUN_MODE_INTERACTIVE 0
159#define _WIN_SQUID_RUN_MODE_SERVICE 1
Introduction
Documentation
Support
Miscellaneous
Web Site Translations
Mirrors