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
68 * routing header type 0 (used in cmsghdr struct)
72 struct ipv6_rt_hdr rt_hdr
;
74 struct in6_addr addr
[0];
76 #define rt0_type rt_hdr.type
80 * routing header type 2
84 struct ipv6_rt_hdr rt_hdr
;
88 #define rt2_type rt_hdr.type
92 * home address option in destination options header
95 struct ipv6_destopt_hao
{
99 } __attribute__((packed
));
104 * BEWARE, it is incorrect. The first 4 bits of flow_lbl
105 * are glued to priority now, forming "class".
109 #if defined(__LITTLE_ENDIAN_BITFIELD)
112 #elif defined(__BIG_ENDIAN_BITFIELD)
116 #error "Please fix <asm/byteorder.h>"
124 struct in6_addr saddr
;
125 struct in6_addr daddr
;
129 /* index values for the variables in ipv6_devconf */
131 DEVCONF_FORWARDING
= 0,
135 DEVCONF_ACCEPT_REDIRECTS
,
137 DEVCONF_DAD_TRANSMITS
,
138 DEVCONF_RTR_SOLICITS
,
139 DEVCONF_RTR_SOLICIT_INTERVAL
,
140 DEVCONF_RTR_SOLICIT_DELAY
,
141 DEVCONF_USE_TEMPADDR
,
142 DEVCONF_TEMP_VALID_LFT
,
143 DEVCONF_TEMP_PREFERED_LFT
,
144 DEVCONF_REGEN_MAX_RETRY
,
145 DEVCONF_MAX_DESYNC_FACTOR
,
146 DEVCONF_MAX_ADDRESSES
,
147 DEVCONF_FORCE_MLD_VERSION
,
148 DEVCONF_ACCEPT_RA_DEFRTR
,
149 DEVCONF_ACCEPT_RA_PINFO
,
150 DEVCONF_ACCEPT_RA_RTR_PREF
,
151 DEVCONF_RTR_PROBE_INTERVAL
,
152 DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN
,
154 DEVCONF_OPTIMISTIC_DAD
,
155 DEVCONF_ACCEPT_SOURCE_ROUTE
,
156 DEVCONF_MC_FORWARDING
,
157 DEVCONF_DISABLE_IPV6
,
164 #endif /* _UAPI_IPV6_H */