diff options
Diffstat (limited to 'src/tools/oping')
-rw-r--r-- | src/tools/oping/oping.c | 13 | ||||
-rw-r--r-- | src/tools/oping/oping_client.c | 2 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/tools/oping/oping.c b/src/tools/oping/oping.c index 8bb01daf..98d12a7b 100644 --- a/src/tools/oping/oping.c +++ b/src/tools/oping/oping.c @@ -40,14 +40,15 @@ #define OPING_MAX_FLOWS 256 struct c { - char * s_apn; - int interval; - int count; - int size; + char * s_apn; + int interval; + uint32_t count; + int size; /* stats */ - int sent; - int rcvd; + uint32_t sent; + uint32_t rcvd; + double rtt_min; double rtt_max; double rtt_avg; diff --git a/src/tools/oping/oping_client.c b/src/tools/oping/oping_client.c index 1ce96a75..b30ba5f4 100644 --- a/src/tools/oping/oping_client.c +++ b/src/tools/oping/oping_client.c @@ -81,7 +81,7 @@ void * reader(void * o) continue; } - if (ntohl(msg->id) >= (ssize_t) client.count) { + if (ntohl(msg->id) >= client.count) { printf("Invalid id.\n"); continue; } |