netstat -n doesn't display correctly ipv6 addresses (truncated)

Asked by ndv

I just installed miredo and begun to use ipv6. I've noticed that netstat is incapable to display correctly the sockets when it is instructed to display the ipv6 address instead of the name, thus making it useless.

the command issued is
  netstat -n --tcp
the result is something similar to:

Active Internet connections (senza server)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp6 0 48 2001:xxxx:yyyy:324:22222 2001:0:zzzz:64c:3:55249 ESTABLISHED
tcp6 0 0 2001:xxxx:yyyy:324::2:80 2001:0:zzzz:64c:3:51862 TIME_WAIT

(please note that xxxx yyyy zzzz masks real part of the ipv6 address because of privacy)

the result shown by netstat is incomplete, because the ipv6 addresses are truncated in half thus making the netstat command completely useless (I cannot understand who's connecting or whom I'm connecting with).
enlarging the terminal doesn't help.
the question:

is it a bug? is there something I can do?
thanks a lot

Question information

English Edit question
Ubuntu net-tools Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
sandipahire007 (sandipahire007) said :

hi every one,

root@pc:~#rdesktop 2014:1001:5:105:113
Autoselected keyboard map en-us
ERROR: 2014:1001:5:105:113: unable to connect

Revision history for this message
Ken Sharp (kennybobs) said :

I would guess that this was fixed long ago.

Can you help with this problem?

Provide an answer of your own, or ask ndv for more information if necessary.

To post a message you must log in.