# \[PATCH v05 26/72\] include/uapi/linux/if\_pppox.h: include linux/in.h and linux/in6.h

- Subsystems: NETWORKING DRIVERS, THE REST
- Maintainers: Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds
- Status: SUPERSEDED (Superseded by v06 posted 2017-08-06)
- Superseded by v06 (posted 2017-08-06).
- Revision v05 (4 revisions archived).
- List: netdev
- 2 messages, 2 authors
- Page: https://ratatoskr.run/netdev/2016/08/4819948/t

## \[PATCH v05 26/72\] include/uapi/linux/if\_pppox.h: include linux/in.h and linux/in6.h

- From: Mikko Rapeli \<hidden\>
- Date: 2016-08-22 18:42:51 
- Message: https://ratatoskr.run/netdev/2016/08/4819948.md

```text
Fixes userspace compilation errors:

error: field ‘addr’ has incomplete type
 struct sockaddr_in addr; /* IP address and port to send to */

error: field ‘addr’ has incomplete type
 struct sockaddr_in6 addr; /* IP address and port to send to */

Signed-off-by: Mikko Rapeli <redacted>
---
 include/uapi/linux/if_pppox.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/uapi/linux/if_pppox.h b/include/uapi/linux/if_pppox.h
index 473c3c4..d37bbb1 100644
--- a/include/uapi/linux/if_pppox.h
+++ b/include/uapi/linux/if_pppox.h
@@ -24,6 +24,8 @@
 #include <linux/if.h>
 #include <linux/if_ether.h>
 #include <linux/if_pppol2tp.h>
+#include <linux/in.h>
+#include <linux/in6.h>
 
 /* For user-space programs to pick up these definitions
  * which they wouldn't get otherwise without defining __KERNEL__
-- 
2.8.1
```

## Re: \[PATCH v05 26/72\] include/uapi/linux/if\_pppox.h: include linux/in.h and linux/in6.h

- From: David Miller \<davem@davemloft.net\>
- Date: 2016-08-22 23:31:41 
- Message: https://ratatoskr.run/netdev/2016/08/4820204.md

```text
From: Mikko Rapeli <redacted>
Date: Mon, 22 Aug 2016 20:32:43 +0200

> Fixes userspace compilation errors:
> 
> error: field ‘addr’ has incomplete type
>  struct sockaddr_in addr; /* IP address and port to send to */
> 
> error: field ‘addr’ has incomplete type
>  struct sockaddr_in6 addr; /* IP address and port to send to */
> 
> Signed-off-by: Mikko Rapeli <redacted>

Applied.
```
