stub tcp_stat function

This commit is contained in:
Doug MacEachern 2007-07-14 16:01:58 +00:00
parent 199eb74ac1
commit fe76b8fe7d
10 changed files with 81 additions and 1 deletions

View File

@ -684,6 +684,23 @@ sigar_net_stat_port_get(sigar_t *sigar,
sigar_net_address_t *address,
unsigned long port);
/* TCP-MIB */
typedef struct {
sigar_uint32_t max_conn;
sigar_uint64_t active_opens;
sigar_uint64_t passive_opens;
sigar_uint64_t attempt_fails;
sigar_uint64_t estab_resets;
sigar_uint64_t curr_estab;
sigar_uint64_t in_segs;
sigar_uint64_t out_segs;
sigar_uint64_t retrans_segs;
sigar_uint64_t out_rsts;
} sigar_tcp_stat_t;
SIGAR_DECLARE(int)
sigar_tcp_stat_get(sigar_t *sigar,
sigar_tcp_stat_t *tcpstat);
SIGAR_DECLARE(int)
sigar_net_listen_address_get(sigar_t *sigar,

View File

@ -2224,6 +2224,13 @@ int sigar_net_connection_walk(sigar_net_connection_walker_t *walker)
return SIGAR_OK;
}
SIGAR_DECLARE(int)
sigar_tcp_stat_get(sigar_t *sigar,
sigar_tcp_stat_t *tcpstat)
{
return SIGAR_ENOTIMPL;
}
/* derived from pidentd's k_aix432.c */
int sigar_proc_port_get(sigar_t *sigar, int protocol,
unsigned long port, sigar_pid_t *pidp)

View File

@ -2148,6 +2148,13 @@ int sigar_net_connection_walk(sigar_net_connection_walker_t *walker)
}
#endif
SIGAR_DECLARE(int)
sigar_tcp_stat_get(sigar_t *sigar,
sigar_tcp_stat_t *tcpstat)
{
return SIGAR_ENOTIMPL;
}
#ifdef __FreeBSD__
#define _KERNEL

View File

@ -1037,6 +1037,13 @@ int sigar_net_connection_walk(sigar_net_connection_walker_t *walker)
return SIGAR_OK;
}
SIGAR_DECLARE(int)
sigar_tcp_stat_get(sigar_t *sigar,
sigar_tcp_stat_t *tcpstat)
{
return SIGAR_ENOTIMPL;
}
int sigar_proc_port_get(sigar_t *sigar, int protocol,
unsigned long port, sigar_pid_t *pid)
{

View File

@ -2079,6 +2079,13 @@ static int sigar_net_connection_get(sigar_t *sigar,
return status;
}
SIGAR_DECLARE(int)
sigar_tcp_stat_get(sigar_t *sigar,
sigar_tcp_stat_t *tcpstat)
{
return SIGAR_ENOTIMPL;
}
int sigar_proc_port_get(sigar_t *sigar, int protocol,
unsigned long port, sigar_pid_t *pid)
{

View File

@ -678,3 +678,10 @@ sigar_net_interface_list_get(sigar_t *sigar,
return SIGAR_OK;
}
SIGAR_DECLARE(int)
sigar_tcp_stat_get(sigar_t *sigar,
sigar_tcp_stat_t *tcpstat)
{
return SIGAR_ENOTIMPL;
}

View File

@ -537,6 +537,13 @@ int sigar_net_connection_walk(sigar_net_connection_walker_t *walker)
return SIGAR_ENOTIMPL;
}
SIGAR_DECLARE(int)
sigar_tcp_stat_get(sigar_t *sigar,
sigar_tcp_stat_t *tcpstat)
{
return SIGAR_ENOTIMPL;
}
int sigar_proc_port_get(sigar_t *sigar, int protocol,
unsigned long port, sigar_pid_t *pid)
{

View File

@ -2348,6 +2348,13 @@ int sigar_net_connection_walk(sigar_net_connection_walker_t *walker)
return SIGAR_OK;
}
SIGAR_DECLARE(int)
sigar_tcp_stat_get(sigar_t *sigar,
sigar_tcp_stat_t *tcpstat)
{
return SIGAR_ENOTIMPL;
}
int sigar_proc_port_get(sigar_t *sigar, int protocol,
unsigned long port, sigar_pid_t *pid)
{

View File

@ -251,6 +251,13 @@ int sigar_net_connection_walk(sigar_net_connection_walker_t *walker)
return SIGAR_ENOTIMPL;
}
SIGAR_DECLARE(int)
sigar_tcp_stat_get(sigar_t *sigar,
sigar_tcp_stat_t *tcpstat)
{
return SIGAR_ENOTIMPL;
}
int sigar_proc_port_get(sigar_t *sigar, int protocol,
unsigned long port, sigar_pid_t *pid)
{

View File

@ -2734,6 +2734,13 @@ sigar_net_connection_walk(sigar_net_connection_walker_t *walker)
return SIGAR_OK;
}
SIGAR_DECLARE(int)
sigar_tcp_stat_get(sigar_t *sigar,
sigar_tcp_stat_t *tcpstat)
{
return SIGAR_ENOTIMPL;
}
#define sigar_GetTcpExTable \
sigar->iphlpapi.get_tcpx_table.func