diff options
author | Christoph Paasch <[email protected]> | 2014-01-22 13:58:44 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2014-01-23 12:48:28 -0800 |
commit | 3ad88cf70af79e6f19c4f89dd85453ba4fdf425e (patch) | |
tree | 3717f53d734cecb7945638846f19477dad3ea8d0 /lib/debugobjects.c | |
parent | 5ae5e991ee6274cc269dabd536399146be038a0f (diff) |
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 <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions