Hi folks,

netstat cuts off the IPv6 addresses. Sample:

# netstat -f inet6 -ln | cat
Active Internet connections (only servers)
Proto   Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp6         0      0  2001:db8:30:7e::.25    *.*                    LISTEN
tcp6         0      0  2001:db8:13b0:ff.25    *.*                    LISTEN
tcp6         0      0  fe80::fd10:ed0b:.25    *.*                    LISTEN
tcp6         0      0  2001:db8:13b0:ff.25    *.*                    LISTEN
tcp6         0      0  fe80::6b40:ec1:6.25    *.*                    LISTEN
tcp6         0      0  2001:db8:30:7a::.25    *.*                    LISTEN
tcp6         0      0  fe80::b6dc:f912:.25    *.*                    LISTEN
tcp6         0      0  2001:db8:30:7d::.25    *.*                    LISTEN
tcp6         0      0  fe80::26a:cab5:9.25    *.*                    LISTEN
tcp6         0      0  fe80::bce1:3eb3:.25    *.*                    LISTEN
tcp6         0      0  2001:db8:30:60::.25    *.*                    LISTEN
tcp6         0      0  fe80::3d13:32fb:.25    *.*                    LISTEN
tcp6         0      0  2001:db8:30:7a::.25    *.*                    LISTEN
tcp6         0      0  fe80::f5c5:bc1e:.25    *.*                    LISTEN
tcp6         0      0  2001:db8:30:7d::.25    *.*                    LISTEN
tcp6         0      0  2001:db8:30:7e::.25    *.*                    LISTEN
tcp6         0      0  2001:db8:30:60::.25    *.*                    LISTEN
tcp6         0      0  fe80::8e60:fc3b:.25    *.*                    LISTEN
tcp6         0      0  fe80::1%lo0.25         *.*                    LISTEN
tcp6         0      0  ::1.25                 *.*                    LISTEN
tcp6         0      0  *.1023                 *.*                    LISTEN
Active Internet connections (only servers)
Proto   Recv-Q Send-Q  Local Address          Foreign Address        (state)
udp6         0      0  2001:db8:13b0:ff.1194  *.*
udp6         0      0  *.*                    *.*
udp6         0      0  *.*                    *.*
udp6         0      0  2001:db8:13b0:ff.443   *.*
Active Internet connections (only servers)
Proto   Recv-Q Send-Q  Local Address          Foreign Address        (state)
ip6          0      0  *.*                    *.*                    58


You can imagine that remote addresses are cut off in a similar way,
making the tool pretty useless for IPv6.

Of course I get the same problem if stdout is bound to a 300 column
terminal.

Do you think this could be improved? Linux' netstat supports an
option "--wide", for example. A custom output format might be
helpful, too.


Regards
Harri

Reply via email to