]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ss: Split inet_show_netlink into parts
authorPavel Emelyanov <xemul@parallels.com>
Thu, 25 Oct 2012 03:21:39 +0000 (03:21 +0000)
committerStephen Hemminger <shemminger@vyatta.com>
Sat, 27 Oct 2012 00:48:49 +0000 (17:48 -0700)
commit746a695f86b301cbee2a3c79fc490653be680b20
tree45750981a6809b7111c3ff99a53586ac298901f5
parent3fe5b534fe61220668fb6e99c7acf325c18dff06
ss: Split inet_show_netlink into parts

The existing function inet_show_netlink sends tcp-diag request and
then receives back the response and prints it on the screen.

The sock-diag and legacy tcp-diag have different request types, but
report sockets in the same format. In order to support both it's
convenient to split the code into sending and receiving parts.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
misc/ss.c