lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 3 Oct 2012 03:21:08 +0300 (EEST)
From:	Julian Anastasov <>
To:	Eric Dumazet <>
cc:	Stephen Hemminger <>,
Subject: Re: [PATCH v2] iproute2: add support for tcp_metrics


On Tue, 2 Oct 2012, Eric Dumazet wrote:

> By the way, it seems kernel exports scaled srtt by 8, and rttvar by 4.
> And tcp_get_info() correctly exports us, not ms.
> info->tcpi_rtt = jiffies_to_usecs(tp->srtt)>>3;
> info->tcpi_rttvar = jiffies_to_usecs(tp->mdev)>>2;
> IMHO we should use same unit than TCP_INFO (us for these values)

	Something like this in process_msg?:

	fprintf(fp, "%lluus",
		((__u64) val * 1000) >> 3);
	fprintf(fp, "%lluus",
		((__u64) val * 1000) >> 2);

	And may be variant without __u64 should be fine?


Julian Anastasov <>
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists