diff options
author | 2014-01-22 13:58:44 +0100 | |
---|---|---|
committer | 2014-01-23 12:48:28 -0800 | |
commit | 3ad88cf70af79e6f19c4f89dd85453ba4fdf425e (patch) | |
tree | 3717f53d734cecb7945638846f19477dad3ea8d0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 6lowpan: add a license to 6lowpan_iphc module (diff) | |
download | linux-dev-3ad88cf70af79e6f19c4f89dd85453ba4fdf425e.tar.xz linux-dev-3ad88cf70af79e6f19c4f89dd85453ba4fdf425e.zip |
tcp: metrics: Handle v6/v4-mapped sockets in tcp-metrics
A socket may be v6/v4-mapped. In that case sk->sk_family is AF_INET6,
but the IP being used is actually an IPv4-address.
Current's tcp-metrics will thus represent it as an IPv6-address:
root@server:~# ip tcp_metrics
::ffff:10.1.1.2 age 22.920sec rtt 18750us rttvar 15000us cwnd 10
10.1.1.2 age 47.970sec rtt 16250us rttvar 10000us cwnd 10
This patch modifies the tcp-metrics so that they are able to handle the
v6/v4-mapped sockets correctly.
Signed-off-by: Christoph Paasch <christoph.paasch@uclouvain.be>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions