]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: tcp_probe: add IPv6 support
authorDaniel Borkmann <dborkman@redhat.com>
Wed, 21 Aug 2013 17:48:00 +0000 (19:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Aug 2013 23:19:50 +0000 (16:19 -0700)
commitf925d0a62db3f1b6e463ef956d0855006538d002
treeffc3a6c8cd61968f4eddab181ce8f216c7a96157
parentd8cdeda6ddbcb33debbb87590a7d42ff7f5b5cfd
net: tcp_probe: add IPv6 support

The tcp_probe currently only supports analysis of IPv4 connections.
Therefore, it would be nice to have IPv6 supported as well. Since we
have the recently added %pISpc specifier that is IPv4/IPv6 generic,
build related sockaddress structures from the flow information and
pass this to our format string. Tested with SSH and HTTP sessions
on IPv4 and IPv6.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_probe.c