Subject: bin/15695: who truncates IPv6 addresses
To: None <gnats-bugs@gnats.netbsd.org>
From: None <martti.kuparinen@iki.fi>
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
>Closed-Date:
>Last-Modified:
>Originator:     Martti Kuparinen
>Release:        NetBSD 1.5ZA
>Organization:
>Environment:
	
	
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

>Description:

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
USER    TTY FROM              LOGIN@  IDLE WHAT
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.

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: