From f5386e1150bb1c008446f458b3aef6954ebf83d1 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 6 Jul 2015 14:47:26 -0700 Subject: [PATCH] headers update if_tun: new ioctl value libc-compat.h: add definitions for kernel build --- include/linux/if_tun.h | 6 ++++++ include/linux/libc-compat.h | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/include/linux/if_tun.h b/include/linux/if_tun.h index ffee58397..d5ecb4254 100644 --- a/include/linux/if_tun.h +++ b/include/linux/if_tun.h @@ -50,6 +50,12 @@ #define TUNGETFILTER _IOR('T', 219, struct sock_fprog) #define TUNSETVNETLE _IOW('T', 220, int) #define TUNGETVNETLE _IOR('T', 221, int) +/* The TUNSETVNETBE and TUNGETVNETBE ioctls are for cross-endian support on + * little-endian hosts. Not all kernel configurations support them, but all + * configurations that support SET also support GET. + */ +#define TUNSETVNETBE _IOW('T', 222, int) +#define TUNGETVNETBE _IOR('T', 223, int) /* TUNSETIFF ifr flags */ #define IFF_TUN 0x0001 diff --git a/include/linux/libc-compat.h b/include/linux/libc-compat.h index 5dbc9c8dc..9bed5b6ae 100644 --- a/include/linux/libc-compat.h +++ b/include/linux/libc-compat.h @@ -117,6 +117,14 @@ * that we need. */ #else /* !defined(__GLIBC__) */ +/* Definitions for in.h */ +#define __UAPI_DEF_IN_ADDR 1 +#define __UAPI_DEF_IN_IPPROTO 1 +#define __UAPI_DEF_IN_PKTINFO 1 +#define __UAPI_DEF_IP_MREQ 1 +#define __UAPI_DEF_SOCKADDR_IN 1 +#define __UAPI_DEF_IN_CLASS 1 + /* Definitions for in6.h */ #define __UAPI_DEF_IN6_ADDR 1 #define __UAPI_DEF_IN6_ADDR_ALT 1 -- 2.47.2