Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/android-openjdk-build-multiarch
Path: blob/buildjre8/ios-missing-include/netinet6/in6_var.h
861 views
1
/*
2
* Copyright (c) 2000-2020 Apple Inc. All rights reserved.
3
*
4
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5
*
6
* This file contains Original Code and/or Modifications of Original Code
7
* as defined in and that are subject to the Apple Public Source License
8
* Version 2.0 (the 'License'). You may not use this file except in
9
* compliance with the License. The rights granted to you under the License
10
* may not be used to create, or enable the creation or redistribution of,
11
* unlawful or unlicensed copies of an Apple operating system, or to
12
* circumvent, violate, or enable the circumvention or violation of, any
13
* terms of an Apple operating system software license agreement.
14
*
15
* Please obtain a copy of the License at
16
* http://www.opensource.apple.com/apsl/ and read it before using this file.
17
*
18
* The Original Code and all software distributed under the License are
19
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23
* Please see the License for the specific language governing rights and
24
* limitations under the License.
25
*
26
* @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27
*/
28
29
/*
30
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
31
* All rights reserved.
32
*
33
* Redistribution and use in source and binary forms, with or without
34
* modification, are permitted provided that the following conditions
35
* are met:
36
* 1. Redistributions of source code must retain the above copyright
37
* notice, this list of conditions and the following disclaimer.
38
* 2. Redistributions in binary form must reproduce the above copyright
39
* notice, this list of conditions and the following disclaimer in the
40
* documentation and/or other materials provided with the distribution.
41
* 3. Neither the name of the project nor the names of its contributors
42
* may be used to endorse or promote products derived from this software
43
* without specific prior written permission.
44
*
45
* THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
46
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
47
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
48
* ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
49
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
50
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
51
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
52
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
53
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
54
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
55
* SUCH DAMAGE.
56
*/
57
58
/*
59
* Copyright (c) 1985, 1986, 1993
60
* The Regents of the University of California. All rights reserved.
61
*
62
* Redistribution and use in source and binary forms, with or without
63
* modification, are permitted provided that the following conditions
64
* are met:
65
* 1. Redistributions of source code must retain the above copyright
66
* notice, this list of conditions and the following disclaimer.
67
* 2. Redistributions in binary form must reproduce the above copyright
68
* notice, this list of conditions and the following disclaimer in the
69
* documentation and/or other materials provided with the distribution.
70
* 3. All advertising materials mentioning features or use of this software
71
* must display the following acknowledgement:
72
* This product includes software developed by the University of
73
* California, Berkeley and its contributors.
74
* 4. Neither the name of the University nor the names of its contributors
75
* may be used to endorse or promote products derived from this software
76
* without specific prior written permission.
77
*
78
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
79
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
80
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
81
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
82
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
83
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
84
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
85
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
86
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
87
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
88
* SUCH DAMAGE.
89
*
90
* @(#)in_var.h 8.1 (Berkeley) 6/10/93
91
*/
92
93
#ifndef _NETINET6_IN6_VAR_H_
94
#define _NETINET6_IN6_VAR_H_
95
#include <sys/appleapiopts.h>
96
#include <net/net_kev.h>
97
98
#include <netinet6/scope6_var.h>
99
#include <sys/kern_event.h>
100
#include <net/ethernet.h>
101
102
/*
103
* pltime/vltime are just for future reference (required to implements 2
104
* hour rule for hosts). they should never be modified by nd6_timeout or
105
* anywhere else.
106
* userland -> kernel: accept pltime/vltime
107
* kernel -> userland: throw up everything
108
* in kernel: modify preferred/expire only
109
*/
110
struct in6_addrlifetime {
111
time_t ia6t_expire; /* valid lifetime expiration time */
112
time_t ia6t_preferred; /* preferred lifetime expiration time */
113
u_int32_t ia6t_vltime; /* valid lifetime */
114
u_int32_t ia6t_pltime; /* prefix lifetime */
115
};
116
117
118
/* control structure to manage address selection policy */
119
struct in6_addrpolicy {
120
struct sockaddr_in6 addr; /* prefix address */
121
struct sockaddr_in6 addrmask; /* prefix mask */
122
int preced; /* precedence */
123
int label; /* matching label */
124
u_quad_t use; /* statistics */
125
};
126
127
/*
128
* IPv6 interface statistics, as defined in RFC2465 Ipv6IfStatsEntry (p12).
129
*/
130
struct in6_ifstat {
131
u_quad_t ifs6_in_receive; /* # of total input datagram */
132
u_quad_t ifs6_in_hdrerr; /* # of datagrams with invalid hdr */
133
u_quad_t ifs6_in_toobig; /* # of datagrams exceeded MTU */
134
u_quad_t ifs6_in_noroute; /* # of datagrams with no route */
135
u_quad_t ifs6_in_addrerr; /* # of datagrams with invalid dst */
136
u_quad_t ifs6_in_protounknown; /* # of datagrams with unknown proto */
137
/* NOTE: increment on final dst if */
138
u_quad_t ifs6_in_truncated; /* # of truncated datagrams */
139
u_quad_t ifs6_in_discard; /* # of discarded datagrams */
140
/* NOTE: fragment timeout is not here */
141
u_quad_t ifs6_in_deliver; /* # of datagrams delivered to ULP */
142
/* NOTE: increment on final dst if */
143
u_quad_t ifs6_out_forward; /* # of datagrams forwarded */
144
/* NOTE: increment on outgoing if */
145
u_quad_t ifs6_out_request; /* # of outgoing datagrams from ULP */
146
/* NOTE: does not include forwrads */
147
u_quad_t ifs6_out_discard; /* # of discarded datagrams */
148
u_quad_t ifs6_out_fragok; /* # of datagrams fragmented */
149
u_quad_t ifs6_out_fragfail; /* # of datagrams failed on fragment */
150
u_quad_t ifs6_out_fragcreat; /* # of fragment datagrams */
151
/* NOTE: this is # after fragment */
152
u_quad_t ifs6_reass_reqd; /* # of incoming fragmented packets */
153
/* NOTE: increment on final dst if */
154
u_quad_t ifs6_reass_ok; /* # of reassembled packets */
155
/* NOTE: this is # after reass */
156
/* NOTE: increment on final dst if */
157
u_quad_t ifs6_atmfrag_rcvd; /* # of atomic fragments received */
158
u_quad_t ifs6_reass_fail; /* # of reass failures */
159
/* NOTE: may not be packet count */
160
/* NOTE: increment on final dst if */
161
u_quad_t ifs6_in_mcast; /* # of inbound multicast datagrams */
162
u_quad_t ifs6_out_mcast; /* # of outbound multicast datagrams */
163
164
u_quad_t ifs6_cantfoward_icmp6; /* # of ICMPv6 packets received for unreachable dest */
165
u_quad_t ifs6_addr_expiry_cnt; /* # of address expiry events (excluding privacy addresses) */
166
u_quad_t ifs6_pfx_expiry_cnt; /* # of prefix expiry events */
167
u_quad_t ifs6_defrtr_expiry_cnt; /* # of default router expiry events */
168
};
169
170
/*
171
* ICMPv6 interface statistics, as defined in RFC2466 Ipv6IfIcmpEntry.
172
* XXX: I'm not sure if this file is the right place for this structure...
173
*/
174
struct icmp6_ifstat {
175
/*
176
* Input statistics
177
*/
178
/* ipv6IfIcmpInMsgs, total # of input messages */
179
u_quad_t ifs6_in_msg;
180
/* ipv6IfIcmpInErrors, # of input error messages */
181
u_quad_t ifs6_in_error;
182
/* ipv6IfIcmpInDestUnreachs, # of input dest unreach errors */
183
u_quad_t ifs6_in_dstunreach;
184
/* ipv6IfIcmpInAdminProhibs, # of input admin. prohibited errs */
185
u_quad_t ifs6_in_adminprohib;
186
/* ipv6IfIcmpInTimeExcds, # of input time exceeded errors */
187
u_quad_t ifs6_in_timeexceed;
188
/* ipv6IfIcmpInParmProblems, # of input parameter problem errors */
189
u_quad_t ifs6_in_paramprob;
190
/* ipv6IfIcmpInPktTooBigs, # of input packet too big errors */
191
u_quad_t ifs6_in_pkttoobig;
192
/* ipv6IfIcmpInEchos, # of input echo requests */
193
u_quad_t ifs6_in_echo;
194
/* ipv6IfIcmpInEchoReplies, # of input echo replies */
195
u_quad_t ifs6_in_echoreply;
196
/* ipv6IfIcmpInRouterSolicits, # of input router solicitations */
197
u_quad_t ifs6_in_routersolicit;
198
/* ipv6IfIcmpInRouterAdvertisements, # of input router advertisements */
199
u_quad_t ifs6_in_routeradvert;
200
/* ipv6IfIcmpInNeighborSolicits, # of input neighbor solicitations */
201
u_quad_t ifs6_in_neighborsolicit;
202
/* ipv6IfIcmpInNeighborAdvertisements, # of input neighbor advs. */
203
u_quad_t ifs6_in_neighboradvert;
204
/* ipv6IfIcmpInRedirects, # of input redirects */
205
u_quad_t ifs6_in_redirect;
206
/* ipv6IfIcmpInGroupMembQueries, # of input MLD queries */
207
u_quad_t ifs6_in_mldquery;
208
/* ipv6IfIcmpInGroupMembResponses, # of input MLD reports */
209
u_quad_t ifs6_in_mldreport;
210
/* ipv6IfIcmpInGroupMembReductions, # of input MLD done */
211
u_quad_t ifs6_in_mlddone;
212
213
/*
214
* Output statistics. We should solve unresolved routing problem...
215
*/
216
/* ipv6IfIcmpOutMsgs, total # of output messages */
217
u_quad_t ifs6_out_msg;
218
/* ipv6IfIcmpOutErrors, # of output error messages */
219
u_quad_t ifs6_out_error;
220
/* ipv6IfIcmpOutDestUnreachs, # of output dest unreach errors */
221
u_quad_t ifs6_out_dstunreach;
222
/* ipv6IfIcmpOutAdminProhibs, # of output admin. prohibited errs */
223
u_quad_t ifs6_out_adminprohib;
224
/* ipv6IfIcmpOutTimeExcds, # of output time exceeded errors */
225
u_quad_t ifs6_out_timeexceed;
226
/* ipv6IfIcmpOutParmProblems, # of output parameter problem errors */
227
u_quad_t ifs6_out_paramprob;
228
/* ipv6IfIcmpOutPktTooBigs, # of output packet too big errors */
229
u_quad_t ifs6_out_pkttoobig;
230
/* ipv6IfIcmpOutEchos, # of output echo requests */
231
u_quad_t ifs6_out_echo;
232
/* ipv6IfIcmpOutEchoReplies, # of output echo replies */
233
u_quad_t ifs6_out_echoreply;
234
/* ipv6IfIcmpOutRouterSolicits, # of output router solicitations */
235
u_quad_t ifs6_out_routersolicit;
236
/* ipv6IfIcmpOutRouterAdvertisements, # of output router advs. */
237
u_quad_t ifs6_out_routeradvert;
238
/* ipv6IfIcmpOutNeighborSolicits, # of output neighbor solicitations */
239
u_quad_t ifs6_out_neighborsolicit;
240
/* ipv6IfIcmpOutNeighborAdvertisements, # of output neighbor advs. */
241
u_quad_t ifs6_out_neighboradvert;
242
/* ipv6IfIcmpOutRedirects, # of output redirects */
243
u_quad_t ifs6_out_redirect;
244
/* ipv6IfIcmpOutGroupMembQueries, # of output MLD queries */
245
u_quad_t ifs6_out_mldquery;
246
/* ipv6IfIcmpOutGroupMembResponses, # of output MLD reports */
247
u_quad_t ifs6_out_mldreport;
248
/* ipv6IfIcmpOutGroupMembReductions, # of output MLD done */
249
u_quad_t ifs6_out_mlddone;
250
};
251
252
struct in6_ifreq {
253
char ifr_name[IFNAMSIZ];
254
union {
255
struct sockaddr_in6 ifru_addr;
256
struct sockaddr_in6 ifru_dstaddr;
257
int ifru_flags;
258
int ifru_flags6;
259
int ifru_metric;
260
int ifru_intval;
261
caddr_t ifru_data;
262
struct in6_addrlifetime ifru_lifetime;
263
struct in6_ifstat ifru_stat;
264
struct icmp6_ifstat ifru_icmp6stat;
265
u_int32_t ifru_scope_id[SCOPE6_ID_MAX];
266
} ifr_ifru;
267
};
268
269
struct in6_aliasreq {
270
char ifra_name[IFNAMSIZ];
271
struct sockaddr_in6 ifra_addr;
272
struct sockaddr_in6 ifra_dstaddr;
273
struct sockaddr_in6 ifra_prefixmask;
274
int ifra_flags;
275
struct in6_addrlifetime ifra_lifetime;
276
};
277
278
279
280
/* prefix type macro */
281
#define IN6_PREFIX_ND 1
282
#define IN6_PREFIX_RR 2
283
284
/*
285
* prefix related flags passed between kernel(NDP related part) and
286
* user land command(ifconfig) and daemon(rtadvd).
287
*/
288
struct in6_prflags {
289
struct prf_ra {
290
u_char onlink : 1;
291
u_char autonomous : 1;
292
u_char reserved : 6;
293
} prf_ra;
294
u_char prf_reserved1;
295
u_short prf_reserved2;
296
/* want to put this on 4byte offset */
297
struct prf_rr {
298
u_char decrvalid : 1;
299
u_char decrprefd : 1;
300
u_char reserved : 6;
301
} prf_rr;
302
u_char prf_reserved3;
303
u_short prf_reserved4;
304
};
305
306
struct in6_prefixreq {
307
char ipr_name[IFNAMSIZ];
308
u_char ipr_origin;
309
u_char ipr_plen;
310
u_int32_t ipr_vltime;
311
u_int32_t ipr_pltime;
312
struct in6_prflags ipr_flags;
313
struct sockaddr_in6 ipr_prefix;
314
};
315
316
#define PR_ORIG_RA 0
317
#define PR_ORIG_RR 1
318
#define PR_ORIG_STATIC 2
319
#define PR_ORIG_KERNEL 3
320
321
#define ipr_raf_onlink ipr_flags.prf_ra.onlink
322
#define ipr_raf_auto ipr_flags.prf_ra.autonomous
323
324
#define ipr_statef_onlink ipr_flags.prf_state.onlink
325
326
#define ipr_rrf_decrvalid ipr_flags.prf_rr.decrvalid
327
#define ipr_rrf_decrprefd ipr_flags.prf_rr.decrprefd
328
329
struct in6_rrenumreq {
330
char irr_name[IFNAMSIZ];
331
u_char irr_origin;
332
u_char irr_m_len; /* match len for matchprefix */
333
u_char irr_m_minlen; /* minlen for matching prefix */
334
u_char irr_m_maxlen; /* maxlen for matching prefix */
335
u_char irr_u_uselen; /* uselen for adding prefix */
336
u_char irr_u_keeplen; /* keeplen from matching prefix */
337
struct irr_raflagmask {
338
u_char onlink : 1;
339
u_char autonomous : 1;
340
u_char reserved : 6;
341
} irr_raflagmask;
342
u_int32_t irr_vltime;
343
u_int32_t irr_pltime;
344
struct in6_prflags irr_flags;
345
struct sockaddr_in6 irr_matchprefix;
346
struct sockaddr_in6 irr_useprefix;
347
};
348
349
#define irr_raf_mask_onlink irr_raflagmask.onlink
350
#define irr_raf_mask_auto irr_raflagmask.autonomous
351
#define irr_raf_mask_reserved irr_raflagmask.reserved
352
353
#define irr_raf_onlink irr_flags.prf_ra.onlink
354
#define irr_raf_auto irr_flags.prf_ra.autonomous
355
356
#define irr_statef_onlink irr_flags.prf_state.onlink
357
358
#define irr_rrf irr_flags.prf_rr
359
#define irr_rrf_decrvalid irr_flags.prf_rr.decrvalid
360
#define irr_rrf_decrprefd irr_flags.prf_rr.decrprefd
361
362
/*
363
* Event data, inet6 style.
364
*/
365
struct kev_in6_addrlifetime {
366
u_int32_t ia6t_expire;
367
u_int32_t ia6t_preferred;
368
u_int32_t ia6t_vltime;
369
u_int32_t ia6t_pltime;
370
};
371
372
struct kev_in6_data {
373
struct net_event_data link_data;
374
struct sockaddr_in6 ia_addr; /* interface address */
375
struct sockaddr_in6 ia_net; /* network number of interface */
376
struct sockaddr_in6 ia_dstaddr; /* space for destination addr */
377
struct sockaddr_in6 ia_prefixmask; /* prefix mask */
378
u_int32_t ia_plen; /* prefix length */
379
u_int32_t ia6_flags; /* address flags from in6_ifaddr */
380
struct kev_in6_addrlifetime ia_lifetime; /* address life info */
381
uint8_t ia_mac[ETHER_ADDR_LEN];
382
};
383
384
385
#define SIOCSIFADDR_IN6 _IOW('i', 12, struct in6_ifreq)
386
#define SIOCGIFADDR_IN6 _IOWR('i', 33, struct in6_ifreq)
387
388
/*
389
* SIOCSxxx ioctls should be unused (see comments in in6.c), but
390
* we do not shift numbers for binary compatibility.
391
*/
392
#define SIOCSIFDSTADDR_IN6 _IOW('i', 14, struct in6_ifreq)
393
#define SIOCSIFNETMASK_IN6 _IOW('i', 22, struct in6_ifreq)
394
395
#define SIOCGIFDSTADDR_IN6 _IOWR('i', 34, struct in6_ifreq)
396
#define SIOCGIFNETMASK_IN6 _IOWR('i', 37, struct in6_ifreq)
397
398
#define SIOCDIFADDR_IN6 _IOW('i', 25, struct in6_ifreq)
399
#define SIOCAIFADDR_IN6 _IOW('i', 26, struct in6_aliasreq)
400
401
#define SIOCSIFPHYADDR_IN6 _IOW('i', 62, struct in6_aliasreq)
402
#define SIOCGIFPSRCADDR_IN6 _IOWR('i', 63, struct in6_ifreq)
403
#define SIOCGIFPDSTADDR_IN6 _IOWR('i', 64, struct in6_ifreq)
404
#define SIOCGIFAFLAG_IN6 _IOWR('i', 73, struct in6_ifreq)
405
406
#define SIOCGDRLST_IN6 _IOWR('i', 74, struct in6_drlist)
407
408
#define SIOCGPRLST_IN6 _IOWR('i', 75, struct in6_prlist)
409
410
#define OSIOCGIFINFO_IN6 _IOWR('i', 108, struct in6_ondireq)
411
#define SIOCGIFINFO_IN6 _IOWR('i', 76, struct in6_ondireq)
412
#define SIOCSNDFLUSH_IN6 _IOWR('i', 77, struct in6_ifreq)
413
414
#define SIOCGNBRINFO_IN6 _IOWR('i', 78, struct in6_nbrinfo)
415
416
#define SIOCSPFXFLUSH_IN6 _IOWR('i', 79, struct in6_ifreq)
417
#define SIOCSRTRFLUSH_IN6 _IOWR('i', 80, struct in6_ifreq)
418
419
#define SIOCGIFALIFETIME_IN6 _IOWR('i', 81, struct in6_ifreq)
420
#define SIOCSIFALIFETIME_IN6 _IOWR('i', 82, struct in6_ifreq)
421
#define SIOCGIFSTAT_IN6 _IOWR('i', 83, struct in6_ifreq)
422
#define SIOCGIFSTAT_ICMP6 _IOWR('i', 84, struct in6_ifreq)
423
424
#define SIOCSDEFIFACE_IN6 _IOWR('i', 85, struct in6_ndifreq)
425
#define SIOCGDEFIFACE_IN6 _IOWR('i', 86, struct in6_ndifreq)
426
427
#define SIOCSIFINFO_FLAGS _IOWR('i', 87, struct in6_ndireq) /* XXX */
428
429
/* N.B.: These 3 ioctls are deprecated and won't work */
430
#define SIOCSSCOPE6 _IOW('i', 88, struct in6_ifreq)
431
#define SIOCGSCOPE6 _IOWR('i', 89, struct in6_ifreq)
432
#define SIOCGSCOPE6DEF _IOWR('i', 90, struct in6_ifreq)
433
434
#define SIOCSIFPREFIX_IN6 _IOW('i', 100, struct in6_prefixreq) /* set */
435
#define SIOCGIFPREFIX_IN6 _IOWR('i', 101, struct in6_prefixreq) /* get */
436
#define SIOCDIFPREFIX_IN6 _IOW('i', 102, struct in6_prefixreq) /* del */
437
#define SIOCAIFPREFIX_IN6 _IOW('i', 103, struct in6_rrenumreq) /* add */
438
439
/* change */
440
#define SIOCCIFPREFIX_IN6 _IOW('i', 104, struct in6_rrenumreq)
441
442
/* set global */
443
#define SIOCSGIFPREFIX_IN6 _IOW('i', 105, struct in6_rrenumreq)
444
445
/*
446
* multicast routing, get s/g pkt cnt, pkt cnt per interface.
447
*/
448
#define SIOCGETSGCNT_IN6 _IOWR('u', 28, struct sioc_sg_req6)
449
#define SIOCGETMIFCNT_IN6 _IOWR('u', 107, struct sioc_mif_req6)
450
451
#define SIOCAADDRCTL_POLICY _IOW('u', 108, struct in6_addrpolicy)
452
#define SIOCDADDRCTL_POLICY _IOW('u', 109, struct in6_addrpolicy)
453
454
455
#define IN6_IFF_ANYCAST 0x0001 /* anycast address */
456
#define IN6_IFF_TENTATIVE 0x0002 /* tentative address */
457
#define IN6_IFF_DUPLICATED 0x0004 /* DAD detected duplicate */
458
#define IN6_IFF_DETACHED 0x0008 /* may be detached from the link */
459
#define IN6_IFF_DEPRECATED 0x0010 /* deprecated address */
460
461
/* don't perform DAD on this address (used only at first SIOC* call) */
462
#define IN6_IFF_NODAD 0x0020
463
464
#define IN6_IFF_AUTOCONF 0x0040 /* autoconfigurable address. */
465
#define IN6_IFF_TEMPORARY 0x0080 /* temporary (anonymous) address. */
466
#define IN6_IFF_DYNAMIC 0x0100 /* assigned by DHCPv6 service */
467
#define IN6_IFF_OPTIMISTIC 0x0200 /* optimistic DAD, i.e. RFC 4429 */
468
#define IN6_IFF_SECURED 0x0400 /* cryptographically generated */
469
#define IN6_IFF_CLAT46 0x1000 /* Address reserved for CLAT46 */
470
#define IN6_IFF_NOPFX 0x8000 /* Depreciated. Don't use. */
471
472
/* Duplicate Address Detection [DAD] in progress. */
473
#define IN6_IFF_DADPROGRESS (IN6_IFF_TENTATIVE|IN6_IFF_OPTIMISTIC)
474
475
/* do not input/output */
476
#define IN6_IFF_NOTREADY (IN6_IFF_TENTATIVE|IN6_IFF_DUPLICATED)
477
478
/* SLAAC/DHCPv6 address */
479
#define IN6_IFF_NOTMANUAL (IN6_IFF_AUTOCONF|IN6_IFF_DYNAMIC)
480
481
482
#endif /* _NETINET6_IN6_VAR_H_ */
483
484