]> git.proxmox.com Git - mirror_iproute2.git/commit - misc/ss.c
ss: Fix layout/output issues introduced by regression
authorvadimk <vadim4j@gmail.com>
Fri, 5 Dec 2014 17:19:11 +0000 (19:19 +0200)
committerStephen Hemminger <shemming@brocade.com>
Wed, 10 Dec 2014 04:31:12 +0000 (20:31 -0800)
commitd68e00f704c19aee1419c56eced3a8e8e7157e35
treed948968702dbf1203acd5a1395c1143b582fa6d7
parent9d2c16438cdec360d8a2ec214bc455f4a392b718
ss: Fix layout/output issues introduced by regression

This patch fixes the following issues which was introduced by me in commits:

    #1 (2dc854854b7f1b) ss: Fixed broken output for Netlink 'Peer Address:Port' column
    ISSUE: Broken layout when all sockets are printed out

    #2 (eef43b5052afb7) ss: Identify more netlink protocol names
    ISSUE: Protocol id is not printed if 'numbers only' output was specified (-n)

Also aligned the width of the local/peer ports to be more wider.

I tested with a lot of option combinations (I may miss some test cases),
but layout seems to me better than the previous released version of iproute2/ss.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
misc/ss.c