2011-01-20 00:12:30 +01:00
|
|
|
/****************************************************************************
|
|
|
|
****************************************************************************
|
|
|
|
***
|
|
|
|
*** This header was automatically generated from a Linux kernel header
|
|
|
|
*** of the same name, to make information necessary for userspace to
|
|
|
|
*** call into the kernel available to libc. It contains only constants,
|
|
|
|
*** structures, and macros generated from the original header, and thus,
|
|
|
|
*** contains no copyrightable information.
|
|
|
|
***
|
2012-03-08 06:13:49 +01:00
|
|
|
*** To edit the content of this header, modify the corresponding
|
|
|
|
*** source file (e.g. under external/kernel-headers/original/) then
|
|
|
|
*** run bionic/libc/kernel/tools/update_all.py
|
|
|
|
***
|
|
|
|
*** Any manual change here will be lost the next time this script will
|
|
|
|
*** be run. You've been warned!
|
|
|
|
***
|
2011-01-20 00:12:30 +01:00
|
|
|
****************************************************************************
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef _IPV6_H
|
|
|
|
#define _IPV6_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/in6.h>
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
#include <asm/byteorder.h>
|
|
|
|
#define IPV6_MIN_MTU 1280
|
|
|
|
struct in6_pktinfo {
|
|
|
|
struct in6_addr ipi6_addr;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
int ipi6_ifindex;
|
|
|
|
};
|
|
|
|
struct ip6_mtuinfo {
|
|
|
|
struct sockaddr_in6 ip6m_addr;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
__u32 ip6m_mtu;
|
|
|
|
};
|
|
|
|
struct in6_ifreq {
|
|
|
|
struct in6_addr ifr6_addr;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
__u32 ifr6_prefixlen;
|
|
|
|
int ifr6_ifindex;
|
|
|
|
};
|
2013-01-30 03:15:55 +01:00
|
|
|
#define IPV6_SRCRT_STRICT 0x01
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2013-01-30 03:15:55 +01:00
|
|
|
#define IPV6_SRCRT_TYPE_0 0
|
|
|
|
#define IPV6_SRCRT_TYPE_2 2
|
2011-01-20 00:12:30 +01:00
|
|
|
struct ipv6_rt_hdr {
|
|
|
|
__u8 nexthdr;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
__u8 hdrlen;
|
|
|
|
__u8 type;
|
|
|
|
__u8 segments_left;
|
|
|
|
};
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
struct ipv6_opt_hdr {
|
|
|
|
__u8 nexthdr;
|
|
|
|
__u8 hdrlen;
|
|
|
|
} __attribute__((packed));
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
#define ipv6_destopt_hdr ipv6_opt_hdr
|
|
|
|
#define ipv6_hopopt_hdr ipv6_opt_hdr
|
|
|
|
struct rt0_hdr {
|
|
|
|
struct ipv6_rt_hdr rt_hdr;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
__u32 reserved;
|
|
|
|
struct in6_addr addr[0];
|
|
|
|
#define rt0_type rt_hdr.type
|
|
|
|
};
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
struct rt2_hdr {
|
|
|
|
struct ipv6_rt_hdr rt_hdr;
|
|
|
|
__u32 reserved;
|
|
|
|
struct in6_addr addr;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
#define rt2_type rt_hdr.type
|
|
|
|
};
|
|
|
|
struct ipv6_destopt_hao {
|
|
|
|
__u8 type;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
__u8 length;
|
|
|
|
struct in6_addr addr;
|
|
|
|
} __attribute__((packed));
|
|
|
|
struct ipv6hdr {
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
#ifdef __LITTLE_ENDIAN_BITFIELD
|
|
|
|
__u8 priority:4,
|
|
|
|
version:4;
|
|
|
|
#elif defined(__BIG_ENDIAN_BITFIELD)
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
__u8 version:4,
|
|
|
|
priority:4;
|
|
|
|
#else
|
|
|
|
#error "Please fix <asm/byteorder.h>"
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
#endif
|
|
|
|
__u8 flow_lbl[3];
|
|
|
|
__be16 payload_len;
|
|
|
|
__u8 nexthdr;
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
__u8 hop_limit;
|
|
|
|
struct in6_addr saddr;
|
|
|
|
struct in6_addr daddr;
|
|
|
|
};
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
enum {
|
|
|
|
DEVCONF_FORWARDING = 0,
|
|
|
|
DEVCONF_HOPLIMIT,
|
|
|
|
DEVCONF_MTU6,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
DEVCONF_ACCEPT_RA,
|
|
|
|
DEVCONF_ACCEPT_REDIRECTS,
|
|
|
|
DEVCONF_AUTOCONF,
|
|
|
|
DEVCONF_DAD_TRANSMITS,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
DEVCONF_RTR_SOLICITS,
|
|
|
|
DEVCONF_RTR_SOLICIT_INTERVAL,
|
|
|
|
DEVCONF_RTR_SOLICIT_DELAY,
|
|
|
|
DEVCONF_USE_TEMPADDR,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
DEVCONF_TEMP_VALID_LFT,
|
|
|
|
DEVCONF_TEMP_PREFERED_LFT,
|
|
|
|
DEVCONF_REGEN_MAX_RETRY,
|
|
|
|
DEVCONF_MAX_DESYNC_FACTOR,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
DEVCONF_MAX_ADDRESSES,
|
|
|
|
DEVCONF_FORCE_MLD_VERSION,
|
|
|
|
DEVCONF_ACCEPT_RA_DEFRTR,
|
|
|
|
DEVCONF_ACCEPT_RA_PINFO,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
DEVCONF_ACCEPT_RA_RTR_PREF,
|
|
|
|
DEVCONF_RTR_PROBE_INTERVAL,
|
|
|
|
DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN,
|
|
|
|
DEVCONF_PROXY_NDP,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
DEVCONF_OPTIMISTIC_DAD,
|
|
|
|
DEVCONF_ACCEPT_SOURCE_ROUTE,
|
|
|
|
DEVCONF_MC_FORWARDING,
|
|
|
|
DEVCONF_DISABLE_IPV6,
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
DEVCONF_ACCEPT_DAD,
|
|
|
|
DEVCONF_FORCE_TLLAO,
|
|
|
|
DEVCONF_MAX
|
|
|
|
};
|
2012-03-08 06:13:49 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-20 00:12:30 +01:00
|
|
|
#endif
|