]> git.proxmox.com Git - mirror_iproute2.git/commit - misc/ss.c
ss: Support sock-diag
authorPavel Emelyanov <xemul@parallels.com>
Thu, 25 Oct 2012 03:23:36 +0000 (03:23 +0000)
committerStephen Hemminger <shemminger@vyatta.com>
Sat, 27 Oct 2012 00:48:49 +0000 (17:48 -0700)
commit886d19d6c93546db7c093df07a71c38cda6c1694
treea34d85ad57a27f0d29c9401a44a81a969617dbe2
parent746a695f86b301cbee2a3c79fc490653be680b20
ss: Support sock-diag

That is -- write the code, that sends diag request in new format. It's
mostly copied from tcp-diag code. Plus, sock-diag differentiates sockets
by families, thus we have to send two requests sequentially.

If we fail to submit new sock-diag request, try to fall-back and submit
the legacy tcp-diag one.

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