]> git.proxmox.com Git - mirror_iproute2.git/commit
ss: Make struct tcpstat fields 'timer' and 'timeout' unsigned
authorPhil Sutter <phil@nwl.cc>
Thu, 24 Aug 2017 09:41:26 +0000 (11:41 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 24 Aug 2017 22:22:09 +0000 (15:22 -0700)
commit4cbf5224f2b50a24e1873508e7a0f1f81cc81a81
tree343ccf174214500c71347790688e897070095f08
parent0b5eadc54f3890db6b5bba10d42c70616714bee8
ss: Make struct tcpstat fields 'timer' and 'timeout' unsigned

Both 'timer' and 'timeout' variables of struct tcpstat are either
scanned as unsigned values from /proc/net/tcp{,6} or copied from
'idiag_timer' and 'idiag_expries' fields of struct inet_diag_msg, which
itself are unsigned. Therefore they may be unsigned as well, which
eliminates the need to check for negative values.

Signed-off-by: Phil Sutter <phil@nwl.cc>
misc/ss.c