use configure name directly in service template.

This commit is contained in:
zhengshuxin 2022-08-06 12:33:11 +08:00
parent 4623e568ac
commit 13691baaa9
10 changed files with 129 additions and 603 deletions

View File

@ -15,124 +15,35 @@ extern int acl_var_aio_pid;
extern char *acl_var_aio_procname;
extern char *acl_var_aio_log_file;
#define ACL_VAR_AIO_BUF_SIZE "aio_buf_size"
#define ACL_DEF_AIO_BUF_SIZE 81920
extern int acl_var_aio_buf_size;
#define ACL_VAR_AIO_RW_TIMEOUT "aio_rw_timeout"
#define ACL_DEF_AIO_RW_TIMEOUT 30
extern int acl_var_aio_rw_timeout;
#define ACL_VAR_AIO_IN_FLOW_DELAY "aio_in_flow_delay"
#define ACL_DEF_AIO_IN_FLOW_DELAY 1
extern int acl_var_aio_in_flow_delay;
#define ACL_VAR_AIO_MAX_THREADS "aio_max_threads"
#define ACL_DEF_AIO_MAX_THREADS 0
extern int acl_var_aio_max_threads;
#define ACL_VAR_AIO_THREAD_IDLE_LIMIT "aio_thread_idle_limit"
#define ACL_DEF_AIO_THREAD_IDLE_LIMIT 0
extern int acl_var_aio_thread_idle_limit;
#define ACL_VAR_AIO_IDLE_LIMIT "aio_idle_limit"
#define ACL_DEF_AIO_IDLE_LIMIT 0
extern int acl_var_aio_idle_limit;
#define ACL_VAR_AIO_QUEUE_DIR "aio_queue_dir"
#define ACL_DEF_AIO_QUEUE_DIR "/opt/acl_master/var/queue"
extern char *acl_var_aio_queue_dir;
#define ACL_VAR_AIO_PID_DIR "aio_pid_dir"
#define ACL_DEF_AIO_PID_DIR "/opt/acl_master/var/pid"
extern char *acl_var_aio_pid_dir;
#define ACL_VAR_AIO_ACCESS_ALLOW "aio_access_allow"
#define ACL_DEF_AIO_ACCESS_ALLOW "0.0.0.0:255.255.255.255"
extern char *acl_var_aio_access_allow;
#define ACL_VAR_AIO_OWNER "aio_owner"
#define ACL_DEF_AIO_OWNER "aio"
extern char *acl_var_aio_owner;
#define ACL_VAR_AIO_DELAY_SEC "aio_delay_sec"
#define ACL_DEF_AIO_DELAY_SEC 1
extern int acl_var_aio_delay_sec;
#define ACL_VAR_AIO_DELAY_USEC "aio_delay_usec"
#define ACL_DEF_AIO_DELAY_USEC 5000
extern int acl_var_aio_delay_usec;
#define ACL_VAR_AIO_EVENT_MODE "aio_event_mode"
#define ACL_DEF_AIO_EVENT_MODE "select"
extern char *acl_var_aio_event_mode;
#define ACL_VAR_AIO_DAEMON_TIMEOUT "aio_daemon_timeout"
#define ACL_DEF_AIO_DAEMON_TIMEOUT 1800
extern int acl_var_aio_daemon_timeout;
#define ACL_VAR_AIO_USE_LIMIT "aio_use_limit"
#define ACL_DEF_AIO_USE_LIMIT 0
extern int acl_var_aio_use_limit;
#define ACL_VAR_AIO_MASTER_MAXPROC "master_maxproc"
#define ACL_DEF_AIO_MASTER_MAXPROC 1
extern int acl_var_aio_master_maxproc;
#define ACL_VAR_AIO_MAX_ACCEPT "aio_max_accept"
#define ACL_DEF_AIO_MAX_ACCEPT 10
extern int acl_var_aio_max_accept;
#define ACL_VAR_AIO_MIN_NOTIFY "aio_min_notify"
#define ACL_DEF_AIO_MIN_NOTIFY 10
extern int acl_var_aio_min_notify;
#define ACL_VAR_AIO_ACCEPT_ALONE "aio_accept_alone"
#define ACL_DEF_AIO_ACCEPT_ALONE "yes"
extern char *acl_var_aio_accept_alone;
#define ACL_VAR_AIO_ENABLE_CORE "aio_enable_core"
#define ACL_DEF_AIO_ENABLE_CORE 1
extern int acl_var_aio_enable_core;
#define ACL_VAR_AIO_DISABLE_CORE_ONEXIT "aio_disable_core_onexit"
#define ACL_DEF_AIO_DISABLE_CORE_ONEXIT 1
extern int acl_var_aio_disable_core_onexit;
#define ACL_VAR_AIO_CORE_LIMIT "aio_core_limit"
#define ACL_DEF_AIO_CORE_LIMIT -1
extern long long int acl_var_aio_core_limit;
#define ACL_VAR_AIO_QUICK_ABORT "aio_quick_abort"
#define ACL_DEF_AIO_QUICK_ABORT 1
extern int acl_var_aio_quick_abort;
#define ACL_VAR_AIO_ACCEPT_TIMER "aio_accept_timer"
#define ACL_DEF_AIO_ACCEPT_TIMER 0
extern int acl_var_aio_accept_timer;
#define ACL_VAR_AIO_LOG_DEBUG "master_debug"
#define ACL_DEF_AIO_LOG_DEBUG ""
extern char *acl_var_aio_log_debug;
#define ACL_VAR_AIO_MAX_DEBUG "master_debug_max"
#define ACL_DEF_AIO_MAX_DEBUG 1000
extern int acl_var_aio_max_debug;
#define ACL_VAR_AIO_STATUS_NOTIFY "master_status_notify"
#define ACL_DEF_AIO_STATUS_NOTIFY 1
extern int acl_var_aio_status_notify;
#define ACL_VAR_AIO_DISPATCH_ADDR "aio_dispatch_addr"
#define ACL_DEF_AIO_DISPATCH_ADDR ""
extern char *acl_var_aio_dispatch_addr;
#define ACL_VAR_AIO_DISPATCH_TYPE "aio_dispatch_type"
#define ACL_DEF_AIO_DISPATCH_TYPE "default"
extern char *acl_var_aio_dispatch_type;
#define ACL_VAR_AIO_DENY_INFO "master_deny_info"
#define ACL_DEF_AIO_DENY_INFO "you're not welcome!"
extern char *acl_var_aio_deny_info;
#endif /* ACL_UNIX */

View File

@ -15,80 +15,36 @@ extern int acl_var_single_pid; /* get by call getpid() */
extern char *acl_var_single_procname; /* get from single_main()'s argv[0] */
extern char *acl_var_single_log_file; /* get from getenv("LOG") */
#define ACL_VAR_SINGLE_BUF_SIZE "single_buf_size"
#define ACL_DEF_SINGLE_BUF_SIZE 81920
extern int acl_var_single_buf_size;
#define ACL_VAR_SINGLE_RW_TIMEOUT "single_rw_timeout"
#define ACL_DEF_SINGLE_RW_TIMEOUT 30
extern int acl_var_single_rw_timeout;
#define ACL_VAR_SINGLE_IN_FLOW_DELAY "single_in_flow_delay"
#define ACL_DEF_SINGLE_IN_FLOW_DELAY 1
extern int acl_var_single_in_flow_delay;
/*
* Any subsystem: default amount of time a mail subsystem waits for a client
* connection (except queue manager).
*/
#define ACL_VAR_SINGLE_IDLE_LIMIT "single_idle_limit"
#define ACL_DEF_SINGLE_IDLE_LIMIT 0
extern int acl_var_single_idle_limit;
#define ACL_VAR_SINGLE_QUEUE_DIR "single_queue_dir"
#define ACL_DEF_SINGLE_QUEUE_DIR "/opt/acl_master/var/queue"
extern char *acl_var_single_queue_dir;
#define ACL_VAR_SINGLE_PID_DIR "single_pid_dir"
#define ACL_DEF_SINGLE_PID_DIR "/opt/acl_master/var/pid"
extern char *acl_var_single_pid_dir;
#define ACL_VAR_SINGLE_OWNER "single_owner"
#define ACL_DEF_SINGLE_OWNER "root"
extern char *acl_var_single_owner;
#define ACL_VAR_SINGLE_DELAY_SEC "single_delay_sec"
#define ACL_DEF_SINGLE_DELAY_SEC 1
extern int acl_var_single_delay_sec;
#define ACL_VAR_SINGLE_DELAY_USEC "single_delay_usec"
#define ACL_DEF_SINGLE_DELAY_USEC 5000
extern int acl_var_single_delay_usec;
/*
* How long a daemon command may take to receive or deliver a message etc.
* before we assume it is wegded (should never happen).
*/
#define ACL_VAR_SINGLE_DAEMON_TIMEOUT "single_daemon_timeout"
#define ACL_DEF_SINGLE_DAEMON_TIMEOUT 1800
extern int acl_var_single_daemon_timeout;
/*
* Any subsystem: default maximum number of clients serviced before a mail
* subsystem terminates (except queue manager).
*/
#define ACL_VAR_SINGLE_USE_LIMIT "single_use_limit"
#define ACL_DEF_SINGLE_USE_LIMIT 0
extern int acl_var_single_use_limit;
#define ACL_VAR_SINGLE_ENABLE_CORE "single_enable_core"
#define ACL_DEF_SINGLE_ENABLE_CORE 1
extern int acl_var_single_enable_core;
#define ACL_VAR_SINGLE_DISABLE_CORE_ONEXIT "single_disable_core_onexit"
#define ACL_DEF_SINGLE_DISABLE_CORE_ONEXIT 1
extern int acl_var_single_disable_core_onexit;
#define ACL_VAR_SINGLE_CORE_LIMIT "single_core_limit"
#define ACL_DEF_SINGLE_CORE_LIMIT -1
extern long long int acl_var_single_core_limit;
#define ACL_VAR_SINGLE_LOG_DEBUG "master_debug"
#define ACL_DEF_SINGLE_LOG_DEBUG ""
extern char *acl_var_single_log_debug;
#define ACL_VAR_SINGLE_MAX_DEBUG "master_debug_max"
#define ACL_DEF_SINGLE_MAX_DEBUG 1000
extern int acl_var_single_max_debug;
#endif /* ACL_UNIX*/

View File

@ -12,148 +12,40 @@ extern "C" {
extern char *acl_var_threads_procname;
extern char *acl_var_threads_log_file;
#define ACL_VAR_THREADS_BUF_SIZE "ioctl_buf_size"
#define ACL_DEF_THREADS_BUF_SIZE 8192
extern int acl_var_threads_buf_size;
#define ACL_VAR_THREADS_RW_TIMEOUT "ioctl_rw_timeout"
#define ACL_DEF_THREADS_RW_TIMEOUT 30
extern int acl_var_threads_rw_timeout;
#define ACL_VAR_THREADS_POOL_LIMIT "ioctl_max_threads"
#define ACL_DEF_THREADS_POOL_LIMIT 50
extern int acl_var_threads_pool_limit;
#define ACL_VAR_THREADS_THREAD_STACKSIZE "ioctl_stacksize"
#define ACL_DEF_THREADS_THREAD_STACKSIZE 0
extern int acl_var_threads_thread_stacksize;
#define ACL_VAR_THREADS_THREAD_IDLE "ioctl_thread_idle_limit"
#define ACL_DEF_THREADS_THREAD_IDLE 120
extern int acl_var_threads_thread_idle;
#define ACL_VAR_THREADS_IDLE_LIMIT "ioctl_idle_limit"
#define ACL_DEF_THREADS_IDLE_LIMIT 0
extern int acl_var_threads_idle_limit;
#define ACL_VAR_THREADS_USE_LIMIT "ioctl_use_limit"
#define ACL_DEF_THREADS_USE_LIMIT 0
extern int acl_var_threads_use_limit;
#define ACL_VAR_THREADS_QUEUE_DIR "ioctl_queue_dir"
#define ACL_DEF_THREADS_QUEUE_DIR "/opt/acl_master/var/queue"
extern char *acl_var_threads_queue_dir;
#define ACL_VAR_THREADS_OWNER "ioctl_owner"
#define ACL_DEF_THREADS_OWNER "root"
extern char *acl_var_threads_owner;
#define ACL_VAR_THREADS_DELAY_SEC "ioctl_delay_sec"
#define ACL_DEF_THREADS_DELAY_SEC 1
extern int acl_var_threads_delay_sec;
#define ACL_VAR_THREADS_DELAY_USEC "ioctl_delay_usec"
#define ACL_DEF_THREADS_DELAY_USEC 5000
extern int acl_var_threads_delay_usec;
#define ACL_VAR_THREADS_EVENT_MODE "ioctl_event_mode"
#ifdef ACL_UNIX
#define ACL_DEF_THREADS_EVENT_MODE "kernel"
#else
#define ACL_DEF_THREADS_EVENT_MODE "select"
#endif
extern char *acl_var_threads_event_mode;
#define ACL_VAR_THREADS_DAEMON_TIMEOUT "ioctl_daemon_timeout"
#define ACL_DEF_THREADS_DAEMON_TIMEOUT 1800
extern int acl_var_threads_daemon_timeout;
#define ACL_VAR_THREADS_MASTER_MAXPROC "master_maxproc"
#define ACL_DEF_THREADS_MASTER_MAXPROC 1
extern int acl_var_threads_master_maxproc;
#define ACL_VAR_THREADS_MAX_ACCEPT "ioctl_max_accept"
#define ACL_DEF_THREADS_MAX_ACCEPT 15
extern int acl_var_threads_max_accept;
#define ACL_VAR_THREADS_ENABLE_DOG "ioctl_enable_dog"
#ifdef ACL_UNIX
#define ACL_DEF_THREADS_ENABLE_DOG 0
#else
#define ACL_DEF_THREADS_ENABLE_DOG 1
#endif
extern int acl_var_threads_enable_dog;
#define ACL_VAR_THREADS_QUICK_ABORT "ioctl_quick_abort"
#define ACL_DEF_THREADS_QUICK_ABORT 1
extern int acl_var_threads_quick_abort;
#define ACL_VAR_THREADS_ENABLE_CORE "ioctl_enable_core"
#define ACL_DEF_THREADS_ENABLE_CORE 1
extern int acl_var_threads_enable_core;
#define ACL_VAR_THREADS_DISABLE_CORE_ONEXIT "ioctl_disable_core_onexit"
#define ACL_DEF_THREADS_DISABLE_CORE_ONEXIT 1
extern int acl_var_threads_disable_core_onexit;
#define ACL_VAR_THREADS_CORE_LIMIT "ioctl_core_limit"
#define ACL_DEF_THREADS_CORE_LIMIT -1
extern long long int acl_var_threads_core_limit;
#define ACL_VAR_THREADS_LOG_DEBUG "master_debug"
#define ACL_DEF_THREADS_LOG_DEBUG ""
extern char *acl_var_threads_log_debug;
#define ACL_VAR_THREADS_MAX_DEBUG "master_debug_max"
#define ACL_DEF_THREADS_MAX_DEBUG 1000
extern int acl_var_threads_max_debug;
#define ACL_VAR_THREADS_STATUS_NOTIFY "master_status_notify"
#define ACL_DEF_THREADS_STATUS_NOTIFY 1
extern int acl_var_threads_status_notify;
#define ACL_VAR_THREADS_DENY_BANNER "ioctl_deny_banner"
#define ACL_DEF_THREADS_DENY_BANNER "You'are not Welcome!"
extern char *acl_var_threads_deny_banner;
#define ACL_VAR_THREADS_ACCESS_ALLOW "ioctl_access_allow"
#define ACL_DEF_THREADS_ACCESS_ALLOW "all"
extern char *acl_var_threads_access_allow;
#define ACL_VAR_THREADS_BATADD "ioctl_batadd"
#define ACL_DEF_THREADS_BATADD 0
extern int acl_var_threads_batadd;
#define ACL_VAR_THREADS_SCHEDULE_WARN "ioctl_schedule_warn"
#define ACL_DEF_THREADS_SCHEDULE_WARN 100
extern int acl_var_threads_schedule_warn;
#define ACL_VAR_THREADS_SCHEDULE_WAIT "ioctl_schedule_wait"
#define ACL_DEF_THREADS_SCHEDULE_WAIT 50
extern int acl_var_threads_schedule_wait;
#define ACL_VAR_THREADS_CHECK_INTER "ioctl_check_inter"
#define ACL_DEF_THREADS_CHECK_INTER 100
extern int acl_var_threads_check_inter;
#define ACL_VAR_THREADS_QLEN_WARN "ioctl_qlen_warn"
#define ACL_DEF_THREADS_QLEN_WARN 0
extern int acl_var_threads_qlen_warn;
#define ACL_VAR_THREADS_DISPATCH_ADDR "ioctl_dispatch_addr"
#define ACL_DEF_THREADS_DISPATCH_ADDR ""
extern char *acl_var_threads_dispatch_addr;
#define ACL_VAR_THREADS_DISPATCH_TYPE "ioctl_dispatch_type"
#define ACL_DEF_THREADS_DISPATCH_TYPE "default"
extern char *acl_var_threads_dispatch_type;
#define ACL_VAR_THREADS_MASTER_SERVICE "master_service"
#define ACL_DEF_THREADS_MASTER_SERVICE ""
extern char *acl_var_threads_master_service;
#define ACL_VAR_THREADS_MASTER_REUSEPORT "master_reuseport"
#define ACL_DEF_THREADS_MASTER_REUSEPORT ""
extern char *acl_var_threads_master_reuseport;
#ifdef __cplusplus

View File

@ -11,72 +11,25 @@ extern "C" {
#ifdef ACL_UNIX
extern int acl_var_trigger_pid; /* get by call getpid() */
extern int acl_var_trigger_pid; /* get by call getpid() */
extern char *acl_var_trigger_procname; /* get from trigger_main()'s argv[0] */
extern char *acl_var_trigger_log_file; /* get from getenv("LOG") */
#define ACL_VAR_TRIGGER_BUF_SIZE "trigger_buf_size"
#define ACL_DEF_TRIGGER_BUF_SIZE 81920
extern int acl_var_trigger_buf_size;
#define ACL_VAR_TRIGGER_RW_TIMEOUT "trigger_rw_timeout"
#define ACL_DEF_TRIGGER_RW_TIMEOUT 30
extern int acl_var_trigger_rw_timeout;
#define ACL_VAR_TRIGGER_IN_FLOW_DELAY "trigger_in_flow_delay"
#define ACL_DEF_TRIGGER_IN_FLOW_DELAY 1
extern int acl_var_trigger_in_flow_delay;
#define ACL_VAR_TRIGGER_IDLE_LIMIT "trigger_idle_limit"
#define ACL_DEF_TRIGGER_IDLE_LIMIT 0
extern int acl_var_trigger_idle_limit;
#define ACL_VAR_TRIGGER_QUEUE_DIR "trigger_queue_dir"
#define ACL_DEF_TRIGGER_QUEUE_DIR "/opt/acl_master/var/queue"
extern char *acl_var_trigger_queue_dir;
#define ACL_VAR_TRIGGER_PID_DIR "trigger_pid_dir"
#define ACL_DEF_TRIGGER_PID_DIR "/opt/acl_master/var/pid"
extern char *acl_var_trigger_pid_dir;
#define ACL_VAR_TRIGGER_OWNER "trigger_owner"
#define ACL_DEF_TRIGGER_OWNER "trigger"
extern char *acl_var_trigger_owner;
#define ACL_VAR_TRIGGER_DELAY_SEC "trigger_delay_sec"
#define ACL_DEF_TRIGGER_DELAY_SEC 1
extern int acl_var_trigger_delay_sec;
#define ACL_VAR_TRIGGER_DELAY_USEC "trigger_delay_usec"
#define ACL_DEF_TRIGGER_DELAY_USEC 5000
extern int acl_var_trigger_delay_usec;
#define ACL_VAR_TRIGGER_DAEMON_TIMEOUT "trigger_daemon_timeout"
#define ACL_DEF_TRIGGER_DAEMON_TIMEOUT 1800
extern int acl_var_trigger_daemon_timeout;
#define ACL_VAR_TRIGGER_USE_LIMIT "trigger_use_limit"
#define ACL_DEF_TRIGGER_USE_LIMIT 0
extern int acl_var_trigger_use_limit;
#define ACL_VAR_TRIGGER_ENABLE_CORE "trigger_enable_core"
#define ACL_DEF_TRIGGER_ENABLE_CORE 1
extern int acl_var_trigger_enable_core;
#define ACL_VAR_TRIGGER_DISABLE_CORE_ONEXIT "trigger_disable_core_onexit"
#define ACL_DEF_TRIGGER_DISABLE_CORE_ONEXIT 1
extern int acl_var_trigger_disable_core_onexit;
#define ACL_VAR_TRIGGER_CORE_LIMIT "trigger_core_limit"
#define ACL_DEF_TRIGGER_CORE_LIMIT -1
extern long long int acl_var_trigger_core_limit;
#define ACL_VAR_TRIGGER_LOG_DEBUG "master_debug"
#define ACL_DEF_TRIGGER_LOG_DEBUG ""
extern char *acl_var_trigger_log_debug;
#define ACL_VAR_TRIGGER_MAX_DEBUG "master_debug_max"
#define ACL_DEF_TRIGGER_MAX_DEBUG 1000
extern int acl_var_trigger_max_debug;
#endif /* ACL_UNIX */

View File

@ -13,104 +13,30 @@ extern int acl_var_udp_pid;
extern char *acl_var_udp_procname;
extern char *acl_var_udp_log_file;
#define ACL_VAR_UDP_BUF_SIZE "udp_bufsize"
#define ACL_DEF_UDP_BUF_SIZE 4096
extern int acl_var_udp_buf_size;
#define ACL_VAR_UDP_RW_TIMEOUT "udp_rw_timeout"
#define ACL_DEF_UDP_RW_TIMEOUT 30
extern int acl_var_udp_rw_timeout;
#define ACL_VAR_UDP_USE_LIMIT "udp_use_limit"
#define ACL_DEF_UDP_USE_LIMIT 0
extern long long int acl_var_udp_use_limit;
#define ACL_VAR_UDP_IDLE_LIMIT "udp_idle_limit"
#define ACL_DEF_UDP_IDLE_LIMIT 0
extern int acl_var_udp_idle_limit;
#define ACL_VAR_UDP_QUEUE_DIR "udp_queue_dir"
#define ACL_DEF_UDP_QUEUE_DIR "/opt/acl_master/var/queue"
extern char *acl_var_udp_queue_dir;
#define ACL_VAR_UDP_PID_DIR "udp_pid_dir"
#define ACL_DEF_UDP_PID_DIR "/opt/acl_master/var/pid"
extern char *acl_var_udp_pid_dir;
#define ACL_VAR_UDP_ACCESS_ALLOW "udp_access_allow"
#define ACL_DEF_UDP_ACCESS_ALLOW "0.0.0.0:255.255.255.255"
extern char *acl_var_udp_access_allow;
#define ACL_VAR_UDP_OWNER "udp_owner"
#define ACL_DEF_UDP_OWNER "root"
extern char *acl_var_udp_owner;
#define ACL_VAR_UDP_DELAY_SEC "udp_delay_sec"
#define ACL_DEF_UDP_DELAY_SEC 1
extern int acl_var_udp_delay_sec;
#define ACL_VAR_UDP_DELAY_USEC "udp_delay_usec"
#define ACL_DEF_UDP_DELAY_USEC 5000
extern int acl_var_udp_delay_usec;
#define ACL_VAR_UDP_EVENT_MODE "udp_event_mode"
#define ACL_DEF_UDP_EVENT_MODE "select"
extern char *acl_var_udp_event_mode;
#define ACL_VAR_UDP_DAEMON_TIMEOUT "udp_daemon_timeout"
#define ACL_DEF_UDP_DAEMON_TIMEOUT 1800
extern int acl_var_udp_daemon_timeout;
#define ACL_VAR_UDP_MASTER_MAXPROC "master_maxproc"
#define ACL_DEF_UDP_MASTER_MAXPROC 1
extern int acl_var_udp_master_maxproc;
#define ACL_VAR_UDP_ENABLE_CORE "udp_enable_core"
#define ACL_DEF_UDP_ENABLE_CORE 1
extern int acl_var_udp_enable_core;
#define ACL_VAR_UDP_DISABLE_CORE_ONEXIT "udp_disable_core_onexit"
#define ACL_DEF_UDP_DISABLE_CORE_ONEXIT 1
extern int acl_var_udp_disable_core_onexit;
#define ACL_VAR_UDP_CORE_LIMIT "udp_core_limit"
#define ACL_DEF_UDP_CORE_LIMIT -1
extern long long int acl_var_udp_core_limit;
#define ACL_VAR_UDP_LOG_DEBUG "master_debug"
#define ACL_DEF_UDP_LOG_DEBUG ""
extern char *acl_var_udp_log_debug;
#define ACL_VAR_UDP_MAX_DEBUG "master_debug_max"
#define ACL_DEF_UDP_MAX_DEBUG 1000
extern int acl_var_udp_max_debug;
#define ACL_VAR_UDP_THREADS "udp_threads"
#define ACL_DEF_UDP_THREADS 1
extern int acl_var_udp_threads;
#define ACL_VAR_UDP_THREADS_DETACHED "udp_threads_detached"
#define ACL_DEF_UDP_THREADS_DETACHED 1
extern int acl_var_udp_threads_detached;
#define ACL_VAR_UDP_FATAL_ON_BIND_ERROR "udp_fatal_on_bind_error"
#define ACL_DEF_UDP_FATAL_ON_BIND_ERROR 0
extern int acl_var_udp_fatal_on_bind_error;
#define ACL_VAR_UDP_MONITOR_NETLINK "udp_monitor_netlink"
#define ACL_DEF_UDP_MONITOR_NETLINK 1
extern int acl_var_udp_monitor_netlink;
#define ACL_VAR_UDP_NON_BLOCK "master_nonblock"
#define ACL_DEF_UDP_NON_BLOCK 1
extern int acl_var_udp_non_block;
#define ACL_VAR_UDP_REUSEPORT "master_reuseport"
#define ACL_DEF_UDP_REUSEPORT "yes"
extern char *acl_var_udp_reuse_port;
#define ACL_VAR_UDP_PRIVATE "master_private"
#define ACL_DEF_UDP_PRIVATE "n"
extern char *acl_var_udp_private;
#ifdef __cplusplus

View File

@ -84,44 +84,25 @@ int acl_var_aio_max_debug;
int acl_var_aio_status_notify;
static ACL_CONFIG_INT_TABLE __conf_int_tab[] = {
{ ACL_VAR_AIO_BUF_SIZE, ACL_DEF_AIO_BUF_SIZE,
&acl_var_aio_buf_size, 0, 0 },
{ ACL_VAR_AIO_RW_TIMEOUT, ACL_DEF_AIO_RW_TIMEOUT,
&acl_var_aio_rw_timeout, 0, 0 },
{ ACL_VAR_AIO_IN_FLOW_DELAY, ACL_DEF_AIO_IN_FLOW_DELAY,
&acl_var_aio_in_flow_delay, 0, 0 },
{ ACL_VAR_AIO_MAX_THREADS, ACL_DEF_AIO_MAX_THREADS,
&acl_var_aio_max_threads, 0, 0},
{ ACL_VAR_AIO_THREAD_IDLE_LIMIT, ACL_DEF_AIO_THREAD_IDLE_LIMIT,
&acl_var_aio_thread_idle_limit, 0, 0 },
{ ACL_VAR_AIO_IDLE_LIMIT, ACL_DEF_AIO_IDLE_LIMIT,
&acl_var_aio_idle_limit, 0, 0 },
{ ACL_VAR_AIO_DELAY_SEC, ACL_DEF_AIO_DELAY_SEC,
&acl_var_aio_delay_sec, 0, 0 },
{ ACL_VAR_AIO_DELAY_USEC, ACL_DEF_AIO_DELAY_USEC,
&acl_var_aio_delay_usec, 0, 0 },
{ ACL_VAR_AIO_DAEMON_TIMEOUT, ACL_DEF_AIO_DAEMON_TIMEOUT,
&acl_var_aio_daemon_timeout, 0, 0 },
{ ACL_VAR_AIO_USE_LIMIT, ACL_DEF_AIO_USE_LIMIT,
&acl_var_aio_use_limit, 0, 0 },
{ ACL_VAR_AIO_MASTER_MAXPROC, ACL_DEF_AIO_MASTER_MAXPROC,
&acl_var_aio_master_maxproc, 0, 0 },
{ ACL_VAR_AIO_MAX_ACCEPT, ACL_DEF_AIO_MAX_ACCEPT,
&acl_var_aio_max_accept, 0, 0 },
{ ACL_VAR_AIO_MIN_NOTIFY, ACL_DEF_AIO_MIN_NOTIFY,
&acl_var_aio_min_notify, 0, 0 },
{ ACL_VAR_AIO_QUICK_ABORT, ACL_DEF_AIO_QUICK_ABORT,
&acl_var_aio_quick_abort, 0, 0 },
{ ACL_VAR_AIO_ENABLE_CORE, ACL_DEF_AIO_ENABLE_CORE,
&acl_var_aio_enable_core, 0, 0 },
{ ACL_VAR_AIO_DISABLE_CORE_ONEXIT, ACL_DEF_AIO_DISABLE_CORE_ONEXIT,
&acl_var_aio_disable_core_onexit, 0, 0 },
{ ACL_VAR_AIO_ACCEPT_TIMER, ACL_DEF_AIO_ACCEPT_TIMER,
&acl_var_aio_accept_timer, 0, 0 },
{ ACL_VAR_AIO_MAX_DEBUG, ACL_DEF_AIO_MAX_DEBUG,
&acl_var_aio_max_debug, 0, 0 },
{ ACL_VAR_AIO_STATUS_NOTIFY, ACL_DEF_AIO_STATUS_NOTIFY,
&acl_var_aio_status_notify, 0, 0 },
{ "aio_buf_size", 81920, &acl_var_aio_buf_size, 0, 0 },
{ "aio_rw_timeout", 30, &acl_var_aio_rw_timeout, 0, 0 },
{ "aio_in_flow_delay", 1, &acl_var_aio_in_flow_delay, 0, 0 },
{ "aio_max_threads", 0, &acl_var_aio_max_threads, 0, 0},
{ "aio_thread_idle_limit", 0, &acl_var_aio_thread_idle_limit, 0, 0 },
{ "aio_idle_limit", 0, &acl_var_aio_idle_limit, 0, 0 },
{ "aio_delay_sec", 1, &acl_var_aio_delay_sec, 0, 0 },
{ "aio_delay_usec", 5000, &acl_var_aio_delay_usec, 0, 0 },
{ "aio_daemon_timeout", 1800, &acl_var_aio_daemon_timeout, 0, 0 },
{ "aio_use_limit", 0, &acl_var_aio_use_limit, 0, 0 },
{ "master_maxproc", 1, &acl_var_aio_master_maxproc, 0, 0 },
{ "aio_max_accept", 10, &acl_var_aio_max_accept, 0, 0 },
{ "aio_min_notify", 10, &acl_var_aio_min_notify, 0, 0 },
{ "aio_quick_abort", 1, &acl_var_aio_quick_abort, 0, 0 },
{ "aio_enable_core", 1, &acl_var_aio_enable_core, 0, 0 },
{ "aio_disable_core_onexit", 1, &acl_var_aio_disable_core_onexit, 0, 0 },
{ "aio_accept_timer", 0, &acl_var_aio_accept_timer, 0, 0 },
{ "master_debug_max", 1000, &acl_var_aio_max_debug, 0, 0 },
{ "master_status_notify", 1, &acl_var_aio_status_notify, 0, 0 },
{ 0, 0, 0, 0, 0 },
};
@ -129,8 +110,7 @@ static ACL_CONFIG_INT_TABLE __conf_int_tab[] = {
long long int acl_var_aio_core_limit;
static ACL_CONFIG_INT64_TABLE __conf_int64_tab[] = {
{ ACL_VAR_AIO_CORE_LIMIT, ACL_DEF_AIO_CORE_LIMIT,
&acl_var_aio_core_limit, 0, 0 },
{ "aio_core_limit", -1, &acl_var_aio_core_limit, 0, 0 },
{ 0, 0, 0, 0, 0 },
};
@ -149,26 +129,16 @@ char *acl_var_aio_dispatch_type;
char *acl_var_aio_deny_info;
static ACL_CONFIG_STR_TABLE __conf_str_tab[] = {
{ ACL_VAR_AIO_QUEUE_DIR, ACL_DEF_AIO_QUEUE_DIR,
&acl_var_aio_queue_dir },
{ ACL_VAR_AIO_OWNER, ACL_DEF_AIO_OWNER,
&acl_var_aio_owner },
{ ACL_VAR_AIO_PID_DIR, ACL_DEF_AIO_PID_DIR,
&acl_var_aio_pid_dir },
{ ACL_VAR_AIO_ACCESS_ALLOW, ACL_DEF_AIO_ACCESS_ALLOW,
&acl_var_aio_access_allow },
{ ACL_VAR_AIO_EVENT_MODE, ACL_DEF_AIO_EVENT_MODE,
&acl_var_aio_event_mode },
{ ACL_VAR_AIO_ACCEPT_ALONE, ACL_DEF_AIO_ACCEPT_ALONE,
&acl_var_aio_accept_alone },
{ ACL_VAR_AIO_LOG_DEBUG, ACL_DEF_AIO_LOG_DEBUG,
&acl_var_aio_log_debug },
{ ACL_VAR_AIO_DISPATCH_ADDR, ACL_DEF_AIO_DISPATCH_ADDR,
&acl_var_aio_dispatch_addr },
{ ACL_VAR_AIO_DISPATCH_TYPE, ACL_DEF_AIO_DISPATCH_TYPE,
&acl_var_aio_dispatch_type },
{ ACL_VAR_AIO_DENY_INFO, ACL_DEF_AIO_DENY_INFO,
&acl_var_aio_deny_info },
{ "aio_queue_dir", "/opt/acl_master/var/queue", &acl_var_aio_queue_dir },
{ "aio_owner", "root", &acl_var_aio_owner },
{ "aio_pid_dir", "/opt/acl_master/var/pid", &acl_var_aio_pid_dir },
{ "aio_access_allow", "0.0.0.0:255.255.255.255", &acl_var_aio_access_allow },
{ "aio_event_mode", "select", &acl_var_aio_event_mode },
{ "aio_accept_alone", "yes", &acl_var_aio_accept_alone },
{ "master_debug", "", &acl_var_aio_log_debug },
{ "aio_dispatch_addr", "", &acl_var_aio_dispatch_addr },
{ "aio_dispatch_type", "default", &acl_var_aio_dispatch_type },
{ "master_deny_info", "you're not welcome!", &acl_var_aio_deny_info },
{ 0, 0, 0 },
};

View File

@ -75,28 +75,17 @@ int acl_var_single_disable_core_onexit;
int acl_var_single_max_debug;
static ACL_CONFIG_INT_TABLE __conf_int_tab[] = {
{ ACL_VAR_SINGLE_BUF_SIZE, ACL_DEF_SINGLE_BUF_SIZE,
&acl_var_single_buf_size, 0, 0 },
{ ACL_VAR_SINGLE_RW_TIMEOUT, ACL_DEF_SINGLE_RW_TIMEOUT,
&acl_var_single_rw_timeout, 0, 0 },
{ ACL_VAR_SINGLE_IN_FLOW_DELAY, ACL_DEF_SINGLE_IN_FLOW_DELAY,
&acl_var_single_in_flow_delay, 0, 0 },
{ ACL_VAR_SINGLE_IDLE_LIMIT, ACL_DEF_SINGLE_IDLE_LIMIT,
&acl_var_single_idle_limit, 0, 0 },
{ ACL_VAR_SINGLE_DELAY_SEC, ACL_DEF_SINGLE_DELAY_SEC,
&acl_var_single_delay_sec, 0, 0 },
{ ACL_VAR_SINGLE_DELAY_USEC, ACL_DEF_SINGLE_DELAY_USEC,
&acl_var_single_delay_usec, 0, 0 },
{ ACL_VAR_SINGLE_DAEMON_TIMEOUT, ACL_DEF_SINGLE_DAEMON_TIMEOUT,
&acl_var_single_daemon_timeout, 0, 0 },
{ ACL_VAR_SINGLE_USE_LIMIT, ACL_DEF_SINGLE_USE_LIMIT,
&acl_var_single_use_limit, 0, 0 },
{ ACL_VAR_SINGLE_ENABLE_CORE, ACL_DEF_SINGLE_ENABLE_CORE,
&acl_var_single_enable_core, 0, 0 },
{ ACL_VAR_SINGLE_DISABLE_CORE_ONEXIT, ACL_DEF_SINGLE_DISABLE_CORE_ONEXIT,
&acl_var_single_disable_core_onexit, 0, 0 },
{ ACL_VAR_SINGLE_MAX_DEBUG, ACL_DEF_SINGLE_MAX_DEBUG,
&acl_var_single_max_debug, 0, 0 },
{ "single_buf_size", 81920, &acl_var_single_buf_size, 0, 0 },
{ "single_rw_timeout", 30, &acl_var_single_rw_timeout, 0, 0 },
{ "single_in_flow_delay", 1, &acl_var_single_in_flow_delay, 0, 0 },
{ "single_idle_limit", 0, &acl_var_single_idle_limit, 0, 0 },
{ "single_delay_sec", 1, &acl_var_single_delay_sec, 0, 0 },
{ "single_delay_usec", 5000, &acl_var_single_delay_usec, 0, 0 },
{ "single_daemon_timeout", 1800, &acl_var_single_daemon_timeout, 0, 0 },
{ "single_use_limit", 0, &acl_var_single_use_limit, 0, 0 },
{ "single_enable_core", 1, &acl_var_single_enable_core, 0, 0 },
{ "single_disable_core_onexit", 1, &acl_var_single_disable_core_onexit, 0, 0 },
{ "master_debug_max", 1000, &acl_var_single_max_debug, 0, 0 },
{ 0, 0, 0, 0, 0 },
};
@ -104,8 +93,7 @@ static ACL_CONFIG_INT_TABLE __conf_int_tab[] = {
long long int acl_var_single_core_limit;
static ACL_CONFIG_INT64_TABLE __conf_int64_tab[] = {
{ ACL_VAR_SINGLE_CORE_LIMIT, ACL_DEF_SINGLE_CORE_LIMIT,
&acl_var_single_core_limit, 0, 0 },
{ "single_core_limit", -1, &acl_var_single_core_limit, 0, 0 },
{ 0, 0, 0, 0, 0 },
};
@ -115,14 +103,10 @@ char *acl_var_single_pid_dir;
char *acl_var_single_log_debug;
static ACL_CONFIG_STR_TABLE __conf_str_tab[] = {
{ ACL_VAR_SINGLE_QUEUE_DIR, ACL_DEF_SINGLE_QUEUE_DIR,
&acl_var_single_queue_dir },
{ ACL_VAR_SINGLE_OWNER, ACL_DEF_SINGLE_OWNER,
&acl_var_single_owner },
{ ACL_VAR_SINGLE_PID_DIR, ACL_DEF_SINGLE_PID_DIR,
&acl_var_single_pid_dir },
{ ACL_VAR_SINGLE_LOG_DEBUG, ACL_DEF_SINGLE_LOG_DEBUG,
&acl_var_single_log_debug },
{ "single_queue_dir", "/opt/acl_master/var/queue", &acl_var_single_queue_dir },
{ "single_owner", "root", &acl_var_single_owner },
{ "single_pid_dir", "/opt/acl_master/var/pid", &acl_var_single_pid_dir },
{ "master_debug", "", &acl_var_single_log_debug },
{ 0, 0, 0 },
};

View File

@ -90,52 +90,33 @@ int acl_var_threads_schedule_warn;
int acl_var_threads_schedule_wait;
static ACL_CONFIG_INT_TABLE __conf_int_tab[] = {
{ ACL_VAR_THREADS_BUF_SIZE, ACL_DEF_THREADS_BUF_SIZE,
&acl_var_threads_buf_size, 0, 0 },
{ ACL_VAR_THREADS_RW_TIMEOUT, ACL_DEF_THREADS_RW_TIMEOUT,
&acl_var_threads_rw_timeout, 0, 0 },
{ ACL_VAR_THREADS_POOL_LIMIT, ACL_DEF_THREADS_POOL_LIMIT,
&acl_var_threads_pool_limit, 0, 0 },
{ ACL_VAR_THREADS_THREAD_STACKSIZE, ACL_DEF_THREADS_THREAD_STACKSIZE,
&acl_var_threads_thread_stacksize, 0, 0 },
{ ACL_VAR_THREADS_THREAD_IDLE, ACL_DEF_THREADS_THREAD_IDLE,
&acl_var_threads_thread_idle, 0, 0 },
{ ACL_VAR_THREADS_IDLE_LIMIT, ACL_DEF_THREADS_IDLE_LIMIT,
&acl_var_threads_idle_limit, 0, 0 },
{ ACL_VAR_THREADS_DELAY_SEC, ACL_DEF_THREADS_DELAY_SEC,
&acl_var_threads_delay_sec, 0, 0 },
{ ACL_VAR_THREADS_DELAY_USEC, ACL_DEF_THREADS_DELAY_USEC,
&acl_var_threads_delay_usec, 0, 0 },
{ ACL_VAR_THREADS_DAEMON_TIMEOUT, ACL_DEF_THREADS_DAEMON_TIMEOUT,
&acl_var_threads_daemon_timeout, 0, 0 },
{ ACL_VAR_THREADS_USE_LIMIT, ACL_DEF_THREADS_USE_LIMIT,
&acl_var_threads_use_limit, 0, 0 },
{ ACL_VAR_THREADS_MASTER_MAXPROC, ACL_DEF_THREADS_MASTER_MAXPROC,
&acl_var_threads_master_maxproc, 0, 0},
{ ACL_VAR_THREADS_MAX_ACCEPT, ACL_DEF_THREADS_MAX_ACCEPT,
&acl_var_threads_max_accept, 0, 0 },
{ ACL_VAR_THREADS_ENABLE_DOG, ACL_DEF_THREADS_ENABLE_DOG,
&acl_var_threads_enable_dog, 0, 0 },
{ ACL_VAR_THREADS_QUICK_ABORT, ACL_DEF_THREADS_QUICK_ABORT,
&acl_var_threads_quick_abort, 0, 0 },
{ ACL_VAR_THREADS_ENABLE_CORE, ACL_DEF_THREADS_ENABLE_CORE,
&acl_var_threads_enable_core, 0, 0 },
{ ACL_VAR_THREADS_DISABLE_CORE_ONEXIT, ACL_DEF_THREADS_DISABLE_CORE_ONEXIT,
&acl_var_threads_disable_core_onexit, 0, 0 },
{ ACL_VAR_THREADS_MAX_DEBUG, ACL_DEF_THREADS_MAX_DEBUG,
&acl_var_threads_max_debug, 0, 0 },
{ ACL_VAR_THREADS_STATUS_NOTIFY, ACL_DEF_THREADS_STATUS_NOTIFY,
&acl_var_threads_status_notify, 0, 0 },
{ ACL_VAR_THREADS_BATADD, ACL_DEF_THREADS_BATADD,
&acl_var_threads_batadd, 0, 0 },
{ ACL_VAR_THREADS_QLEN_WARN, ACL_DEF_THREADS_QLEN_WARN,
&acl_var_threads_qlen_warn, 0, 0 },
{ ACL_VAR_THREADS_SCHEDULE_WARN, ACL_DEF_THREADS_SCHEDULE_WARN,
&acl_var_threads_schedule_warn, 0, 0 },
{ ACL_VAR_THREADS_SCHEDULE_WAIT, ACL_DEF_THREADS_SCHEDULE_WAIT,
&acl_var_threads_schedule_wait, 0, 0 },
{ ACL_VAR_THREADS_CHECK_INTER, ACL_DEF_THREADS_CHECK_INTER,
&acl_var_threads_check_inter, 0, 0 },
{ "master_maxproc", 1, &acl_var_threads_master_maxproc, 0, 0},
{ "ioctl_buf_size", 8192, &acl_var_threads_buf_size, 0, 0 },
{ "ioctl_rw_timeout", 30, &acl_var_threads_rw_timeout, 0, 0 },
{ "ioctl_max_threads", 50, &acl_var_threads_pool_limit, 0, 0 },
{ "ioctl_stacksize", 0, &acl_var_threads_thread_stacksize, 0, 0 },
{ "ioctl_thread_idle_limit", 120, &acl_var_threads_thread_idle, 0, 0 },
{ "ioctl_idle_limit", 0, &acl_var_threads_idle_limit, 0, 0 },
{ "ioctl_use_limit", 0, &acl_var_threads_use_limit, 0, 0 },
{ "ioctl_delay_sec", 1, &acl_var_threads_delay_sec, 0, 0 },
{ "ioctl_delay_usec", 5000, &acl_var_threads_delay_usec, 0, 0 },
{ "ioctl_daemon_timeout", 1800, &acl_var_threads_daemon_timeout, 0, 0 },
{ "ioctl_max_accept", 15, &acl_var_threads_max_accept, 0, 0 },
#ifdef ACL_UNIX
{ "ioctl_enable_dog", 0, &acl_var_threads_enable_dog, 0, 0 },
#else
{ "ioctl_enable_dog", 1, &acl_var_threads_enable_dog, 0, 0 },
#endif
{ "ioctl_quick_abort", 1, &acl_var_threads_quick_abort, 0, 0 },
{ "ioctl_enable_core", 1, &acl_var_threads_enable_core, 0, 0 },
{ "ioctl_disable_core_onexit", 1, &acl_var_threads_disable_core_onexit, 0, 0 },
{ "master_debug_max", 1000, &acl_var_threads_max_debug, 0, 0 },
{ "master_status_notify", 1, &acl_var_threads_status_notify, 0, 0 },
{ "ioctl_batadd", 0, &acl_var_threads_batadd, 0, 0 },
{ "ioctl_qlen_warn", 0, &acl_var_threads_qlen_warn, 0, 0 },
{ "ioctl_schedule_warn", 100, &acl_var_threads_schedule_warn, 0, 0 },
{ "ioctl_schedule_wait", 50, &acl_var_threads_schedule_wait, 0, 0 },
{ "ioctl_check_inter", 100, &acl_var_threads_check_inter, 0, 0 },
{ 0, 0, 0, 0, 0 },
};
@ -143,8 +124,7 @@ static ACL_CONFIG_INT_TABLE __conf_int_tab[] = {
long long int acl_var_threads_core_limit;
static ACL_CONFIG_INT64_TABLE __conf_int64_tab[] = {
{ ACL_VAR_THREADS_CORE_LIMIT, ACL_DEF_THREADS_CORE_LIMIT,
&acl_var_threads_core_limit, 0, 0 },
{ "ioctl_core_limit", -1, &acl_var_threads_core_limit, 0, 0 },
{ 0, 0, 0, 0, 0 },
};
@ -162,26 +142,20 @@ char *acl_var_threads_master_reuseport;
static int var_threads_master_reuseport = 0;
static ACL_CONFIG_STR_TABLE __conf_str_tab[] = {
{ ACL_VAR_THREADS_QUEUE_DIR, ACL_DEF_THREADS_QUEUE_DIR,
&acl_var_threads_queue_dir },
{ ACL_VAR_THREADS_OWNER, ACL_DEF_THREADS_OWNER,
&acl_var_threads_owner },
{ ACL_VAR_THREADS_EVENT_MODE, ACL_DEF_THREADS_EVENT_MODE,
&acl_var_threads_event_mode },
{ ACL_VAR_THREADS_LOG_DEBUG, ACL_DEF_THREADS_LOG_DEBUG,
&acl_var_threads_log_debug },
{ ACL_VAR_THREADS_DENY_BANNER, ACL_DEF_THREADS_DENY_BANNER,
&acl_var_threads_deny_banner },
{ ACL_VAR_THREADS_ACCESS_ALLOW, ACL_DEF_THREADS_ACCESS_ALLOW,
&acl_var_threads_access_allow },
{ ACL_VAR_THREADS_DISPATCH_ADDR, ACL_DEF_THREADS_DISPATCH_ADDR,
&acl_var_threads_dispatch_addr },
{ ACL_VAR_THREADS_DISPATCH_TYPE, ACL_DEF_THREADS_DISPATCH_TYPE,
&acl_var_threads_dispatch_type },
{ ACL_VAR_THREADS_MASTER_SERVICE, ACL_DEF_THREADS_MASTER_SERVICE,
&acl_var_threads_master_service },
{ ACL_VAR_THREADS_MASTER_REUSEPORT, ACL_DEF_THREADS_MASTER_REUSEPORT,
&acl_var_threads_master_reuseport },
{ "ioctl_queue_dir", "/opt/acl_master/var/queue", &acl_var_threads_queue_dir },
{ "ioctl_owner", "root", &acl_var_threads_owner },
#ifdef ACL_UNIX
{ "ioctl_event_mode", "kernel", &acl_var_threads_event_mode },
#else
{ "ioctl_event_mode", "select", &acl_var_threads_event_mode },
#endif
{ "master_debug", "", &acl_var_threads_log_debug },
{ "ioctl_deny_banner", "You'are not Welcome!", &acl_var_threads_deny_banner },
{ "ioctl_access_allow", "all", &acl_var_threads_access_allow },
{ "ioctl_dispatch_addr", "", &acl_var_threads_dispatch_addr },
{ "ioctl_dispatch_type", "default", &acl_var_threads_dispatch_type },
{ "master_service", "", &acl_var_threads_master_service },
{ "master_reuseport", "", &acl_var_threads_master_reuseport },
{ 0, 0, 0 },
};

View File

@ -73,28 +73,17 @@ int acl_var_trigger_disable_core_onexit;
int acl_var_trigger_max_debug;
static ACL_CONFIG_INT_TABLE __conf_int_tab[] = {
{ ACL_VAR_TRIGGER_BUF_SIZE, ACL_DEF_TRIGGER_BUF_SIZE,
&acl_var_trigger_buf_size, 0, 0 },
{ ACL_VAR_TRIGGER_RW_TIMEOUT, ACL_DEF_TRIGGER_RW_TIMEOUT,
&acl_var_trigger_rw_timeout, 0, 0 },
{ ACL_VAR_TRIGGER_IN_FLOW_DELAY, ACL_DEF_TRIGGER_IN_FLOW_DELAY,
&acl_var_trigger_in_flow_delay, 0, 0 },
{ ACL_VAR_TRIGGER_IDLE_LIMIT, ACL_DEF_TRIGGER_IDLE_LIMIT,
&acl_var_trigger_idle_limit, 0, 0 },
{ ACL_VAR_TRIGGER_DELAY_SEC, ACL_DEF_TRIGGER_DELAY_SEC,
&acl_var_trigger_delay_sec, 0, 0 },
{ ACL_VAR_TRIGGER_DELAY_USEC, ACL_DEF_TRIGGER_DELAY_USEC,
&acl_var_trigger_delay_usec, 0, 0 },
{ ACL_VAR_TRIGGER_DAEMON_TIMEOUT, ACL_DEF_TRIGGER_DAEMON_TIMEOUT,
&acl_var_trigger_daemon_timeout, 0, 0 },
{ ACL_VAR_TRIGGER_USE_LIMIT, ACL_DEF_TRIGGER_USE_LIMIT,
&acl_var_trigger_use_limit, 0, 0 },
{ ACL_VAR_TRIGGER_ENABLE_CORE, ACL_DEF_TRIGGER_ENABLE_CORE,
&acl_var_trigger_enable_core, 0, 0 },
{ ACL_VAR_TRIGGER_DISABLE_CORE_ONEXIT, ACL_DEF_TRIGGER_DISABLE_CORE_ONEXIT,
&acl_var_trigger_disable_core_onexit, 0, 0 },
{ ACL_VAR_TRIGGER_MAX_DEBUG, ACL_DEF_TRIGGER_MAX_DEBUG,
&acl_var_trigger_max_debug, 0, 0 },
{ "trigger_buf_size", 81920, &acl_var_trigger_buf_size, 0, 0 },
{ "trigger_rw_timeout", 30, &acl_var_trigger_rw_timeout, 0, 0 },
{ "trigger_in_flow_delay", 1, &acl_var_trigger_in_flow_delay, 0, 0 },
{ "trigger_idle_limit", 0, &acl_var_trigger_idle_limit, 0, 0 },
{ "trigger_delay_sec", 1, &acl_var_trigger_delay_sec, 0, 0 },
{ "trigger_delay_usec", 5000, &acl_var_trigger_delay_usec, 0, 0 },
{ "trigger_daemon_timeout", 1800, &acl_var_trigger_daemon_timeout, 0, 0 },
{ "trigger_use_limit", 0, &acl_var_trigger_use_limit, 0, 0 },
{ "trigger_enable_core", 1, &acl_var_trigger_enable_core, 0, 0 },
{ "trigger_disable_core_onexit", 1, &acl_var_trigger_disable_core_onexit, 0, 0 },
{ "master_debug_max", 1000, &acl_var_trigger_max_debug, 0, 0 },
{ 0, 0, 0, 0, 0 },
};
@ -102,8 +91,7 @@ static ACL_CONFIG_INT_TABLE __conf_int_tab[] = {
long long int acl_var_trigger_core_limit;
static ACL_CONFIG_INT64_TABLE __conf_int64_tab[] = {
{ ACL_VAR_TRIGGER_CORE_LIMIT, ACL_DEF_TRIGGER_CORE_LIMIT,
&acl_var_trigger_core_limit, 0, 0 },
{ "trigger_core_limit", -1, &acl_var_trigger_core_limit, 0, 0 },
{ 0, 0, 0, 0, 0 },
};
@ -113,14 +101,10 @@ char *acl_var_trigger_pid_dir;
char *acl_var_trigger_log_debug;
static ACL_CONFIG_STR_TABLE __conf_str_tab[] = {
{ ACL_VAR_TRIGGER_QUEUE_DIR, ACL_DEF_TRIGGER_QUEUE_DIR,
&acl_var_trigger_queue_dir },
{ ACL_VAR_TRIGGER_OWNER, ACL_DEF_TRIGGER_OWNER,
&acl_var_trigger_owner },
{ ACL_VAR_TRIGGER_PID_DIR, ACL_DEF_TRIGGER_PID_DIR,
&acl_var_trigger_pid_dir },
{ ACL_VAR_TRIGGER_LOG_DEBUG, ACL_DEF_TRIGGER_LOG_DEBUG,
&acl_var_trigger_log_debug },
{ "trigger_queue_dir", "/opt/acl_master/var/queue", &acl_var_trigger_queue_dir },
{ "trigger_owner", "root", &acl_var_trigger_owner },
{ "trigger_pid_dir", "/opt/acl_master/var/pid", &acl_var_trigger_pid_dir },
{ "master_debug", "", &acl_var_trigger_log_debug },
{ 0, 0, 0 },
};

View File

@ -77,28 +77,17 @@ int acl_var_udp_max_debug;
int acl_var_udp_threads;
static ACL_CONFIG_INT_TABLE __conf_int_tab[] = {
{ ACL_VAR_UDP_BUF_SIZE, ACL_DEF_UDP_BUF_SIZE,
&acl_var_udp_buf_size, 0, 0 },
{ ACL_VAR_UDP_RW_TIMEOUT, ACL_DEF_UDP_RW_TIMEOUT,
&acl_var_udp_rw_timeout, 0, 0 },
{ ACL_VAR_UDP_IDLE_LIMIT, ACL_DEF_UDP_IDLE_LIMIT,
&acl_var_udp_idle_limit, 0, 0 },
{ ACL_VAR_UDP_DELAY_SEC, ACL_DEF_UDP_DELAY_SEC,
&acl_var_udp_delay_sec, 0, 0 },
{ ACL_VAR_UDP_DELAY_USEC, ACL_DEF_UDP_DELAY_USEC,
&acl_var_udp_delay_usec, 0, 0 },
{ ACL_VAR_UDP_DAEMON_TIMEOUT, ACL_DEF_UDP_DAEMON_TIMEOUT,
&acl_var_udp_daemon_timeout, 0, 0 },
{ ACL_VAR_UDP_MASTER_MAXPROC, ACL_DEF_UDP_MASTER_MAXPROC,
&acl_var_udp_master_maxproc, 0, 0},
{ ACL_VAR_UDP_ENABLE_CORE, ACL_DEF_UDP_ENABLE_CORE,
&acl_var_udp_enable_core, 0, 0 },
{ ACL_VAR_UDP_DISABLE_CORE_ONEXIT, ACL_DEF_UDP_DISABLE_CORE_ONEXIT,
&acl_var_udp_disable_core_onexit, 0, 0 },
{ ACL_VAR_UDP_MAX_DEBUG, ACL_DEF_UDP_MAX_DEBUG,
&acl_var_udp_max_debug, 0, 0 },
{ ACL_VAR_UDP_THREADS, ACL_DEF_UDP_THREADS,
&acl_var_udp_threads, 0, 0 },
{ "udp_bufsize", 4096, &acl_var_udp_buf_size, 0, 0 },
{ "udp_rw_timeout", 30, &acl_var_udp_rw_timeout, 0, 0 },
{ "udp_idle_limit", 0, &acl_var_udp_idle_limit, 0, 0 },
{ "udp_delay_sec", 1, &acl_var_udp_delay_sec, 0, 0 },
{ "udp_delay_usec", 5000, &acl_var_udp_delay_usec, 0, 0 },
{ "udp_daemon_timeout", 1800, &acl_var_udp_daemon_timeout, 0, 0 },
{ "master_maxproc", 1, &acl_var_udp_master_maxproc, 0, 0},
{ "udp_enable_core", 1, &acl_var_udp_enable_core, 0, 0 },
{ "udp_disable_core_onexit", 1, &acl_var_udp_disable_core_onexit, 0, 0 },
{ "master_debug_max", 1000, &acl_var_udp_max_debug, 0, 0 },
{ "udp_threads", 1, &acl_var_udp_threads, 0, 0 },
{ 0, 0, 0, 0, 0 },
};
@ -107,10 +96,8 @@ long long int acl_var_udp_use_limit;
long long int acl_var_udp_core_limit;
static ACL_CONFIG_INT64_TABLE __conf_int64_tab[] = {
{ ACL_VAR_UDP_USE_LIMIT, ACL_DEF_UDP_USE_LIMIT,
&acl_var_udp_use_limit, 0, 0 },
{ ACL_VAR_UDP_CORE_LIMIT, ACL_DEF_UDP_CORE_LIMIT,
&acl_var_udp_core_limit, 0, 0 },
{ "udp_use_limit", 0, &acl_var_udp_use_limit, 0, 0 },
{ "udp_core_limit", -1, &acl_var_udp_core_limit, 0, 0 },
{ 0, 0, 0, 0, 0 },
};
@ -121,14 +108,10 @@ int acl_var_udp_fatal_on_bind_error;
int acl_var_udp_monitor_netlink;
static ACL_CONFIG_BOOL_TABLE __conf_bool_tab[] = {
{ ACL_VAR_UDP_THREADS_DETACHED, ACL_DEF_UDP_THREADS_DETACHED,
&acl_var_udp_threads_detached },
{ ACL_VAR_UDP_NON_BLOCK, ACL_DEF_UDP_NON_BLOCK,
&acl_var_udp_non_block },
{ ACL_VAR_UDP_FATAL_ON_BIND_ERROR, ACL_DEF_UDP_FATAL_ON_BIND_ERROR,
&acl_var_udp_fatal_on_bind_error },
{ ACL_VAR_UDP_MONITOR_NETLINK, ACL_DEF_UDP_MONITOR_NETLINK,
&acl_var_udp_monitor_netlink },
{ "udp_threads_detached", 1, &acl_var_udp_threads_detached },
{ "master_nonblock", 1, &acl_var_udp_non_block },
{ "udp_fatal_on_bind_error", 0, &acl_var_udp_fatal_on_bind_error },
{ "udp_monitor_netlink", 1, &acl_var_udp_monitor_netlink },
{ 0, 0, 0 },
};
@ -143,20 +126,13 @@ char *acl_var_udp_reuse_port;
static int var_udp_reuse_port = 0;
static ACL_CONFIG_STR_TABLE __conf_str_tab[] = {
{ ACL_VAR_UDP_QUEUE_DIR, ACL_DEF_UDP_QUEUE_DIR,
&acl_var_udp_queue_dir },
{ ACL_VAR_UDP_OWNER, ACL_DEF_UDP_OWNER,
&acl_var_udp_owner },
{ ACL_VAR_UDP_PID_DIR, ACL_DEF_UDP_PID_DIR,
&acl_var_udp_pid_dir },
{ ACL_VAR_UDP_EVENT_MODE, ACL_DEF_UDP_EVENT_MODE,
&acl_var_udp_event_mode },
{ ACL_VAR_UDP_LOG_DEBUG, ACL_DEF_UDP_LOG_DEBUG,
&acl_var_udp_log_debug },
{ ACL_VAR_UDP_PRIVATE, ACL_DEF_UDP_PRIVATE,
&acl_var_udp_private },
{ ACL_VAR_UDP_REUSEPORT, ACL_DEF_UDP_REUSEPORT,
&acl_var_udp_reuse_port},
{ "udp_queue_dir", "/opt/acl_master/var/queue", &acl_var_udp_queue_dir },
{ "udp_owner", "root", &acl_var_udp_owner },
{ "udp_pid_dir", "/opt/acl_master/var/pid", &acl_var_udp_pid_dir },
{ "udp_event_mode", "select", &acl_var_udp_event_mode },
{ "master_debug", "", &acl_var_udp_log_debug },
{ "master_private", "n", &acl_var_udp_private },
{ "master_reuseport", "yes", &acl_var_udp_reuse_port},
{ 0, 0, 0 },
};