tcpinfo properties are uint32_t

This commit is contained in:
Frank Denis
2015-11-09 01:58:30 +01:00
parent baef8233dc
commit cc58c42396

View File

@@ -1,5 +1,6 @@
#include "common-static.h" #include "common-static.h"
#include <inttypes.h>
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <signal.h> #include <signal.h>
@@ -216,12 +217,12 @@ static socklen_t sk_get_info (int fd, struct tcp_info *ti)
static void print_tcp_info (struct tcp_info *ti) static void print_tcp_info (struct tcp_info *ti)
{ {
fprintf(stderr, "tcpinfo" fprintf(stderr, "tcpinfo"
" rto:%llu" " ato:%llu" " snd_mss:%llu" " rto:%" PRIu32 " ato:%" PRIu32 " snd_mss:%" PRIu32
" rcv_mss:%llu" " unacked:%llu" " sacked:%llu" " rcv_mss:%" PRIu32 " unacked:%" PRIu32 " sacked:%" PRIu32
" lost:%llu" " retrans:%llu" " fackets:%llu" " lost:%" PRIu32 " retrans:%" PRIu32 " fackets:%" PRIu32
" pmtu:%llu" " rcv_ssthresh:%llu" " rtt:%llu" " pmtu:%" PRIu32 " rcv_ssthresh:%" PRIu32 " rtt:%" PRIu32
" rttvar:%llu" " snd_ssthresh:%llu" " snd_cwnd:%llu" " rttvar:%" PRIu32 " snd_ssthresh:%" PRIu32 " snd_cwnd:%" PRIu32
" advmss:%llu" " reordering:%llu" "\n", " advmss:%" PRIu32 " reordering:%" PRIu32 "\n",
ti->tcpi_rto, ti->tcpi_ato, ti->tcpi_snd_mss, ti->tcpi_rto, ti->tcpi_ato, ti->tcpi_snd_mss,
ti->tcpi_rcv_mss, ti->tcpi_unacked, ti->tcpi_sacked, ti->tcpi_rcv_mss, ti->tcpi_unacked, ti->tcpi_sacked,
ti->tcpi_lost, ti->tcpi_retrans, ti->tcpi_fackets, ti->tcpi_lost, ti->tcpi_retrans, ti->tcpi_fackets,