Here is the sample output:
```
# /usr/obj/usr/src-svn/amd64.amd64/usr.bin/fstat/fstat -s | awk '$5 ~ /^(local|internet)$/' | head
root sshd 92160 3* internet stream tcp fffff8049255fb70 192.168.1.22:22 <-> *:0
1000 ssh-agent 24448 3* local stream fffff8001d34fa00 /tmp/ssh-VIm9vDnboKfn/agent.24447
root sendmail 29954 3* internet stream tcp fffff80297f813d0 192.168.1.31:25 <-> *:0
root sendmail 29954 4* local dgram fffff8001d34a300 <-> fffff8001d344100 /var/run/logpriv
root ssh 92165 4* internet stream tcp fffff80167375b70 192.168.1.3:41033 <-> 62.210.137.175:22
smmsp sendmail 29957 3* local dgram fffff8001d63c100 <-> fffff8001d348000 /var/run/log
root cron 92166 5* local dgram fffff8001d343800 <-> fffff8001d63dd00 /var/run/logpriv
root cron 29961 4* local dgram fffff8001d34cc00 <-> fffff8001d344100 /var/run/logpriv
root smbd 86666 6* local dgram fffff8001d854600 /var/db/samba4/private/msg.sock/86666
root smbd 86666 29* local dgram fffff8047d297600 <-> fffff8047cff3100 /var/run/logpriv
```