Subject: Re: cleaning up the rest of dtom()
To: Jason Thorpe <>
From: enami tsugutomo <>
List: tech-kern
Date: 06/25/1997 09:46:49
Jason Thorpe <> 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?

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.