Subject: Re: increasing UT_HOSTSIZE for IPv6?
To: None <firstname.lastname@example.org>
From: None <email@example.com>
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:188.8.131.52
> >should that not be
> > 1111:2222:3333:4444:5555:6666:184.108.40.206
> >after all...ipv6 uses a 128 bit address.
> Oops sorry, I forgot that I started from 1 :-)
strings in utmp have not, historically, been null-terminated.
We should add a utmp field for max sized struct sockaddr.