Prevent threading.Thread.join() from blocking when a previous call raised an
[python.git] / Lib / plat-freebsd6 / IN.py
blob31e9e130a0fa96f1060dc39981386d5f686bf2df
1 # Generated by h2py from /usr/include/netinet/in.h
3 # Included from sys/cdefs.h
4 def __P(protos): return protos
6 def __STRING(x): return #x
8 def __XSTRING(x): return __STRING(x)
10 def __P(protos): return ()
12 def __STRING(x): return "x"
14 def __aligned(x): return __attribute__((__aligned__(x)))
16 def __section(x): return __attribute__((__section__(x)))
18 def __aligned(x): return __attribute__((__aligned__(x)))
20 def __section(x): return __attribute__((__section__(x)))
22 def __nonnull(x): return __attribute__((__nonnull__(x)))
24 def __predict_true(exp): return __builtin_expect((exp), 1)
26 def __predict_false(exp): return __builtin_expect((exp), 0)
28 def __predict_true(exp): return (exp)
30 def __predict_false(exp): return (exp)
32 def __FBSDID(s): return __IDSTRING(__CONCAT(__rcsid_,__LINE__),s)
34 def __RCSID(s): return __IDSTRING(__CONCAT(__rcsid_,__LINE__),s)
36 def __RCSID_SOURCE(s): return __IDSTRING(__CONCAT(__rcsid_source_,__LINE__),s)
38 def __SCCSID(s): return __IDSTRING(__CONCAT(__sccsid_,__LINE__),s)
40 def __COPYRIGHT(s): return __IDSTRING(__CONCAT(__copyright_,__LINE__),s)
42 _POSIX_C_SOURCE = 199009
43 _POSIX_C_SOURCE = 199209
44 __XSI_VISIBLE = 600
45 _POSIX_C_SOURCE = 200112
46 __XSI_VISIBLE = 500
47 _POSIX_C_SOURCE = 199506
48 _POSIX_C_SOURCE = 198808
49 __POSIX_VISIBLE = 200112
50 __ISO_C_VISIBLE = 1999
51 __POSIX_VISIBLE = 199506
52 __ISO_C_VISIBLE = 1990
53 __POSIX_VISIBLE = 199309
54 __ISO_C_VISIBLE = 1990
55 __POSIX_VISIBLE = 199209
56 __ISO_C_VISIBLE = 1990
57 __POSIX_VISIBLE = 199009
58 __ISO_C_VISIBLE = 1990
59 __POSIX_VISIBLE = 198808
60 __ISO_C_VISIBLE = 0
61 __POSIX_VISIBLE = 0
62 __XSI_VISIBLE = 0
63 __BSD_VISIBLE = 0
64 __ISO_C_VISIBLE = 1990
65 __POSIX_VISIBLE = 0
66 __XSI_VISIBLE = 0
67 __BSD_VISIBLE = 0
68 __ISO_C_VISIBLE = 1999
69 __POSIX_VISIBLE = 200112
70 __XSI_VISIBLE = 600
71 __BSD_VISIBLE = 1
72 __ISO_C_VISIBLE = 1999
74 # Included from sys/_types.h
76 # Included from machine/_types.h
78 # Included from machine/endian.h
79 _QUAD_HIGHWORD = 1
80 _QUAD_LOWWORD = 0
81 _LITTLE_ENDIAN = 1234
82 _BIG_ENDIAN = 4321
83 _PDP_ENDIAN = 3412
84 _BYTE_ORDER = _LITTLE_ENDIAN
85 LITTLE_ENDIAN = _LITTLE_ENDIAN
86 BIG_ENDIAN = _BIG_ENDIAN
87 PDP_ENDIAN = _PDP_ENDIAN
88 BYTE_ORDER = _BYTE_ORDER
89 __INTEL_COMPILER_with_FreeBSD_endian = 1
90 __INTEL_COMPILER_with_FreeBSD_endian = 1
91 def __word_swap_int_var(x): return \
93 def __word_swap_int_const(x): return \
95 def __word_swap_int(x): return __word_swap_int_var(x)
97 def __byte_swap_int_var(x): return \
99 def __byte_swap_int_var(x): return \
101 def __byte_swap_int_const(x): return \
103 def __byte_swap_int(x): return __byte_swap_int_var(x)
105 def __byte_swap_word_var(x): return \
107 def __byte_swap_word_const(x): return \
109 def __byte_swap_word(x): return __byte_swap_word_var(x)
111 def __htonl(x): return __bswap32(x)
113 def __htons(x): return __bswap16(x)
115 def __ntohl(x): return __bswap32(x)
117 def __ntohs(x): return __bswap16(x)
119 IPPROTO_IP = 0
120 IPPROTO_ICMP = 1
121 IPPROTO_TCP = 6
122 IPPROTO_UDP = 17
123 def htonl(x): return __htonl(x)
125 def htons(x): return __htons(x)
127 def ntohl(x): return __ntohl(x)
129 def ntohs(x): return __ntohs(x)
131 IPPROTO_RAW = 255
132 INET_ADDRSTRLEN = 16
133 IPPROTO_HOPOPTS = 0
134 IPPROTO_IGMP = 2
135 IPPROTO_GGP = 3
136 IPPROTO_IPV4 = 4
137 IPPROTO_IPIP = IPPROTO_IPV4
138 IPPROTO_ST = 7
139 IPPROTO_EGP = 8
140 IPPROTO_PIGP = 9
141 IPPROTO_RCCMON = 10
142 IPPROTO_NVPII = 11
143 IPPROTO_PUP = 12
144 IPPROTO_ARGUS = 13
145 IPPROTO_EMCON = 14
146 IPPROTO_XNET = 15
147 IPPROTO_CHAOS = 16
148 IPPROTO_MUX = 18
149 IPPROTO_MEAS = 19
150 IPPROTO_HMP = 20
151 IPPROTO_PRM = 21
152 IPPROTO_IDP = 22
153 IPPROTO_TRUNK1 = 23
154 IPPROTO_TRUNK2 = 24
155 IPPROTO_LEAF1 = 25
156 IPPROTO_LEAF2 = 26
157 IPPROTO_RDP = 27
158 IPPROTO_IRTP = 28
159 IPPROTO_TP = 29
160 IPPROTO_BLT = 30
161 IPPROTO_NSP = 31
162 IPPROTO_INP = 32
163 IPPROTO_SEP = 33
164 IPPROTO_3PC = 34
165 IPPROTO_IDPR = 35
166 IPPROTO_XTP = 36
167 IPPROTO_DDP = 37
168 IPPROTO_CMTP = 38
169 IPPROTO_TPXX = 39
170 IPPROTO_IL = 40
171 IPPROTO_IPV6 = 41
172 IPPROTO_SDRP = 42
173 IPPROTO_ROUTING = 43
174 IPPROTO_FRAGMENT = 44
175 IPPROTO_IDRP = 45
176 IPPROTO_RSVP = 46
177 IPPROTO_GRE = 47
178 IPPROTO_MHRP = 48
179 IPPROTO_BHA = 49
180 IPPROTO_ESP = 50
181 IPPROTO_AH = 51
182 IPPROTO_INLSP = 52
183 IPPROTO_SWIPE = 53
184 IPPROTO_NHRP = 54
185 IPPROTO_MOBILE = 55
186 IPPROTO_TLSP = 56
187 IPPROTO_SKIP = 57
188 IPPROTO_ICMPV6 = 58
189 IPPROTO_NONE = 59
190 IPPROTO_DSTOPTS = 60
191 IPPROTO_AHIP = 61
192 IPPROTO_CFTP = 62
193 IPPROTO_HELLO = 63
194 IPPROTO_SATEXPAK = 64
195 IPPROTO_KRYPTOLAN = 65
196 IPPROTO_RVD = 66
197 IPPROTO_IPPC = 67
198 IPPROTO_ADFS = 68
199 IPPROTO_SATMON = 69
200 IPPROTO_VISA = 70
201 IPPROTO_IPCV = 71
202 IPPROTO_CPNX = 72
203 IPPROTO_CPHB = 73
204 IPPROTO_WSN = 74
205 IPPROTO_PVP = 75
206 IPPROTO_BRSATMON = 76
207 IPPROTO_ND = 77
208 IPPROTO_WBMON = 78
209 IPPROTO_WBEXPAK = 79
210 IPPROTO_EON = 80
211 IPPROTO_VMTP = 81
212 IPPROTO_SVMTP = 82
213 IPPROTO_VINES = 83
214 IPPROTO_TTP = 84
215 IPPROTO_IGP = 85
216 IPPROTO_DGP = 86
217 IPPROTO_TCF = 87
218 IPPROTO_IGRP = 88
219 IPPROTO_OSPFIGP = 89
220 IPPROTO_SRPC = 90
221 IPPROTO_LARP = 91
222 IPPROTO_MTP = 92
223 IPPROTO_AX25 = 93
224 IPPROTO_IPEIP = 94
225 IPPROTO_MICP = 95
226 IPPROTO_SCCSP = 96
227 IPPROTO_ETHERIP = 97
228 IPPROTO_ENCAP = 98
229 IPPROTO_APES = 99
230 IPPROTO_GMTP = 100
231 IPPROTO_IPCOMP = 108
232 IPPROTO_PIM = 103
233 IPPROTO_PGM = 113
234 IPPROTO_PFSYNC = 240
235 IPPROTO_OLD_DIVERT = 254
236 IPPROTO_MAX = 256
237 IPPROTO_DONE = 257
238 IPPROTO_DIVERT = 258
239 IPPORT_RESERVED = 1024
240 IPPORT_HIFIRSTAUTO = 49152
241 IPPORT_HILASTAUTO = 65535
242 IPPORT_RESERVEDSTART = 600
243 IPPORT_MAX = 65535
244 def IN_CLASSA(i): return (((u_int32_t)(i) & (-2147483648)) == 0)
246 IN_CLASSA_NET = (-16777216)
247 IN_CLASSA_NSHIFT = 24
248 IN_CLASSA_HOST = 0x00ffffff
249 IN_CLASSA_MAX = 128
250 def IN_CLASSB(i): return (((u_int32_t)(i) & (-1073741824)) == (-2147483648))
252 IN_CLASSB_NET = (-65536)
253 IN_CLASSB_NSHIFT = 16
254 IN_CLASSB_HOST = 0x0000ffff
255 IN_CLASSB_MAX = 65536
256 def IN_CLASSC(i): return (((u_int32_t)(i) & (-536870912)) == (-1073741824))
258 IN_CLASSC_NET = (-256)
259 IN_CLASSC_NSHIFT = 8
260 IN_CLASSC_HOST = 0x000000ff
261 def IN_CLASSD(i): return (((u_int32_t)(i) & (-268435456)) == (-536870912))
263 IN_CLASSD_NET = (-268435456)
264 IN_CLASSD_NSHIFT = 28
265 IN_CLASSD_HOST = 0x0fffffff
266 def IN_MULTICAST(i): return IN_CLASSD(i)
268 def IN_EXPERIMENTAL(i): return (((u_int32_t)(i) & (-268435456)) == (-268435456))
270 def IN_BADCLASS(i): return (((u_int32_t)(i) & (-268435456)) == (-268435456))
272 INADDR_NONE = (-1)
273 IN_LOOPBACKNET = 127
274 IP_OPTIONS = 1
275 IP_HDRINCL = 2
276 IP_TOS = 3
277 IP_TTL = 4
278 IP_RECVOPTS = 5
279 IP_RECVRETOPTS = 6
280 IP_RECVDSTADDR = 7
281 IP_SENDSRCADDR = IP_RECVDSTADDR
282 IP_RETOPTS = 8
283 IP_MULTICAST_IF = 9
284 IP_MULTICAST_TTL = 10
285 IP_MULTICAST_LOOP = 11
286 IP_ADD_MEMBERSHIP = 12
287 IP_DROP_MEMBERSHIP = 13
288 IP_MULTICAST_VIF = 14
289 IP_RSVP_ON = 15
290 IP_RSVP_OFF = 16
291 IP_RSVP_VIF_ON = 17
292 IP_RSVP_VIF_OFF = 18
293 IP_PORTRANGE = 19
294 IP_RECVIF = 20
295 IP_IPSEC_POLICY = 21
296 IP_FAITH = 22
297 IP_ONESBCAST = 23
298 IP_FW_TABLE_ADD = 40
299 IP_FW_TABLE_DEL = 41
300 IP_FW_TABLE_FLUSH = 42
301 IP_FW_TABLE_GETSIZE = 43
302 IP_FW_TABLE_LIST = 44
303 IP_FW_ADD = 50
304 IP_FW_DEL = 51
305 IP_FW_FLUSH = 52
306 IP_FW_ZERO = 53
307 IP_FW_GET = 54
308 IP_FW_RESETLOG = 55
309 IP_DUMMYNET_CONFIGURE = 60
310 IP_DUMMYNET_DEL = 61
311 IP_DUMMYNET_FLUSH = 62
312 IP_DUMMYNET_GET = 64
313 IP_RECVTTL = 65
314 IP_DEFAULT_MULTICAST_TTL = 1
315 IP_DEFAULT_MULTICAST_LOOP = 1
316 IP_MAX_MEMBERSHIPS = 20
317 IP_PORTRANGE_DEFAULT = 0
318 IP_PORTRANGE_HIGH = 1
319 IP_PORTRANGE_LOW = 2
320 IPPROTO_MAXID = (IPPROTO_AH + 1)
321 IPCTL_FORWARDING = 1
322 IPCTL_SENDREDIRECTS = 2
323 IPCTL_DEFTTL = 3
324 IPCTL_DEFMTU = 4
325 IPCTL_RTEXPIRE = 5
326 IPCTL_RTMINEXPIRE = 6
327 IPCTL_RTMAXCACHE = 7
328 IPCTL_SOURCEROUTE = 8
329 IPCTL_DIRECTEDBROADCAST = 9
330 IPCTL_INTRQMAXLEN = 10
331 IPCTL_INTRQDROPS = 11
332 IPCTL_STATS = 12
333 IPCTL_ACCEPTSOURCEROUTE = 13
334 IPCTL_FASTFORWARDING = 14
335 IPCTL_KEEPFAITH = 15
336 IPCTL_GIF_TTL = 16
337 IPCTL_MAXID = 17
338 def in_nullhost(x): return ((x).s_addr == INADDR_ANY)
341 # Included from netinet6/in6.h
342 __KAME_VERSION = "20010528/FreeBSD"
343 IPV6PORT_RESERVED = 1024
344 IPV6PORT_ANONMIN = 49152
345 IPV6PORT_ANONMAX = 65535
346 IPV6PORT_RESERVEDMIN = 600
347 IPV6PORT_RESERVEDMAX = (IPV6PORT_RESERVED-1)
348 INET6_ADDRSTRLEN = 46
349 IPV6_ADDR_INT32_ONE = 1
350 IPV6_ADDR_INT32_TWO = 2
351 IPV6_ADDR_INT32_MNL = (-16711680)
352 IPV6_ADDR_INT32_MLL = (-16646144)
353 IPV6_ADDR_INT32_SMP = 0x0000ffff
354 IPV6_ADDR_INT16_ULL = 0xfe80
355 IPV6_ADDR_INT16_USL = 0xfec0
356 IPV6_ADDR_INT16_MLL = 0xff02
357 IPV6_ADDR_INT32_ONE = 0x01000000
358 IPV6_ADDR_INT32_TWO = 0x02000000
359 IPV6_ADDR_INT32_MNL = 0x000001ff
360 IPV6_ADDR_INT32_MLL = 0x000002ff
361 IPV6_ADDR_INT32_SMP = (-65536)
362 IPV6_ADDR_INT16_ULL = 0x80fe
363 IPV6_ADDR_INT16_USL = 0xc0fe
364 IPV6_ADDR_INT16_MLL = 0x02ff
365 def IN6_IS_ADDR_UNSPECIFIED(a): return \
367 def IN6_IS_ADDR_LOOPBACK(a): return \
369 def IN6_IS_ADDR_V4COMPAT(a): return \
371 def IN6_IS_ADDR_V4MAPPED(a): return \
373 IPV6_ADDR_SCOPE_NODELOCAL = 0x01
374 IPV6_ADDR_SCOPE_INTFACELOCAL = 0x01
375 IPV6_ADDR_SCOPE_LINKLOCAL = 0x02
376 IPV6_ADDR_SCOPE_SITELOCAL = 0x05
377 IPV6_ADDR_SCOPE_ORGLOCAL = 0x08
378 IPV6_ADDR_SCOPE_GLOBAL = 0x0e
379 __IPV6_ADDR_SCOPE_NODELOCAL = 0x01
380 __IPV6_ADDR_SCOPE_INTFACELOCAL = 0x01
381 __IPV6_ADDR_SCOPE_LINKLOCAL = 0x02
382 __IPV6_ADDR_SCOPE_SITELOCAL = 0x05
383 __IPV6_ADDR_SCOPE_ORGLOCAL = 0x08
384 __IPV6_ADDR_SCOPE_GLOBAL = 0x0e
385 def IN6_IS_ADDR_LINKLOCAL(a): return \
387 def IN6_IS_ADDR_SITELOCAL(a): return \
389 def IN6_IS_ADDR_MC_NODELOCAL(a): return \
391 def IN6_IS_ADDR_MC_INTFACELOCAL(a): return \
393 def IN6_IS_ADDR_MC_LINKLOCAL(a): return \
395 def IN6_IS_ADDR_MC_SITELOCAL(a): return \
397 def IN6_IS_ADDR_MC_ORGLOCAL(a): return \
399 def IN6_IS_ADDR_MC_GLOBAL(a): return \
401 def IN6_IS_ADDR_MC_NODELOCAL(a): return \
403 def IN6_IS_ADDR_MC_LINKLOCAL(a): return \
405 def IN6_IS_ADDR_MC_SITELOCAL(a): return \
407 def IN6_IS_ADDR_MC_ORGLOCAL(a): return \
409 def IN6_IS_ADDR_MC_GLOBAL(a): return \
411 def IN6_IS_SCOPE_LINKLOCAL(a): return \
413 def IFA6_IS_DEPRECATED(a): return \
415 def IFA6_IS_INVALID(a): return \
417 IPV6_OPTIONS = 1
418 IPV6_RECVOPTS = 5
419 IPV6_RECVRETOPTS = 6
420 IPV6_RECVDSTADDR = 7
421 IPV6_RETOPTS = 8
422 IPV6_SOCKOPT_RESERVED1 = 3
423 IPV6_UNICAST_HOPS = 4
424 IPV6_MULTICAST_IF = 9
425 IPV6_MULTICAST_HOPS = 10
426 IPV6_MULTICAST_LOOP = 11
427 IPV6_JOIN_GROUP = 12
428 IPV6_LEAVE_GROUP = 13
429 IPV6_PORTRANGE = 14
430 ICMP6_FILTER = 18
431 IPV6_2292PKTINFO = 19
432 IPV6_2292HOPLIMIT = 20
433 IPV6_2292NEXTHOP = 21
434 IPV6_2292HOPOPTS = 22
435 IPV6_2292DSTOPTS = 23
436 IPV6_2292RTHDR = 24
437 IPV6_2292PKTOPTIONS = 25
438 IPV6_CHECKSUM = 26
439 IPV6_V6ONLY = 27
440 IPV6_BINDV6ONLY = IPV6_V6ONLY
441 IPV6_IPSEC_POLICY = 28
442 IPV6_FAITH = 29
443 IPV6_FW_ADD = 30
444 IPV6_FW_DEL = 31
445 IPV6_FW_FLUSH = 32
446 IPV6_FW_ZERO = 33
447 IPV6_FW_GET = 34
448 IPV6_RTHDRDSTOPTS = 35
449 IPV6_RECVPKTINFO = 36
450 IPV6_RECVHOPLIMIT = 37
451 IPV6_RECVRTHDR = 38
452 IPV6_RECVHOPOPTS = 39
453 IPV6_RECVDSTOPTS = 40
454 IPV6_RECVRTHDRDSTOPTS = 41
455 IPV6_USE_MIN_MTU = 42
456 IPV6_RECVPATHMTU = 43
457 IPV6_PATHMTU = 44
458 IPV6_REACHCONF = 45
459 IPV6_PKTINFO = 46
460 IPV6_HOPLIMIT = 47
461 IPV6_NEXTHOP = 48
462 IPV6_HOPOPTS = 49
463 IPV6_DSTOPTS = 50
464 IPV6_RTHDR = 51
465 IPV6_PKTOPTIONS = 52
466 IPV6_RECVTCLASS = 57
467 IPV6_AUTOFLOWLABEL = 59
468 IPV6_TCLASS = 61
469 IPV6_DONTFRAG = 62
470 IPV6_PREFER_TEMPADDR = 63
471 IPV6_RTHDR_LOOSE = 0
472 IPV6_RTHDR_STRICT = 1
473 IPV6_RTHDR_TYPE_0 = 0
474 IPV6_DEFAULT_MULTICAST_HOPS = 1
475 IPV6_DEFAULT_MULTICAST_LOOP = 1
476 IPV6_PORTRANGE_DEFAULT = 0
477 IPV6_PORTRANGE_HIGH = 1
478 IPV6_PORTRANGE_LOW = 2
479 IPV6PROTO_MAXID = (IPPROTO_PIM + 1)
480 IPV6CTL_FORWARDING = 1
481 IPV6CTL_SENDREDIRECTS = 2
482 IPV6CTL_DEFHLIM = 3
483 IPV6CTL_DEFMTU = 4
484 IPV6CTL_FORWSRCRT = 5
485 IPV6CTL_STATS = 6
486 IPV6CTL_MRTSTATS = 7
487 IPV6CTL_MRTPROTO = 8
488 IPV6CTL_MAXFRAGPACKETS = 9
489 IPV6CTL_SOURCECHECK = 10
490 IPV6CTL_SOURCECHECK_LOGINT = 11
491 IPV6CTL_ACCEPT_RTADV = 12
492 IPV6CTL_KEEPFAITH = 13
493 IPV6CTL_LOG_INTERVAL = 14
494 IPV6CTL_HDRNESTLIMIT = 15
495 IPV6CTL_DAD_COUNT = 16
496 IPV6CTL_AUTO_FLOWLABEL = 17
497 IPV6CTL_DEFMCASTHLIM = 18
498 IPV6CTL_GIF_HLIM = 19
499 IPV6CTL_KAME_VERSION = 20
500 IPV6CTL_USE_DEPRECATED = 21
501 IPV6CTL_RR_PRUNE = 22
502 IPV6CTL_MAPPED_ADDR = 23
503 IPV6CTL_V6ONLY = 24
504 IPV6CTL_RTEXPIRE = 25
505 IPV6CTL_RTMINEXPIRE = 26
506 IPV6CTL_RTMAXCACHE = 27
507 IPV6CTL_USETEMPADDR = 32
508 IPV6CTL_TEMPPLTIME = 33
509 IPV6CTL_TEMPVLTIME = 34
510 IPV6CTL_AUTO_LINKLOCAL = 35
511 IPV6CTL_RIP6STATS = 36
512 IPV6CTL_PREFER_TEMPADDR = 37
513 IPV6CTL_ADDRCTLPOLICY = 38
514 IPV6CTL_MAXFRAGS = 41
515 IPV6CTL_MAXID = 42