Bug#508110: netstat: -W/--wide without -n prints random digits at end of IPv6 addresses without PTR

Marcus C. Gottwald mcg at cheers.de
Sun Dec 7 23:46:52 UTC 2008


Package: net-tools
Version: 1.60-22

I'm not sure if the patch from #254243 was too simple (because
at some other point some assumption about the maximum length
is made) or something else got screwed up. But this looks like
random stuff gets printed at the end of IPv6 addresses which
don't have a PTR RR:

  $ netstat -tWn
  Active Internet connections (w/o servers)
  Proto Recv-Q Send-Q Local Address           Foreign Address         State
  tcp        0      0 192.168.178.26:53779    212.112.229.206:993     ESTABLISHED
  tcp        0      0 192.168.178.26:53781    212.112.229.206:993     ESTABLISHED
  tcp6       0      0 2001:1a50:507a::babe:e:34504 2002:d470:e3e1:d470:e3e1::1:22 ESTABLISHED
  tcp6       0      0 2001:1a50:507a::babe:e:44246 2002:d470:e3e1:d470:e3e1::1:22 ESTABLISHED

  $ netstat -tW
  Active Internet connections (w/o servers)
  Proto Recv-Q Send-Q Local Address           Foreign Address         State
  tcp        0      0 noname:53779            mail.goneco.de:imaps    ESTABLISHED
  tcp        0      0 noname:53781            mail.goneco.de:imaps    ESTABLISHED
  tcp6       0      0 2001:1a50:507a::babe:e%29872848:34504 valet.v6.goneco.de:ssh  ESTABLISHED
  tcp6       0      0 2001:1a50:507a::babe:e%29872848:44246 valet.v6.goneco.de:ssh  ESTABLISHED

  $ netstat -tW
  Active Internet connections (w/o servers)
  Proto Recv-Q Send-Q Local Address           Foreign Address         State
  tcp        0      0 noname:53779            mail.goneco.de:imaps    ESTABLISHED
  tcp        0      0 noname:53781            mail.goneco.de:imaps    ESTABLISHED
  tcp6       0      0 2001:1a50:507a::babe:e%27050704:34504 valet.v6.goneco.de:ssh  ESTABLISHED
  tcp6       0      0 2001:1a50:507a::babe:e%27050704:44246 valet.v6.goneco.de:ssh  ESTABLISHED


Cheers, Marcus

-- System Information:
Debian Release: lenny/sid
  APT prefers stable
  APT policy: (704, 'stable'), (702, 'testing'), (701, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.26-1-amd64
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages net-tools depends on:
ii  libc6                         2.7-16     GNU C Library: Shared libraries

-- 
   Marcus C. Gottwald  ·  <mcg at cheers.de>  ·  https://cheers.de






More information about the Pkg-net-tools-maintainers mailing list