2013-10-17 01:09:24 +02: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.
|
|
|
|
***
|
|
|
|
*** 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!
|
|
|
|
***
|
|
|
|
****************************************************************************
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef _UAPI_IPV6_H
|
|
|
|
#define _UAPI_IPV6_H
|
2016-02-04 22:16:38 +01:00
|
|
|
#include <linux/libc-compat.h>
|
2013-10-17 01:09:24 +02:00
|
|
|
#include <linux/types.h>
|
2016-02-04 22:16:38 +01:00
|
|
|
#include <linux/in6.h>
|
2013-10-17 01:09:24 +02:00
|
|
|
#include <asm/byteorder.h>
|
|
|
|
#define IPV6_MIN_MTU 1280
|
2016-02-04 22:16:38 +01:00
|
|
|
#if __UAPI_DEF_IN6_PKTINFO
|
2013-10-17 01:09:24 +02:00
|
|
|
struct in6_pktinfo {
|
2015-01-28 19:07:51 +01:00
|
|
|
struct in6_addr ipi6_addr;
|
|
|
|
int ipi6_ifindex;
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
2016-02-04 22:16:38 +01:00
|
|
|
#endif
|
|
|
|
#if __UAPI_DEF_IP6_MTUINFO
|
2013-10-17 01:09:24 +02:00
|
|
|
struct ip6_mtuinfo {
|
2015-01-28 19:07:51 +01:00
|
|
|
struct sockaddr_in6 ip6m_addr;
|
|
|
|
__u32 ip6m_mtu;
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
2016-02-04 22:16:38 +01:00
|
|
|
#endif
|
2013-10-17 01:09:24 +02:00
|
|
|
struct in6_ifreq {
|
2016-02-04 22:16:38 +01:00
|
|
|
struct in6_addr ifr6_addr;
|
2015-01-28 19:07:51 +01:00
|
|
|
__u32 ifr6_prefixlen;
|
|
|
|
int ifr6_ifindex;
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
2016-02-04 22:16:38 +01:00
|
|
|
#define IPV6_SRCRT_STRICT 0x01
|
2013-10-17 01:09:24 +02:00
|
|
|
#define IPV6_SRCRT_TYPE_0 0
|
|
|
|
#define IPV6_SRCRT_TYPE_2 2
|
2020-06-02 05:29:29 +02:00
|
|
|
#define IPV6_SRCRT_TYPE_3 3
|
2017-02-21 21:35:09 +01:00
|
|
|
#define IPV6_SRCRT_TYPE_4 4
|
|
|
|
struct ipv6_rt_hdr {
|
2016-02-04 22:16:38 +01:00
|
|
|
__u8 nexthdr;
|
2015-01-28 19:07:51 +01:00
|
|
|
__u8 hdrlen;
|
|
|
|
__u8 type;
|
2017-02-21 21:35:09 +01:00
|
|
|
__u8 segments_left;
|
2016-02-04 22:16:38 +01:00
|
|
|
};
|
2013-10-17 01:09:24 +02:00
|
|
|
struct ipv6_opt_hdr {
|
2015-01-28 19:07:51 +01:00
|
|
|
__u8 nexthdr;
|
2017-02-21 21:35:09 +01:00
|
|
|
__u8 hdrlen;
|
2016-02-04 22:16:38 +01:00
|
|
|
} __attribute__((packed));
|
2013-10-17 01:09:24 +02:00
|
|
|
#define ipv6_destopt_hdr ipv6_opt_hdr
|
|
|
|
#define ipv6_hopopt_hdr ipv6_opt_hdr
|
2017-02-21 21:35:09 +01:00
|
|
|
#define IPV6_OPT_ROUTERALERT_MLD 0x0000
|
2016-02-04 22:16:38 +01:00
|
|
|
struct rt0_hdr {
|
2015-01-28 19:07:51 +01:00
|
|
|
struct ipv6_rt_hdr rt_hdr;
|
|
|
|
__u32 reserved;
|
2017-02-21 21:35:09 +01:00
|
|
|
struct in6_addr addr[0];
|
2016-02-04 22:16:38 +01:00
|
|
|
#define rt0_type rt_hdr.type
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
|
|
|
struct rt2_hdr {
|
2017-02-21 21:35:09 +01:00
|
|
|
struct ipv6_rt_hdr rt_hdr;
|
2016-02-04 22:16:38 +01:00
|
|
|
__u32 reserved;
|
2015-01-28 19:07:51 +01:00
|
|
|
struct in6_addr addr;
|
2013-10-17 01:09:24 +02:00
|
|
|
#define rt2_type rt_hdr.type
|
2017-02-21 21:35:09 +01:00
|
|
|
};
|
2016-02-04 22:16:38 +01:00
|
|
|
struct ipv6_destopt_hao {
|
2015-01-28 19:07:51 +01:00
|
|
|
__u8 type;
|
|
|
|
__u8 length;
|
2017-02-21 21:35:09 +01:00
|
|
|
struct in6_addr addr;
|
2016-02-04 22:16:38 +01:00
|
|
|
} __attribute__((packed));
|
2013-10-17 01:09:24 +02:00
|
|
|
struct ipv6hdr {
|
|
|
|
#ifdef __LITTLE_ENDIAN_BITFIELD
|
2017-02-21 21:35:09 +01:00
|
|
|
__u8 priority : 4, version : 4;
|
2016-02-04 22:16:38 +01:00
|
|
|
#elif defined(__BIG_ENDIAN_BITFIELD)
|
2015-01-28 19:07:51 +01:00
|
|
|
__u8 version : 4, priority : 4;
|
|
|
|
#else
|
2017-02-21 21:35:09 +01:00
|
|
|
#error "Please fix <asm/byteorder.h>"
|
2016-02-04 22:16:38 +01:00
|
|
|
#endif
|
2015-01-28 19:07:51 +01:00
|
|
|
__u8 flow_lbl[3];
|
|
|
|
__be16 payload_len;
|
2017-02-21 21:35:09 +01:00
|
|
|
__u8 nexthdr;
|
2016-02-04 22:16:38 +01:00
|
|
|
__u8 hop_limit;
|
2022-12-13 00:39:16 +01:00
|
|
|
__struct_group(, addrs,, struct in6_addr saddr;
|
2015-01-28 19:07:51 +01:00
|
|
|
struct in6_addr daddr;
|
2022-12-13 00:39:16 +01:00
|
|
|
);
|
2017-02-21 21:35:09 +01:00
|
|
|
};
|
2016-02-04 22:16:38 +01:00
|
|
|
enum {
|
2015-01-28 19:07:51 +01:00
|
|
|
DEVCONF_FORWARDING = 0,
|
|
|
|
DEVCONF_HOPLIMIT,
|
2017-02-21 21:35:09 +01:00
|
|
|
DEVCONF_MTU6,
|
2016-02-04 22:16:38 +01:00
|
|
|
DEVCONF_ACCEPT_RA,
|
2015-01-28 19:07:51 +01:00
|
|
|
DEVCONF_ACCEPT_REDIRECTS,
|
|
|
|
DEVCONF_AUTOCONF,
|
2017-02-21 21:35:09 +01:00
|
|
|
DEVCONF_DAD_TRANSMITS,
|
2016-02-04 22:16:38 +01:00
|
|
|
DEVCONF_RTR_SOLICITS,
|
2015-01-28 19:07:51 +01:00
|
|
|
DEVCONF_RTR_SOLICIT_INTERVAL,
|
|
|
|
DEVCONF_RTR_SOLICIT_DELAY,
|
2017-02-21 21:35:09 +01:00
|
|
|
DEVCONF_USE_TEMPADDR,
|
2016-02-04 22:16:38 +01:00
|
|
|
DEVCONF_TEMP_VALID_LFT,
|
2015-01-28 19:07:51 +01:00
|
|
|
DEVCONF_TEMP_PREFERED_LFT,
|
|
|
|
DEVCONF_REGEN_MAX_RETRY,
|
2017-02-21 21:35:09 +01:00
|
|
|
DEVCONF_MAX_DESYNC_FACTOR,
|
2016-02-04 22:16:38 +01:00
|
|
|
DEVCONF_MAX_ADDRESSES,
|
2015-01-28 19:07:51 +01:00
|
|
|
DEVCONF_FORCE_MLD_VERSION,
|
|
|
|
DEVCONF_ACCEPT_RA_DEFRTR,
|
2017-02-21 21:35:09 +01:00
|
|
|
DEVCONF_ACCEPT_RA_PINFO,
|
2016-02-04 22:16:38 +01:00
|
|
|
DEVCONF_ACCEPT_RA_RTR_PREF,
|
2015-01-28 19:07:51 +01:00
|
|
|
DEVCONF_RTR_PROBE_INTERVAL,
|
|
|
|
DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN,
|
2017-02-21 21:35:09 +01:00
|
|
|
DEVCONF_PROXY_NDP,
|
2016-02-04 22:16:38 +01:00
|
|
|
DEVCONF_OPTIMISTIC_DAD,
|
2015-01-28 19:07:51 +01:00
|
|
|
DEVCONF_ACCEPT_SOURCE_ROUTE,
|
|
|
|
DEVCONF_MC_FORWARDING,
|
2017-02-21 21:35:09 +01:00
|
|
|
DEVCONF_DISABLE_IPV6,
|
2016-02-04 22:16:38 +01:00
|
|
|
DEVCONF_ACCEPT_DAD,
|
2015-01-28 19:07:51 +01:00
|
|
|
DEVCONF_FORCE_TLLAO,
|
|
|
|
DEVCONF_NDISC_NOTIFY,
|
2017-02-21 21:35:09 +01:00
|
|
|
DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL,
|
2016-02-04 22:16:38 +01:00
|
|
|
DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL,
|
2015-01-28 19:07:51 +01:00
|
|
|
DEVCONF_SUPPRESS_FRAG_NDISC,
|
|
|
|
DEVCONF_ACCEPT_RA_FROM_LOCAL,
|
2017-02-21 21:35:09 +01:00
|
|
|
DEVCONF_USE_OPTIMISTIC,
|
2016-02-04 22:16:38 +01:00
|
|
|
DEVCONF_ACCEPT_RA_MTU,
|
|
|
|
DEVCONF_STABLE_SECRET,
|
|
|
|
DEVCONF_USE_OIF_ADDRS_ONLY,
|
2017-02-21 21:35:09 +01:00
|
|
|
DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT,
|
2016-02-04 22:16:38 +01:00
|
|
|
DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN,
|
2016-08-24 21:15:38 +02:00
|
|
|
DEVCONF_DROP_UNICAST_IN_L2_MULTICAST,
|
|
|
|
DEVCONF_DROP_UNSOLICITED_NA,
|
2017-02-21 21:35:09 +01:00
|
|
|
DEVCONF_KEEP_ADDR_ON_DOWN,
|
2017-01-13 23:09:31 +01:00
|
|
|
DEVCONF_RTR_SOLICIT_MAX_INTERVAL,
|
2017-02-21 21:35:09 +01:00
|
|
|
DEVCONF_SEG6_ENABLED,
|
|
|
|
DEVCONF_SEG6_REQUIRE_HMAC,
|
|
|
|
DEVCONF_ENHANCED_DAD,
|
2017-07-26 22:12:53 +02:00
|
|
|
DEVCONF_ADDR_GEN_MODE,
|
|
|
|
DEVCONF_DISABLE_POLICY,
|
|
|
|
DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN,
|
2018-02-01 00:29:16 +01:00
|
|
|
DEVCONF_NDISC_TCLASS,
|
2020-06-02 05:29:29 +02:00
|
|
|
DEVCONF_RPL_SEG_ENABLED,
|
2021-05-03 23:02:49 +02:00
|
|
|
DEVCONF_RA_DEFRTR_METRIC,
|
2021-11-02 00:26:06 +01:00
|
|
|
DEVCONF_IOAM6_ENABLED,
|
|
|
|
DEVCONF_IOAM6_ID,
|
|
|
|
DEVCONF_IOAM6_ID_WIDE,
|
2022-01-10 22:51:15 +01:00
|
|
|
DEVCONF_NDISC_EVICT_NOCARRIER,
|
2022-08-03 01:32:21 +02:00
|
|
|
DEVCONF_ACCEPT_UNTRACKED_NA,
|
2015-01-28 19:07:51 +01:00
|
|
|
DEVCONF_MAX
|
2013-10-17 01:09:24 +02:00
|
|
|
};
|
|
|
|
#endif
|