Description of problem: In FC5 netstat -an --ip does not include ssh; netstat --an --tcp does include; IN FC4 both lines did include ssh Version-Release number of selected component (if applicable): How reproducible: have ssh daemon running compare results of netstat -an --tcp and netstat -an --ip Actual results: strace shows that netstat --tcp openes /proc/net/tcp6, while netstat --ip does not; Expected results: netstat --ip should show also ssh (why ssh connections made with IPv4 are listed only in /proc/net/tcp6 is another thing which is somewhat suprising) Using /proc/net/tcp6 is not dosumented in manpage Options --tcp --udp, --inet documentation could be better If --tcp is needed (rather than --ip or --inet) to see some sockets/connections, that should be documented. Additional info: To have result like netstat -a --ip in FC4, it is necessary to run netstat -a --tcp --udp,
Forgot to mention version of net-tools which is net-tools-1.60-62.1
My ssh connections are listed in /proc/net/tcp. I suppose you aren't using ssh over IPv4 as you think but it's IPv6. Than the output is correct, the connection will be listed in netstat with --inet6. The --inet option shows all IPv4 connection (and --inet6 all IPv6) eg. shows tcp, udp and raw connections. With --tcp, --udp etc options you can select to display just the specific group of sockets. In my opinion, the behaviour is correct.