]> git.baikalelectronics.ru Git - kernel.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)
commit9bc34fba8bbd9dccf7fb38510925949485871c3f
treeffc3a6c8cd61968f4eddab181ce8f216c7a96157
parentb9bd961d489ca3fc9035466d269ac28afa4677da
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