]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
headers update
authorStephen Hemminger <shemming@brocade.com>
Mon, 6 Jul 2015 21:47:26 +0000 (14:47 -0700)
committerStephen Hemminger <shemming@brocade.com>
Mon, 6 Jul 2015 21:47:26 +0000 (14:47 -0700)
if_tun: new ioctl value
libc-compat.h: add definitions for kernel build

include/linux/if_tun.h
include/linux/libc-compat.h

index ffee58397eaa7a94da2f943ce97e3417de8f766d..d5ecb42541819e7660800cae783dfc694d4148b7 100644 (file)
 #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
index 5dbc9c8dc2d2aa7419146286bc025bd352ca2694..9bed5b6ae4d99448cead8ee948d9e59a648a48c5 100644 (file)
  * 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