From cc58c423961e3bb02763a93f3ffa18aa31fb89f3 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 9 Nov 2015 01:58:30 +0100 Subject: [PATCH] tcpinfo properties are uint32_t --- glorytun.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/glorytun.c b/glorytun.c index 95a00dd..8a5717e 100644 --- a/glorytun.c +++ b/glorytun.c @@ -1,5 +1,6 @@ #include "common-static.h" +#include #include #include #include @@ -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) { fprintf(stderr, "tcpinfo" - " rto:%llu" " ato:%llu" " snd_mss:%llu" - " rcv_mss:%llu" " unacked:%llu" " sacked:%llu" - " lost:%llu" " retrans:%llu" " fackets:%llu" - " pmtu:%llu" " rcv_ssthresh:%llu" " rtt:%llu" - " rttvar:%llu" " snd_ssthresh:%llu" " snd_cwnd:%llu" - " advmss:%llu" " reordering:%llu" "\n", + " rto:%" PRIu32 " ato:%" PRIu32 " snd_mss:%" PRIu32 + " rcv_mss:%" PRIu32 " unacked:%" PRIu32 " sacked:%" PRIu32 + " lost:%" PRIu32 " retrans:%" PRIu32 " fackets:%" PRIu32 + " pmtu:%" PRIu32 " rcv_ssthresh:%" PRIu32 " rtt:%" PRIu32 + " rttvar:%" PRIu32 " snd_ssthresh:%" PRIu32 " snd_cwnd:%" PRIu32 + " advmss:%" PRIu32 " reordering:%" PRIu32 "\n", ti->tcpi_rto, ti->tcpi_ato, ti->tcpi_snd_mss, ti->tcpi_rcv_mss, ti->tcpi_unacked, ti->tcpi_sacked, ti->tcpi_lost, ti->tcpi_retrans, ti->tcpi_fackets,