Subject: Re: cleaning up the rest of dtom()
To: enami tsugutomo <firstname.lastname@example.org>
From: Jason Thorpe <email@example.com>
Date: 06/24/1997 18:40:06
On 25 Jun 1997 09:46:49 +0900
enami tsugutomo <firstname.lastname@example.org> wrote:
> Jason Thorpe <email@example.com> writes:
> > Ok... On a 32-bit arch, sizeof(struct m_hdr) == 24 (I don't see any
> > cases where the compiler might pad it out).
> sizeof (struct mbuf *) * 2 + sizeof (caddr_t) + sizeof (int) + sizeof
> * (short) 2 is 20 if there is no padding, isn't it?
oops, you're right ... I counted something twice...
> Then, the test I mentioned becomes true when length of address is 108,
> but it is 2 bytes bigger than sizeof (struct sockaddr_un) which is 106
> byte if no padding.
right, yes... gotcha... Yah, I think I definitely see a way to fix
this ... I will do so shortly.
Jason R. Thorpe firstname.lastname@example.org
NASA Ames Research Center Home: 408.866.1912
NAS: M/S 258-6 Work: 415.604.0935
Moffett Field, CA 94035 Pager: 415.428.6939