From: Christoph Paasch Date: Wed, 22 Jan 2014 12:58:44 +0000 (+0100) Subject: tcp: metrics: Handle v6/v4-mapped sockets in tcp-metrics X-Git-Tag: v3.14-rc1~94^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ad88cf70af79e6f19c4f89dd85453ba4fdf425e;p=pandora-kernel.git 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 Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed