Bug 230715

Summary: sockstat does not aligns columns
Product: Base System Reporter: Slawomir Wojciech Wojtczak <vermaden>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Feedback Timeout    
Severity: Affects Only Me    
Priority: ---    
Version: 11.2-RELEASE   
Hardware: Any   
OS: Any   

Description Slawomir Wojciech Wojtczak 2018-08-17 20:54:38 UTC
Current output:

# sockstat -l4
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS      
syncthing syncthing 4875  9  tcp4   10.0.0.100:22000      *:*
syncthing syncthing 4875  10 udp4   10.0.0.100:20347      *:*
syncthing syncthing 4875  11 udp4   10.0.0.100:21027      *:*
syncthing syncthing 4875  15 tcp4   10.0.0.100:8384       *:*
syncthing syncthing 4875  18 udp4   10.0.0.100:21820      *:*
syncthing syncthing 4875  19 udp4   10.0.0.100:16107      *:*
root     sendmail   96174 3  tcp4   10.0.0.100:25         *:*
root     syslogd    56080 6  udp4   10.0.0.100:514        *:*

How it should be:

# sockstat -l4
USER      COMMAND     PID FD PROTO LOCAL ADDRESS    FOREIGN ADDRESS      
syncthing syncthing  4875  9  tcp4 10.0.0.100:22000 *:*
syncthing syncthing  4875 10  udp4 10.0.0.100:20347 *:*
syncthing syncthing  4875 11  udp4 10.0.0.100:21027 *:*
syncthing syncthing  4875 15  tcp4 10.0.0.100:8384  *:*
syncthing syncthing  4875 18  udp4 10.0.0.100:21820 *:*
syncthing syncthing  4875 19  udp4 10.0.0.100:16107 *:*
root      sendmail  96174  3  tcp4 10.0.0.100:25    *:*
root      syslogd   56080  6  udp4 10.0.0.100:514   *:*