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:
Diffstat (limited to 'src/libs/zbxsysinfo/openbsd/net.c')
-rw-r--r--src/libs/zbxsysinfo/openbsd/net.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libs/zbxsysinfo/openbsd/net.c b/src/libs/zbxsysinfo/openbsd/net.c
index 50fa564da67..b3f5f5c3f5a 100644
--- a/src/libs/zbxsysinfo/openbsd/net.c
+++ b/src/libs/zbxsysinfo/openbsd/net.c
@@ -18,6 +18,7 @@
**/
#include "zbxsysinfo.h"
+#include "../sysinfo.h"
#include "zbxjson.h"
#include "log.h"
@@ -206,7 +207,7 @@ clean:
#undef IFNET_ID
}
-int NET_IF_IN(AGENT_REQUEST *request, AGENT_RESULT *result)
+int net_if_in(AGENT_REQUEST *request, AGENT_RESULT *result)
{
char *if_name, *mode, *error;
zbx_uint64_t ibytes, ipackets, ierrors, idropped;
@@ -244,7 +245,7 @@ int NET_IF_IN(AGENT_REQUEST *request, AGENT_RESULT *result)
return SYSINFO_RET_OK;
}
-int NET_IF_OUT(AGENT_REQUEST *request, AGENT_RESULT *result)
+int net_if_out(AGENT_REQUEST *request, AGENT_RESULT *result)
{
char *if_name, *mode, *error;
zbx_uint64_t obytes, opackets, oerrors;
@@ -280,7 +281,7 @@ int NET_IF_OUT(AGENT_REQUEST *request, AGENT_RESULT *result)
return SYSINFO_RET_OK;
}
-int NET_IF_TOTAL(AGENT_REQUEST *request, AGENT_RESULT *result)
+int net_if_total(AGENT_REQUEST *request, AGENT_RESULT *result)
{
char *if_name, *mode, *error;
zbx_uint64_t tbytes, tpackets, terrors;
@@ -316,7 +317,7 @@ int NET_IF_TOTAL(AGENT_REQUEST *request, AGENT_RESULT *result)
return SYSINFO_RET_OK;
}
-int NET_IF_COLLISIONS(AGENT_REQUEST *request, AGENT_RESULT *result)
+int net_if_collisions(AGENT_REQUEST *request, AGENT_RESULT *result)
{
char *if_name, *error;
zbx_uint64_t icollisions;
@@ -341,7 +342,7 @@ int NET_IF_COLLISIONS(AGENT_REQUEST *request, AGENT_RESULT *result)
return SYSINFO_RET_OK;
}
-int NET_IF_DISCOVERY(AGENT_REQUEST *request, AGENT_RESULT *result)
+int net_if_discovery(AGENT_REQUEST *request, AGENT_RESULT *result)
{
int i;
struct zbx_json j;