Compare commits

..

2 commits

Author SHA1 Message Date
2a355b1cce
Use extended options 2024-10-12 04:27:06 +02:00
df49995c6b
Add comment explaining chk_nr 2024-10-12 04:26:28 +02:00

View file

@ -75,7 +75,14 @@ __chk_msk_nr()
local condition=$1
shift 1
__chk_nr "ss -inmHMN $ns | $condition" "$@"
# ss: dumps socket statistics
# -i/--info: show internal TCP information
# -n/--numeric: prefer machine output to human output
# -m/--memory: show socket memory usage
# -H/--no-header: don't print header
# -M/--mptcp: display mptcp sockets
# -N/--net: use specified network namespace name
__chk_nr "ss --info --numeric --memory --no-header --mptcp --net=$ns | $condition" "$@"
}
chk_msk_nr()