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:
authorDmitrijs Goloscapovs <dmitrijs.goloscapovs@zabbix.com>2021-03-02 10:42:10 +0300
committerDmitrijs Goloscapovs <dmitrijs.goloscapovs@zabbix.com>2021-03-08 18:16:40 +0300
commita6aff43f1ac37e00ab047639f533fba63ecb49e0 (patch)
tree5f5647e0301a5ffee3662d6bb02f5ef69e1442e2 /include/proxy.h
parent9b38c1cc1e9f09275470f3bb64e20da8f1b43af8 (diff)
.......PS. [ZBXNEXT-6503] added protection of Zabbix Server from overloading by proxy data
Diffstat (limited to 'include/proxy.h')
-rw-r--r--include/proxy.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/proxy.h b/include/proxy.h
index 2d045c2aa75..246e47c6f0c 100644
--- a/include/proxy.h
+++ b/include/proxy.h
@@ -33,6 +33,10 @@
#define ZBX_PROXY_DATA_DONE 0
#define ZBX_PROXY_DATA_MORE 1
+#define ZBX_PROXY_UPLOAD_UNDEFINED 0
+#define ZBX_PROXY_UPLOAD_DISABLED 1
+#define ZBX_PROXY_UPLOAD_ENABLED 2
+
int get_active_proxy_from_request(struct zbx_json_parse *jp, DC_PROXY *proxy, char **error);
int zbx_proxy_check_permissions(const DC_PROXY *proxy, const zbx_socket_t *sock, char **error);
int check_access_passive_proxy(zbx_socket_t *sock, int send_response, const char *req);