rename counter -> stat
This commit is contained in:
@@ -88,11 +88,6 @@ void packet_io_free(struct packet_io *handle)
|
||||
}
|
||||
}
|
||||
|
||||
struct packet_io_stat *packet_io_get_stat(struct packet_io *handle)
|
||||
{
|
||||
return (struct packet_io_stat *)handle->on_stat(handle->handle);
|
||||
}
|
||||
|
||||
void packet_io_print_stat(struct packet_io *handle)
|
||||
{
|
||||
struct packet_io_stat *stat = packet_io_get_stat(handle);
|
||||
@@ -104,6 +99,11 @@ void packet_io_print_stat(struct packet_io *handle)
|
||||
PACKET_IO_LOG_DEBUG("keepalive_pkts : %lu, keepalive_bytes : %lu", stat->keepalive_pkts, stat->keepalive_bytes);
|
||||
}
|
||||
|
||||
struct packet_io_stat *packet_io_get_stat(struct packet_io *handle)
|
||||
{
|
||||
return (struct packet_io_stat *)handle->on_stat(handle->handle);
|
||||
}
|
||||
|
||||
int packet_io_init(struct packet_io *handle, uint16_t thread_id)
|
||||
{
|
||||
return handle->on_init(handle->handle, thread_id);
|
||||
|
||||
Reference in New Issue
Block a user