4 #include <linux/libc-compat.h>
5 #include <linux/types.h>
7 #include <asm/byteorder.h>
9 /* The latest drafts declared increase in minimal mtu up to 1280. */
11 #define IPV6_MIN_MTU 1280
15 * source interface/address selection, source routing, etc...
16 * *under construction*
19 #if __UAPI_DEF_IN6_PKTINFO
21 struct in6_addr ipi6_addr
;
26 #if __UAPI_DEF_IP6_MTUINFO
28 struct sockaddr_in6 ip6m_addr
;
34 struct in6_addr ifr6_addr
;
39 #define IPV6_SRCRT_STRICT 0x01 /* Deprecated; will be removed */
40 #define IPV6_SRCRT_TYPE_0 0 /* Deprecated; will be removed */
41 #define IPV6_SRCRT_TYPE_2 2 /* IPv6 type 2 Routing Header */
54 * variable length field
63 * TLV encoded option data follows.
65 } __attribute__((packed
)); /* required for some archs */
67 #define ipv6_destopt_hdr ipv6_opt_hdr
68 #define ipv6_hopopt_hdr ipv6_opt_hdr
70 /* Router Alert option values (RFC2711) */
71 #define IPV6_OPT_ROUTERALERT_MLD 0x0000 /* MLD(RFC2710) */
74 * routing header type 0 (used in cmsghdr struct)
78 struct ipv6_rt_hdr rt_hdr
;
80 struct in6_addr addr
[0];
82 #define rt0_type rt_hdr.type
86 * routing header type 2
90 struct ipv6_rt_hdr rt_hdr
;
94 #define rt2_type rt_hdr.type
98 * home address option in destination options header
101 struct ipv6_destopt_hao
{
104 struct in6_addr addr
;
105 } __attribute__((packed
));
110 * BEWARE, it is incorrect. The first 4 bits of flow_lbl
111 * are glued to priority now, forming "class".
115 #if defined(__LITTLE_ENDIAN_BITFIELD)
118 #elif defined(__BIG_ENDIAN_BITFIELD)
122 #error "Please fix <asm/byteorder.h>"
130 struct in6_addr saddr
;
131 struct in6_addr daddr
;
135 /* index values for the variables in ipv6_devconf */
137 DEVCONF_FORWARDING
= 0,
141 DEVCONF_ACCEPT_REDIRECTS
,
143 DEVCONF_DAD_TRANSMITS
,
144 DEVCONF_RTR_SOLICITS
,
145 DEVCONF_RTR_SOLICIT_INTERVAL
,
146 DEVCONF_RTR_SOLICIT_DELAY
,
147 DEVCONF_USE_TEMPADDR
,
148 DEVCONF_TEMP_VALID_LFT
,
149 DEVCONF_TEMP_PREFERED_LFT
,
150 DEVCONF_REGEN_MAX_RETRY
,
151 DEVCONF_MAX_DESYNC_FACTOR
,
152 DEVCONF_MAX_ADDRESSES
,
153 DEVCONF_FORCE_MLD_VERSION
,
154 DEVCONF_ACCEPT_RA_DEFRTR
,
155 DEVCONF_ACCEPT_RA_PINFO
,
156 DEVCONF_ACCEPT_RA_RTR_PREF
,
157 DEVCONF_RTR_PROBE_INTERVAL
,
158 DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN
,
160 DEVCONF_OPTIMISTIC_DAD
,
161 DEVCONF_ACCEPT_SOURCE_ROUTE
,
162 DEVCONF_MC_FORWARDING
,
163 DEVCONF_DISABLE_IPV6
,
166 DEVCONF_NDISC_NOTIFY
,
167 DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL
,
168 DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL
,
169 DEVCONF_SUPPRESS_FRAG_NDISC
,
170 DEVCONF_ACCEPT_RA_FROM_LOCAL
,
171 DEVCONF_USE_OPTIMISTIC
,
172 DEVCONF_ACCEPT_RA_MTU
,
173 DEVCONF_STABLE_SECRET
,
174 DEVCONF_USE_OIF_ADDRS_ONLY
,
175 DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT
,
176 DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN
,
177 DEVCONF_DROP_UNICAST_IN_L2_MULTICAST
,
178 DEVCONF_DROP_UNSOLICITED_NA
,
179 DEVCONF_KEEP_ADDR_ON_DOWN
,
184 #endif /* _UAPI_IPV6_H */