4 #include <linux/types.h>
6 #include <asm/byteorder.h>
8 /* The latest drafts declared increase in minimal mtu up to 1280. */
10 #define IPV6_MIN_MTU 1280
14 * source interface/address selection, source routing, etc...
15 * *under construction*
20 struct in6_addr ipi6_addr
;
25 struct sockaddr_in6 ip6m_addr
;
30 struct in6_addr ifr6_addr
;
35 #define IPV6_SRCRT_STRICT 0x01 /* Deprecated; will be removed */
36 #define IPV6_SRCRT_TYPE_0 0 /* Deprecated; will be removed */
37 #define IPV6_SRCRT_TYPE_2 2 /* IPv6 type 2 Routing Header */
50 * variable length field
59 * TLV encoded option data follows.
61 } __attribute__((packed
)); /* required for some archs */
63 #define ipv6_destopt_hdr ipv6_opt_hdr
64 #define ipv6_hopopt_hdr ipv6_opt_hdr
66 /* Router Alert option values (RFC2711) */
67 #define IPV6_OPT_ROUTERALERT_MLD 0x0000 /* MLD(RFC2710) */
70 * routing header type 0 (used in cmsghdr struct)
74 struct ipv6_rt_hdr rt_hdr
;
76 struct in6_addr addr
[0];
78 #define rt0_type rt_hdr.type
82 * routing header type 2
86 struct ipv6_rt_hdr rt_hdr
;
90 #define rt2_type rt_hdr.type
94 * home address option in destination options header
97 struct ipv6_destopt_hao
{
100 struct in6_addr addr
;
101 } __attribute__((packed
));
106 * BEWARE, it is incorrect. The first 4 bits of flow_lbl
107 * are glued to priority now, forming "class".
111 #if defined(__LITTLE_ENDIAN_BITFIELD)
114 #elif defined(__BIG_ENDIAN_BITFIELD)
118 #error "Please fix <asm/byteorder.h>"
126 struct in6_addr saddr
;
127 struct in6_addr daddr
;
131 /* index values for the variables in ipv6_devconf */
133 DEVCONF_FORWARDING
= 0,
137 DEVCONF_ACCEPT_REDIRECTS
,
139 DEVCONF_DAD_TRANSMITS
,
140 DEVCONF_RTR_SOLICITS
,
141 DEVCONF_RTR_SOLICIT_INTERVAL
,
142 DEVCONF_RTR_SOLICIT_DELAY
,
143 DEVCONF_USE_TEMPADDR
,
144 DEVCONF_TEMP_VALID_LFT
,
145 DEVCONF_TEMP_PREFERED_LFT
,
146 DEVCONF_REGEN_MAX_RETRY
,
147 DEVCONF_MAX_DESYNC_FACTOR
,
148 DEVCONF_MAX_ADDRESSES
,
149 DEVCONF_FORCE_MLD_VERSION
,
150 DEVCONF_ACCEPT_RA_DEFRTR
,
151 DEVCONF_ACCEPT_RA_PINFO
,
152 DEVCONF_ACCEPT_RA_RTR_PREF
,
153 DEVCONF_RTR_PROBE_INTERVAL
,
154 DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN
,
156 DEVCONF_OPTIMISTIC_DAD
,
157 DEVCONF_ACCEPT_SOURCE_ROUTE
,
158 DEVCONF_MC_FORWARDING
,
159 DEVCONF_DISABLE_IPV6
,
162 DEVCONF_NDISC_NOTIFY
,
167 #endif /* _UAPI_IPV6_H */