Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Mar 2007 07:50:09 GMT
From:      Will Andrews <will@firepipe.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/108743: who(1): IPv6 addresses truncated to maximum IPv4 address length
Message-ID:  <200703080750.l287o90N084062@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/108743; it has been noted by GNATS.

From: Will Andrews <will@firepipe.net>
To: bug-followup@freebsd.org
Cc: Net147@hotmail.com, remko@freebsd.org
Subject: Re: bin/108743: who(1): IPv6 addresses truncated to maximum IPv4 address length
Date: Thu, 8 Mar 2007 00:23:07 -0700

 Hi,
 
 This bug can't be fixed very easily.  The problem is that element
 ut_host of struct utmp in include/utmp.h is fixed in size at 16
 bytes.  Although I'm sure there is probably a way to obtain the
 raw addresses and print them out in who(1)/w(1), it is probably
 not worth it.  The easier solution would be to expand UT_HOSTSIZE
 from 16 to 40 (8 * 4 + 7 + 1 for NUL).  However, that would break
 the ABI and can only be done on -current at the right time.
 
 -- 
 wca



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703080750.l287o90N084062>