summaryrefslogtreecommitdiff
path: root/misc/ss.c
diff options
context:
space:
mode:
authorHritik Vijay <hritikxx8@gmail.com>2019-11-13 03:57:02 +0530
committerStephen Hemminger <stephen@networkplumber.org>2019-11-14 09:20:14 -0800
commit5883c6eba5173745eeb4e5467c59dd34d415bd7e (patch)
treeae843fdc888bcad039caf34a8fdf6fa5a3a4cd5e /misc/ss.c
parent130f549604a871933d7d52e30bae5958de188dcb (diff)
downloadiproute2-5883c6eba5173745eeb4e5467c59dd34d415bd7e.tar.gz
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>
Diffstat (limited to 'misc/ss.c')
-rw-r--r--misc/ss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/ss.c b/misc/ss.c
index efa87781..794c1895 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -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 },
};