ss: show header for --processes/-p

ss by default shows headers for every column but omits it for --processes
for no apparent reason. This patch adds the "Process" header.

Signed-off-by: Hritik Vijay <hritikxx8@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Hritik Vijay 2019-11-13 03:57:02 +05:30 committed by Stephen Hemminger
parent 130f549604
commit 5883c6eba5

View File

@ -133,6 +133,7 @@ enum col_id {
COL_RADDR,
COL_RSERV,
COL_EXT,
COL_PROC,
COL_MAX
};
@ -160,6 +161,7 @@ static struct column columns[] = {
{ ALIGN_LEFT, "Port", "", 0, 0, 0 },
{ ALIGN_RIGHT, "Peer Address:", " ", 0, 0, 0 },
{ ALIGN_LEFT, "Port", "", 0, 0, 0 },
{ ALIGN_LEFT, "Process", "", 0, 0, 0 },
{ ALIGN_LEFT, "", "", 0, 0, 0 },
};