commit | 746a695f86b301cbee2a3c79fc490653be680b20 | [log] [tgz] |
---|---|---|
author | Pavel Emelyanov <xemul@parallels.com> | Thu Oct 25 03:21:39 2012 +0000 |
committer | Stephen Hemminger <shemminger@vyatta.com> | Fri Oct 26 17:48:49 2012 -0700 |
tree | 45750981a6809b7111c3ff99a53586ac298901f5 | |
parent | 3fe5b534fe61220668fb6e99c7acf325c18dff06 [diff] |
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>