Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlebs Ivanovskis <git-no-reply@zabbix.com>2017-02-01 15:38:57 +0300
committerGlebs Ivanovskis <git-no-reply@zabbix.com>2017-02-01 15:38:57 +0300
commitefa230700b7d26b4fdd87a3b25f45adff7b365b2 (patch)
treeeef9c1f492bca30dec56d7c208750b5f56c4a6b3 /include/comms.h
parent3b45732ea341122437ad05d32be6bb74c6ed6288 (diff)
...G...PS. [ZBX-11592] improved naming of constants; made more verbose and fool-proof empty peer list handling; updated comments
Diffstat (limited to 'include/comms.h')
-rw-r--r--include/comms.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/comms.h b/include/comms.h
index 0152ad7280f..5fa2a263990 100644
--- a/include/comms.h
+++ b/include/comms.h
@@ -143,11 +143,11 @@ void zbx_tcp_unaccept(zbx_socket_t *s);
ssize_t zbx_tcp_recv_ext(zbx_socket_t *s, unsigned char flags, int timeout);
const char *zbx_tcp_recv_line(zbx_socket_t *s);
-#define ZBX_EMPTY_LIST_NOT_ALLOWED 0
-#define ZBX_EMPTY_LIST_ALLOWED 1
+#define ZBX_TCP_REJECT_IF_EMPTY 0
+#define ZBX_TCP_PERMIT_IF_EMPTY 1
int zbx_validate_peer_list(const char *peer_list, char **error);
-int zbx_tcp_check_security(zbx_socket_t *s, const char *peer_list, int allow_if_empty);
+int zbx_tcp_check_security(zbx_socket_t *s, const char *peer_list, int action_if_empty);
int zbx_udp_connect(zbx_socket_t *s, const char *source_ip, const char *ip, unsigned short port, int timeout);
int zbx_udp_send(zbx_socket_t *s, const char *data, size_t data_len, int timeout);