Subject: Re: cleaning up the rest of dtom()
To: enami tsugutomo <email@example.com>
From: Jason Thorpe <firstname.lastname@example.org>
Date: 06/24/1997 18:40:06
On 25 Jun 1997 09:46:49 +0900
enami tsugutomo <email@example.com> wrote:
> Jason Thorpe <firstname.lastname@example.org> 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 email@example.com
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