* [PATCH] uapi: fix linux/mroute6.h userspace compilation errors
@ 2017-02-15 20:06 Dmitry V. Levin
2017-02-16 15:04 ` [PATCH v2] " Dmitry V. Levin
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry V. Levin @ 2017-02-15 20:06 UTC (permalink / raw)
To: David S. Miller, Nicolas Dichtel; +Cc: linux-kernel
Include <linux/in6.h> to fix the following linux/mroute6.h userspace
compilation errors:
/usr/include/linux/mroute6.h:80:22: error: field 'mf6cc_origin' has incomplete type
struct sockaddr_in6 mf6cc_origin; /* Origin of mcast */
/usr/include/linux/mroute6.h:81:22: error: field 'mf6cc_mcastgrp' has incomplete type
struct sockaddr_in6 mf6cc_mcastgrp; /* Group in question */
/usr/include/linux/mroute6.h:91:22: error: field 'src' has incomplete type
struct sockaddr_in6 src;
/usr/include/linux/mroute6.h:92:22: error: field 'grp' has incomplete type
struct sockaddr_in6 grp;
/usr/include/linux/mroute6.h:132:18: error: field 'im6_src' has incomplete type
struct in6_addr im6_src, im6_dst;
/usr/include/linux/mroute6.h:132:27: error: field 'im6_dst' has incomplete type
struct in6_addr im6_src, im6_dst;
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
include/uapi/linux/mroute6.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/uapi/linux/mroute6.h b/include/uapi/linux/mroute6.h
index 5062fb5..ed57211 100644
--- a/include/uapi/linux/mroute6.h
+++ b/include/uapi/linux/mroute6.h
@@ -4,6 +4,7 @@
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/sockios.h>
+#include <linux/in6.h> /* For struct sockaddr_in6. */
/*
* Based on the MROUTING 3.5 defines primarily to keep
--
ldv
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v2] uapi: fix linux/mroute6.h userspace compilation errors
2017-02-15 20:06 [PATCH] uapi: fix linux/mroute6.h userspace compilation errors Dmitry V. Levin
@ 2017-02-16 15:04 ` Dmitry V. Levin
2017-02-19 23:15 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry V. Levin @ 2017-02-16 15:04 UTC (permalink / raw)
To: David S. Miller, Nicolas Dichtel; +Cc: netdev, linux-kernel
Include <linux/in6.h> to fix the following linux/mroute6.h userspace
compilation errors:
/usr/include/linux/mroute6.h:80:22: error: field 'mf6cc_origin' has incomplete type
struct sockaddr_in6 mf6cc_origin; /* Origin of mcast */
/usr/include/linux/mroute6.h:81:22: error: field 'mf6cc_mcastgrp' has incomplete type
struct sockaddr_in6 mf6cc_mcastgrp; /* Group in question */
/usr/include/linux/mroute6.h:91:22: error: field 'src' has incomplete type
struct sockaddr_in6 src;
/usr/include/linux/mroute6.h:92:22: error: field 'grp' has incomplete type
struct sockaddr_in6 grp;
/usr/include/linux/mroute6.h:132:18: error: field 'im6_src' has incomplete type
struct in6_addr im6_src, im6_dst;
/usr/include/linux/mroute6.h:132:27: error: field 'im6_dst' has incomplete type
struct in6_addr im6_src, im6_dst;
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
v2: Cc'ed netdev
include/uapi/linux/mroute6.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/uapi/linux/mroute6.h b/include/uapi/linux/mroute6.h
index 5062fb5..ed57211 100644
--- a/include/uapi/linux/mroute6.h
+++ b/include/uapi/linux/mroute6.h
@@ -4,6 +4,7 @@
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/sockios.h>
+#include <linux/in6.h> /* For struct sockaddr_in6. */
/*
* Based on the MROUTING 3.5 defines primarily to keep
--
ldv
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] uapi: fix linux/mroute6.h userspace compilation errors
2017-02-16 15:04 ` [PATCH v2] " Dmitry V. Levin
@ 2017-02-19 23:15 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2017-02-19 23:15 UTC (permalink / raw)
To: ldv; +Cc: nicolas.dichtel, netdev, linux-kernel
From: "Dmitry V. Levin" <ldv@altlinux.org>
Date: Thu, 16 Feb 2017 18:04:29 +0300
> Include <linux/in6.h> to fix the following linux/mroute6.h userspace
> compilation errors:
>
> /usr/include/linux/mroute6.h:80:22: error: field 'mf6cc_origin' has incomplete type
> struct sockaddr_in6 mf6cc_origin; /* Origin of mcast */
> /usr/include/linux/mroute6.h:81:22: error: field 'mf6cc_mcastgrp' has incomplete type
> struct sockaddr_in6 mf6cc_mcastgrp; /* Group in question */
> /usr/include/linux/mroute6.h:91:22: error: field 'src' has incomplete type
> struct sockaddr_in6 src;
> /usr/include/linux/mroute6.h:92:22: error: field 'grp' has incomplete type
> struct sockaddr_in6 grp;
> /usr/include/linux/mroute6.h:132:18: error: field 'im6_src' has incomplete type
> struct in6_addr im6_src, im6_dst;
> /usr/include/linux/mroute6.h:132:27: error: field 'im6_dst' has incomplete type
> struct in6_addr im6_src, im6_dst;
>
> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-02-19 23:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-15 20:06 [PATCH] uapi: fix linux/mroute6.h userspace compilation errors Dmitry V. Levin
2017-02-16 15:04 ` [PATCH v2] " Dmitry V. Levin
2017-02-19 23:15 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.