Subject: Re: increasing UT_HOSTSIZE for IPv6?
To: None <itojun@iijlab.net>
From: None <proff@suburbia.net>
List: tech-net
Date: 07/24/1999 02:49:35
> 
> >>	UT_HOSTSIZE (/usr/include/utmp.h) is set to 16.  This is not possible
> >>	to put IPv6 numeric address into ut_host[].
> >>	IPv6 numeric is usually fit into 40 bytes, in worst case 46 bytes
> >>	including "\0".  Worst case is like follows:
> >>		1111:2222:3333:4444:5555:123.123.123.123
> >should that not be
> >		1111:2222:3333:4444:5555:6666:123.123.123.123
> >after all...ipv6 uses a 128 bit address.
> 
> 	Oops sorry, I forgot that I started from 1 :-)
> 
> itojun

strings in utmp have not, historically, been null-terminated.

We should add a utmp field for max sized struct sockaddr.