Source
22
22
23
23
#include "zbxtypes.h"
24
24
25
25
int zbx_is_ip4(const char *ip);
26
26
int zbx_is_ip6(const char *ip);
27
27
int zbx_is_supported_ip(const char *ip);
28
28
int zbx_is_ip(const char *ip);
29
29
30
30
int zbx_ip_in_list(const char *list, const char *ip);
31
31
32
-
int zbx_parse_serveractive_element(char *str, char **host, unsigned short *port, unsigned short port_default);
32
+
int zbx_parse_serveractive_element(const char *str, char **host, unsigned short *port,
33
+
unsigned short port_default);
33
34
34
35
#define ZBX_IPRANGE_V4 0
35
36
#define ZBX_IPRANGE_V6 1
36
37
37
38
#define ZBX_IPRANGE_GROUPS_V4 4
38
39
#define ZBX_IPRANGE_GROUPS_V6 8
39
40
40
41
typedef struct
41
42
{
42
43
int from;