From owner-freebsd-bugs@FreeBSD.ORG Thu Mar 8 07:50:09 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BFFA016A405 for ; Thu, 8 Mar 2007 07:50:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 72A9613C441 for ; Thu, 8 Mar 2007 07:50:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l287o9dM084069 for ; Thu, 8 Mar 2007 07:50:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l287o90N084062; Thu, 8 Mar 2007 07:50:09 GMT (envelope-from gnats) Date: Thu, 8 Mar 2007 07:50:09 GMT Message-Id: <200703080750.l287o90N084062@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Will Andrews Cc: Subject: Re: bin/108743: who(1): IPv6 addresses truncated to maximum IPv4 address length X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Will Andrews List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Mar 2007 07:50:09 -0000 The following reply was made to PR bin/108743; it has been noted by GNATS. From: Will Andrews 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