Subject: Re: Use of sun_len in AF_UNIX socket addresses
To: None <tech-net@NetBSD.org>
From: Christian Biere <christianbiere@gmx.de>
List: tech-net
Date: 10/11/2006 22:45:39
Antti Kantee wrote:
> On Wed Oct 11 2006 at 22:13:47 +0200, Christian Biere wrote:
> > > You can't get rid of it since the kernel uses the same memory layout for
> > > the structure. Of course you could play games, but that's not really
> > > a thing I want to see just to hide the field. You can't set it wrong,
> > > so does it really matter?
> >
> > A simple way to get rid of it would be renaming "sun_len".
> Yes, see "games". Would we then obfuscate the kernel for the new name
> or obfuscate the headers to have two definitions?
I wouldn't call that a "game" nor obfuscated. There are already many
"#ifdef _KERNEL" in the header and I don't see anything wrong with that
except maybe that it would be cleaner to move all such stuff into
/usr/include/kernel/ whenever possible.
--
Christian