Subject: bin/15695: who truncates IPv6 addresses
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/22/2002 14:03:08
>Number:         15695
>Category:       bin
>Synopsis:       who truncates IPv6 addresses
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 22 05:04:00 PST 2002
>Originator:     Martti Kuparinen
>Release:        NetBSD 1.5ZA
System: NetBSD dhcp118 1.5ZA NetBSD 1.5ZA (KAYAK) #0: Thu Feb 7 17:20:04 CET 2002 root@dhcp118:/usr/src/sys/arch/i386/compile/KAYAK i386
Architecture: i386
Machine: i386


The who command truncates (or is it "struct lastlog" and
"struct utmp" -- I hope not) IPv6 addresses.

ROOT p4:~> who
martti   ttyp1    Feb 22 15:14  (xxxx:xxx:8:130:2)

ROOT p4:~> w
 2:53PM  up  1:46, 7 users, load averages: 1.29, 1.40, 1.34
martti   p1 xxxx:xxx::8:130:2  3:14PM     0 w

ROOT p4:~> last
martti    ttyp1    xxxx:xxx:8:130:2 Fri Feb 22 15:14   still logged in

The real address is xxxx:xxx:8:130:290:27ff:fe5d:a892. I understand
that the space is limited for w and last but who shouldn't truncate
the displayed address.