]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ss: display interface name as zone index when needed
authorFX Le Bail <fx.lebail@yahoo.com>
Tue, 11 Feb 2014 09:06:23 +0000 (10:06 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 17 Feb 2014 18:44:16 +0000 (10:44 -0800)
commit7c8a3cfba092af6834973ab006f8e19d6a1e3c3e
tree0b6a396c112e5f1a10869f85ace3eca0f46758ae
parent77a8ca81189197e8d5e75fe19951efd0aea337d5
ss: display interface name as zone index when needed

This change enable the ss command to display the interface name as zone index
for local addresses when needed.

For this enhanced display *_diag stuff is needed.

It is based on a first version by Bernd Eckenfels.

example:
Netid  State   Recv-Q Send-Q                 Local Address:Port    Peer Address:Port
udp    UNCONN  0      0      fe80::20c:29ff:fe1f:7406%eth1:9999              :::*
udp    UNCONN  0      0                                 :::domain            :::*
tcp    LISTEN  0      3                                 :::domain            :::*
tcp    LISTEN  0      5      fe80::20c:29ff:fe1f:7410%eth2:99                :::*

Signed-off-by: Francois-Xavier Le Bail <fx.lebail@yahoo.com>
misc/ss.c