[PATCH] ip6tnl: Use <netinet/in.h> for in6_addr and stuff

Thomas Graf tgraf at suug.ch
Sat Jun 28 00:50:32 PDT 2014


<linux/in6.h> is not compatible with some versions of <netinet/in.h>.

Cc: Susant Sahani <susant at redhat.com>
Cc: Cong Wang <xiyou.wangcong at gmail.com>
Signed-off-by: Thomas Graf <tgraf at suug.ch>
---
 lib/route/link/ip6tnl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/route/link/ip6tnl.c b/lib/route/link/ip6tnl.c
index ed79e82..9fe1367 100644
--- a/lib/route/link/ip6tnl.c
+++ b/lib/route/link/ip6tnl.c
@@ -30,7 +30,7 @@
 #include <netlink/route/rtnl.h>
 #include <netlink-private/route/link/api.h>
 #include <linux/if_tunnel.h>
-#include <linux/in6.h>
+#include <netinet/in.h>
 
 #define IP6_TNL_ATTR_LINK          (1 << 0)
 #define IP6_TNL_ATTR_LOCAL         (1 << 1)
-- 
1.9.3




More information about the libnl mailing list