From bebf4d77135cf30c1e84fd8bf4e5c796206ddc12 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 20 Jun 2006 00:17:59 +0000 Subject: [PATCH] decls for native net stat metrics --- include/sigar.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/sigar.h b/include/sigar.h index 109538ba..76d0885a 100644 --- a/include/sigar.h +++ b/include/sigar.h @@ -578,6 +578,17 @@ struct sigar_net_connection_walker_t { sigar_net_connection_t *connection); }; +typedef struct { + int tcp_states[SIGAR_TCP_UNKNOWN]; + unsigned int tcp_inbound_total; + unsigned int tcp_outbound_total; +} sigar_net_stat_t; + +SIGAR_DECLARE(int) +sigar_net_stat_get(sigar_t *sigar, + sigar_net_stat_t *netstat, + int flags); + SIGAR_DECLARE(const char *)sigar_net_connection_type_get(int type); SIGAR_DECLARE(const char *)sigar_net_connection_state_get(int state);