# Re: \[PATCH net-next v2 05/10\] headers, net: Define struct \_\_kernel\_sockaddr, replacing struct sockaddr

- From: Ben Hutchings \<hidden\>
- Date: 2011-08-28 16:22:46 
- List: netdev
- Page: https://ratatoskr.run/netdev/2011/08/10878024
- Thread: https://ratatoskr.run/netdev/2011/08/10877860/t.md

```text
On Fri, 2011-08-26 at 12:20 -0400, David Miller wrote:
> From: David Miller <davem@davemloft.net>
> Date: Fri, 26 Aug 2011 12:04:51 -0400 (EDT)
> 
> > From: Ben Hutchings <redacted>
> > Date: Fri, 26 Aug 2011 16:42:48 +0100
> > 
> >> This #define is in the #ifdef __KERNEL__ section.  I don't want t
> >> change all the in-kernel users to say __kernel_sockaddr.  This is
> >> just the same as the preceding 'typedef __kernel_sa_family_t
> >> sa_family_t' except that you can't create struct aliases that way.
> > 
> > Aha, I didn't catch that part.  Then this is fine, thanks for
> > explaining Ben.
> 
> Actually, this patch breaks the build, specifically of ifenslave.c
> 
> I'll leave the other patches in, but you'll need to respin this one.
[...]

Right, it looks like this will have to wait for a proper resolution of
the conflicts between kernel and libc types.

Ben.

```

## Attachments

- [signature.asc](https://ratatoskr.run/netdev/2011/08/10878024/attachment/0) (application/pgp-signature, 828 bytes)
