Ruby  2.5.0dev(2017-10-22revision60238)
constdefs.h
Go to the documentation of this file.
1 /* autogenerated file */
2 #if !defined(SOCK_STREAM)
3 # if defined(HAVE_CONST_SOCK_STREAM)
4 # define SOCK_STREAM SOCK_STREAM
5 # endif
6 #endif
7 #if !defined(SOCK_DGRAM)
8 # if defined(HAVE_CONST_SOCK_DGRAM)
9 # define SOCK_DGRAM SOCK_DGRAM
10 # endif
11 #endif
12 #if !defined(SOCK_RAW)
13 # if defined(HAVE_CONST_SOCK_RAW)
14 # define SOCK_RAW SOCK_RAW
15 # endif
16 #endif
17 #if !defined(SOCK_RDM)
18 # if defined(HAVE_CONST_SOCK_RDM)
19 # define SOCK_RDM SOCK_RDM
20 # endif
21 #endif
22 #if !defined(SOCK_SEQPACKET)
23 # if defined(HAVE_CONST_SOCK_SEQPACKET)
24 # define SOCK_SEQPACKET SOCK_SEQPACKET
25 # endif
26 #endif
27 #if !defined(SOCK_PACKET)
28 # if defined(HAVE_CONST_SOCK_PACKET)
29 # define SOCK_PACKET SOCK_PACKET
30 # endif
31 #endif
32 #if !defined(AF_UNSPEC)
33 # if defined(HAVE_CONST_AF_UNSPEC)
34 # define AF_UNSPEC AF_UNSPEC
35 # endif
36 #endif
37 #if !defined(PF_UNSPEC)
38 # if defined(HAVE_CONST_PF_UNSPEC)
39 # define PF_UNSPEC PF_UNSPEC
40 # endif
41 #endif
42 #if !defined(AF_INET)
43 # if defined(HAVE_CONST_AF_INET)
44 # define AF_INET AF_INET
45 # endif
46 #endif
47 #if !defined(PF_INET)
48 # if defined(HAVE_CONST_PF_INET)
49 # define PF_INET PF_INET
50 # endif
51 #endif
52 #if !defined(AF_INET6)
53 # if defined(HAVE_CONST_AF_INET6)
54 # define AF_INET6 AF_INET6
55 # endif
56 #endif
57 #if !defined(PF_INET6)
58 # if defined(HAVE_CONST_PF_INET6)
59 # define PF_INET6 PF_INET6
60 # endif
61 #endif
62 #if !defined(AF_UNIX)
63 # if defined(HAVE_CONST_AF_UNIX)
64 # define AF_UNIX AF_UNIX
65 # endif
66 #endif
67 #if !defined(PF_UNIX)
68 # if defined(HAVE_CONST_PF_UNIX)
69 # define PF_UNIX PF_UNIX
70 # endif
71 #endif
72 #if !defined(AF_AX25)
73 # if defined(HAVE_CONST_AF_AX25)
74 # define AF_AX25 AF_AX25
75 # endif
76 #endif
77 #if !defined(PF_AX25)
78 # if defined(HAVE_CONST_PF_AX25)
79 # define PF_AX25 PF_AX25
80 # endif
81 #endif
82 #if !defined(AF_IPX)
83 # if defined(HAVE_CONST_AF_IPX)
84 # define AF_IPX AF_IPX
85 # endif
86 #endif
87 #if !defined(PF_IPX)
88 # if defined(HAVE_CONST_PF_IPX)
89 # define PF_IPX PF_IPX
90 # endif
91 #endif
92 #if !defined(AF_APPLETALK)
93 # if defined(HAVE_CONST_AF_APPLETALK)
94 # define AF_APPLETALK AF_APPLETALK
95 # endif
96 #endif
97 #if !defined(PF_APPLETALK)
98 # if defined(HAVE_CONST_PF_APPLETALK)
99 # define PF_APPLETALK PF_APPLETALK
100 # endif
101 #endif
102 #if !defined(AF_LOCAL)
103 # if defined(HAVE_CONST_AF_LOCAL)
104 # define AF_LOCAL AF_LOCAL
105 # endif
106 #endif
107 #if !defined(PF_LOCAL)
108 # if defined(HAVE_CONST_PF_LOCAL)
109 # define PF_LOCAL PF_LOCAL
110 # endif
111 #endif
112 #if !defined(AF_IMPLINK)
113 # if defined(HAVE_CONST_AF_IMPLINK)
114 # define AF_IMPLINK AF_IMPLINK
115 # endif
116 #endif
117 #if !defined(PF_IMPLINK)
118 # if defined(HAVE_CONST_PF_IMPLINK)
119 # define PF_IMPLINK PF_IMPLINK
120 # endif
121 #endif
122 #if !defined(AF_PUP)
123 # if defined(HAVE_CONST_AF_PUP)
124 # define AF_PUP AF_PUP
125 # endif
126 #endif
127 #if !defined(PF_PUP)
128 # if defined(HAVE_CONST_PF_PUP)
129 # define PF_PUP PF_PUP
130 # endif
131 #endif
132 #if !defined(AF_CHAOS)
133 # if defined(HAVE_CONST_AF_CHAOS)
134 # define AF_CHAOS AF_CHAOS
135 # endif
136 #endif
137 #if !defined(PF_CHAOS)
138 # if defined(HAVE_CONST_PF_CHAOS)
139 # define PF_CHAOS PF_CHAOS
140 # endif
141 #endif
142 #if !defined(AF_NS)
143 # if defined(HAVE_CONST_AF_NS)
144 # define AF_NS AF_NS
145 # endif
146 #endif
147 #if !defined(PF_NS)
148 # if defined(HAVE_CONST_PF_NS)
149 # define PF_NS PF_NS
150 # endif
151 #endif
152 #if !defined(AF_ISO)
153 # if defined(HAVE_CONST_AF_ISO)
154 # define AF_ISO AF_ISO
155 # endif
156 #endif
157 #if !defined(PF_ISO)
158 # if defined(HAVE_CONST_PF_ISO)
159 # define PF_ISO PF_ISO
160 # endif
161 #endif
162 #if !defined(AF_OSI)
163 # if defined(HAVE_CONST_AF_OSI)
164 # define AF_OSI AF_OSI
165 # endif
166 #endif
167 #if !defined(PF_OSI)
168 # if defined(HAVE_CONST_PF_OSI)
169 # define PF_OSI PF_OSI
170 # endif
171 #endif
172 #if !defined(AF_ECMA)
173 # if defined(HAVE_CONST_AF_ECMA)
174 # define AF_ECMA AF_ECMA
175 # endif
176 #endif
177 #if !defined(PF_ECMA)
178 # if defined(HAVE_CONST_PF_ECMA)
179 # define PF_ECMA PF_ECMA
180 # endif
181 #endif
182 #if !defined(AF_DATAKIT)
183 # if defined(HAVE_CONST_AF_DATAKIT)
184 # define AF_DATAKIT AF_DATAKIT
185 # endif
186 #endif
187 #if !defined(PF_DATAKIT)
188 # if defined(HAVE_CONST_PF_DATAKIT)
189 # define PF_DATAKIT PF_DATAKIT
190 # endif
191 #endif
192 #if !defined(AF_CCITT)
193 # if defined(HAVE_CONST_AF_CCITT)
194 # define AF_CCITT AF_CCITT
195 # endif
196 #endif
197 #if !defined(PF_CCITT)
198 # if defined(HAVE_CONST_PF_CCITT)
199 # define PF_CCITT PF_CCITT
200 # endif
201 #endif
202 #if !defined(AF_SNA)
203 # if defined(HAVE_CONST_AF_SNA)
204 # define AF_SNA AF_SNA
205 # endif
206 #endif
207 #if !defined(PF_SNA)
208 # if defined(HAVE_CONST_PF_SNA)
209 # define PF_SNA PF_SNA
210 # endif
211 #endif
212 #if !defined(AF_DEC)
213 # if defined(HAVE_CONST_AF_DEC)
214 # define AF_DEC AF_DEC
215 # endif
216 #endif
217 #if !defined(PF_DEC)
218 # if defined(HAVE_CONST_PF_DEC)
219 # define PF_DEC PF_DEC
220 # endif
221 #endif
222 #if !defined(AF_DLI)
223 # if defined(HAVE_CONST_AF_DLI)
224 # define AF_DLI AF_DLI
225 # endif
226 #endif
227 #if !defined(PF_DLI)
228 # if defined(HAVE_CONST_PF_DLI)
229 # define PF_DLI PF_DLI
230 # endif
231 #endif
232 #if !defined(AF_LAT)
233 # if defined(HAVE_CONST_AF_LAT)
234 # define AF_LAT AF_LAT
235 # endif
236 #endif
237 #if !defined(PF_LAT)
238 # if defined(HAVE_CONST_PF_LAT)
239 # define PF_LAT PF_LAT
240 # endif
241 #endif
242 #if !defined(AF_HYLINK)
243 # if defined(HAVE_CONST_AF_HYLINK)
244 # define AF_HYLINK AF_HYLINK
245 # endif
246 #endif
247 #if !defined(PF_HYLINK)
248 # if defined(HAVE_CONST_PF_HYLINK)
249 # define PF_HYLINK PF_HYLINK
250 # endif
251 #endif
252 #if !defined(AF_ROUTE)
253 # if defined(HAVE_CONST_AF_ROUTE)
254 # define AF_ROUTE AF_ROUTE
255 # endif
256 #endif
257 #if !defined(PF_ROUTE)
258 # if defined(HAVE_CONST_PF_ROUTE)
259 # define PF_ROUTE PF_ROUTE
260 # endif
261 #endif
262 #if !defined(AF_LINK)
263 # if defined(HAVE_CONST_AF_LINK)
264 # define AF_LINK AF_LINK
265 # endif
266 #endif
267 #if !defined(PF_LINK)
268 # if defined(HAVE_CONST_PF_LINK)
269 # define PF_LINK PF_LINK
270 # endif
271 #endif
272 #if !defined(AF_COIP)
273 # if defined(HAVE_CONST_AF_COIP)
274 # define AF_COIP AF_COIP
275 # endif
276 #endif
277 #if !defined(PF_COIP)
278 # if defined(HAVE_CONST_PF_COIP)
279 # define PF_COIP PF_COIP
280 # endif
281 #endif
282 #if !defined(AF_CNT)
283 # if defined(HAVE_CONST_AF_CNT)
284 # define AF_CNT AF_CNT
285 # endif
286 #endif
287 #if !defined(PF_CNT)
288 # if defined(HAVE_CONST_PF_CNT)
289 # define PF_CNT PF_CNT
290 # endif
291 #endif
292 #if !defined(AF_SIP)
293 # if defined(HAVE_CONST_AF_SIP)
294 # define AF_SIP AF_SIP
295 # endif
296 #endif
297 #if !defined(PF_SIP)
298 # if defined(HAVE_CONST_PF_SIP)
299 # define PF_SIP PF_SIP
300 # endif
301 #endif
302 #if !defined(AF_NDRV)
303 # if defined(HAVE_CONST_AF_NDRV)
304 # define AF_NDRV AF_NDRV
305 # endif
306 #endif
307 #if !defined(PF_NDRV)
308 # if defined(HAVE_CONST_PF_NDRV)
309 # define PF_NDRV PF_NDRV
310 # endif
311 #endif
312 #if !defined(AF_ISDN)
313 # if defined(HAVE_CONST_AF_ISDN)
314 # define AF_ISDN AF_ISDN
315 # endif
316 #endif
317 #if !defined(PF_ISDN)
318 # if defined(HAVE_CONST_PF_ISDN)
319 # define PF_ISDN PF_ISDN
320 # endif
321 #endif
322 #if !defined(AF_NATM)
323 # if defined(HAVE_CONST_AF_NATM)
324 # define AF_NATM AF_NATM
325 # endif
326 #endif
327 #if !defined(PF_NATM)
328 # if defined(HAVE_CONST_PF_NATM)
329 # define PF_NATM PF_NATM
330 # endif
331 #endif
332 #if !defined(AF_SYSTEM)
333 # if defined(HAVE_CONST_AF_SYSTEM)
334 # define AF_SYSTEM AF_SYSTEM
335 # endif
336 #endif
337 #if !defined(PF_SYSTEM)
338 # if defined(HAVE_CONST_PF_SYSTEM)
339 # define PF_SYSTEM PF_SYSTEM
340 # endif
341 #endif
342 #if !defined(AF_NETBIOS)
343 # if defined(HAVE_CONST_AF_NETBIOS)
344 # define AF_NETBIOS AF_NETBIOS
345 # endif
346 #endif
347 #if !defined(PF_NETBIOS)
348 # if defined(HAVE_CONST_PF_NETBIOS)
349 # define PF_NETBIOS PF_NETBIOS
350 # endif
351 #endif
352 #if !defined(AF_PPP)
353 # if defined(HAVE_CONST_AF_PPP)
354 # define AF_PPP AF_PPP
355 # endif
356 #endif
357 #if !defined(PF_PPP)
358 # if defined(HAVE_CONST_PF_PPP)
359 # define PF_PPP PF_PPP
360 # endif
361 #endif
362 #if !defined(AF_ATM)
363 # if defined(HAVE_CONST_AF_ATM)
364 # define AF_ATM AF_ATM
365 # endif
366 #endif
367 #if !defined(PF_ATM)
368 # if defined(HAVE_CONST_PF_ATM)
369 # define PF_ATM PF_ATM
370 # endif
371 #endif
372 #if !defined(AF_NETGRAPH)
373 # if defined(HAVE_CONST_AF_NETGRAPH)
374 # define AF_NETGRAPH AF_NETGRAPH
375 # endif
376 #endif
377 #if !defined(PF_NETGRAPH)
378 # if defined(HAVE_CONST_PF_NETGRAPH)
379 # define PF_NETGRAPH PF_NETGRAPH
380 # endif
381 #endif
382 #if !defined(AF_MAX)
383 # if defined(HAVE_CONST_AF_MAX)
384 # define AF_MAX AF_MAX
385 # endif
386 #endif
387 #if !defined(PF_MAX)
388 # if defined(HAVE_CONST_PF_MAX)
389 # define PF_MAX PF_MAX
390 # endif
391 #endif
392 #if !defined(AF_PACKET)
393 # if defined(HAVE_CONST_AF_PACKET)
394 # define AF_PACKET AF_PACKET
395 # endif
396 #endif
397 #if !defined(PF_PACKET)
398 # if defined(HAVE_CONST_PF_PACKET)
399 # define PF_PACKET PF_PACKET
400 # endif
401 #endif
402 #if !defined(AF_E164)
403 # if defined(HAVE_CONST_AF_E164)
404 # define AF_E164 AF_E164
405 # endif
406 #endif
407 #if !defined(PF_XTP)
408 # if defined(HAVE_CONST_PF_XTP)
409 # define PF_XTP PF_XTP
410 # endif
411 #endif
412 #if !defined(PF_RTIP)
413 # if defined(HAVE_CONST_PF_RTIP)
414 # define PF_RTIP PF_RTIP
415 # endif
416 #endif
417 #if !defined(PF_PIP)
418 # if defined(HAVE_CONST_PF_PIP)
419 # define PF_PIP PF_PIP
420 # endif
421 #endif
422 #if !defined(PF_KEY)
423 # if defined(HAVE_CONST_PF_KEY)
424 # define PF_KEY PF_KEY
425 # endif
426 #endif
427 #if !defined(MSG_OOB)
428 # if defined(HAVE_CONST_MSG_OOB)
429 # define MSG_OOB MSG_OOB
430 # endif
431 #endif
432 #if !defined(MSG_PEEK)
433 # if defined(HAVE_CONST_MSG_PEEK)
434 # define MSG_PEEK MSG_PEEK
435 # endif
436 #endif
437 #if !defined(MSG_DONTROUTE)
438 # if defined(HAVE_CONST_MSG_DONTROUTE)
439 # define MSG_DONTROUTE MSG_DONTROUTE
440 # endif
441 #endif
442 #if !defined(MSG_EOR)
443 # if defined(HAVE_CONST_MSG_EOR)
444 # define MSG_EOR MSG_EOR
445 # endif
446 #endif
447 #if !defined(MSG_TRUNC)
448 # if defined(HAVE_CONST_MSG_TRUNC)
449 # define MSG_TRUNC MSG_TRUNC
450 # endif
451 #endif
452 #if !defined(MSG_CTRUNC)
453 # if defined(HAVE_CONST_MSG_CTRUNC)
454 # define MSG_CTRUNC MSG_CTRUNC
455 # endif
456 #endif
457 #if !defined(MSG_WAITALL)
458 # if defined(HAVE_CONST_MSG_WAITALL)
459 # define MSG_WAITALL MSG_WAITALL
460 # endif
461 #endif
462 #if !defined(MSG_DONTWAIT)
463 # if defined(HAVE_CONST_MSG_DONTWAIT)
464 # define MSG_DONTWAIT MSG_DONTWAIT
465 # endif
466 #endif
467 #if !defined(MSG_EOF)
468 # if defined(HAVE_CONST_MSG_EOF)
469 # define MSG_EOF MSG_EOF
470 # endif
471 #endif
472 #if !defined(MSG_FLUSH)
473 # if defined(HAVE_CONST_MSG_FLUSH)
474 # define MSG_FLUSH MSG_FLUSH
475 # endif
476 #endif
477 #if !defined(MSG_HOLD)
478 # if defined(HAVE_CONST_MSG_HOLD)
479 # define MSG_HOLD MSG_HOLD
480 # endif
481 #endif
482 #if !defined(MSG_SEND)
483 # if defined(HAVE_CONST_MSG_SEND)
484 # define MSG_SEND MSG_SEND
485 # endif
486 #endif
487 #if !defined(MSG_HAVEMORE)
488 # if defined(HAVE_CONST_MSG_HAVEMORE)
489 # define MSG_HAVEMORE MSG_HAVEMORE
490 # endif
491 #endif
492 #if !defined(MSG_RCVMORE)
493 # if defined(HAVE_CONST_MSG_RCVMORE)
494 # define MSG_RCVMORE MSG_RCVMORE
495 # endif
496 #endif
497 #if !defined(MSG_COMPAT)
498 # if defined(HAVE_CONST_MSG_COMPAT)
499 # define MSG_COMPAT MSG_COMPAT
500 # endif
501 #endif
502 #if !defined(MSG_PROXY)
503 # if defined(HAVE_CONST_MSG_PROXY)
504 # define MSG_PROXY MSG_PROXY
505 # endif
506 #endif
507 #if !defined(MSG_FIN)
508 # if defined(HAVE_CONST_MSG_FIN)
509 # define MSG_FIN MSG_FIN
510 # endif
511 #endif
512 #if !defined(MSG_SYN)
513 # if defined(HAVE_CONST_MSG_SYN)
514 # define MSG_SYN MSG_SYN
515 # endif
516 #endif
517 #if !defined(MSG_CONFIRM)
518 # if defined(HAVE_CONST_MSG_CONFIRM)
519 # define MSG_CONFIRM MSG_CONFIRM
520 # endif
521 #endif
522 #if !defined(MSG_RST)
523 # if defined(HAVE_CONST_MSG_RST)
524 # define MSG_RST MSG_RST
525 # endif
526 #endif
527 #if !defined(MSG_ERRQUEUE)
528 # if defined(HAVE_CONST_MSG_ERRQUEUE)
529 # define MSG_ERRQUEUE MSG_ERRQUEUE
530 # endif
531 #endif
532 #if !defined(MSG_NOSIGNAL)
533 # if defined(HAVE_CONST_MSG_NOSIGNAL)
534 # define MSG_NOSIGNAL MSG_NOSIGNAL
535 # endif
536 #endif
537 #if !defined(MSG_MORE)
538 # if defined(HAVE_CONST_MSG_MORE)
539 # define MSG_MORE MSG_MORE
540 # endif
541 #endif
542 #if !defined(MSG_FASTOPEN)
543 # if defined(HAVE_CONST_MSG_FASTOPEN)
544 # define MSG_FASTOPEN MSG_FASTOPEN
545 # endif
546 #endif
547 #if !defined(SOL_SOCKET)
548 # if defined(HAVE_CONST_SOL_SOCKET)
549 # define SOL_SOCKET SOL_SOCKET
550 # endif
551 #endif
552 #if !defined(SOL_IP)
553 # if defined(HAVE_CONST_SOL_IP)
554 # define SOL_IP SOL_IP
555 # endif
556 #endif
557 #if !defined(SOL_IPX)
558 # if defined(HAVE_CONST_SOL_IPX)
559 # define SOL_IPX SOL_IPX
560 # endif
561 #endif
562 #if !defined(SOL_AX25)
563 # if defined(HAVE_CONST_SOL_AX25)
564 # define SOL_AX25 SOL_AX25
565 # endif
566 #endif
567 #if !defined(SOL_ATALK)
568 # if defined(HAVE_CONST_SOL_ATALK)
569 # define SOL_ATALK SOL_ATALK
570 # endif
571 #endif
572 #if !defined(SOL_TCP)
573 # if defined(HAVE_CONST_SOL_TCP)
574 # define SOL_TCP SOL_TCP
575 # endif
576 #endif
577 #if !defined(SOL_UDP)
578 # if defined(HAVE_CONST_SOL_UDP)
579 # define SOL_UDP SOL_UDP
580 # endif
581 #endif
582 #if !defined(IPPROTO_IP)
583 # if defined(HAVE_CONST_IPPROTO_IP)
584 # define IPPROTO_IP IPPROTO_IP
585 # else
586 # define IPPROTO_IP 0
587 # endif
588 #endif
589 #if !defined(IPPROTO_ICMP)
590 # if defined(HAVE_CONST_IPPROTO_ICMP)
591 # define IPPROTO_ICMP IPPROTO_ICMP
592 # else
593 # define IPPROTO_ICMP 1
594 # endif
595 #endif
596 #if !defined(IPPROTO_IGMP)
597 # if defined(HAVE_CONST_IPPROTO_IGMP)
598 # define IPPROTO_IGMP IPPROTO_IGMP
599 # endif
600 #endif
601 #if !defined(IPPROTO_GGP)
602 # if defined(HAVE_CONST_IPPROTO_GGP)
603 # define IPPROTO_GGP IPPROTO_GGP
604 # endif
605 #endif
606 #if !defined(IPPROTO_TCP)
607 # if defined(HAVE_CONST_IPPROTO_TCP)
608 # define IPPROTO_TCP IPPROTO_TCP
609 # else
610 # define IPPROTO_TCP 6
611 # endif
612 #endif
613 #if !defined(IPPROTO_EGP)
614 # if defined(HAVE_CONST_IPPROTO_EGP)
615 # define IPPROTO_EGP IPPROTO_EGP
616 # endif
617 #endif
618 #if !defined(IPPROTO_PUP)
619 # if defined(HAVE_CONST_IPPROTO_PUP)
620 # define IPPROTO_PUP IPPROTO_PUP
621 # endif
622 #endif
623 #if !defined(IPPROTO_UDP)
624 # if defined(HAVE_CONST_IPPROTO_UDP)
625 # define IPPROTO_UDP IPPROTO_UDP
626 # else
627 # define IPPROTO_UDP 17
628 # endif
629 #endif
630 #if !defined(IPPROTO_IDP)
631 # if defined(HAVE_CONST_IPPROTO_IDP)
632 # define IPPROTO_IDP IPPROTO_IDP
633 # endif
634 #endif
635 #if !defined(IPPROTO_HELLO)
636 # if defined(HAVE_CONST_IPPROTO_HELLO)
637 # define IPPROTO_HELLO IPPROTO_HELLO
638 # endif
639 #endif
640 #if !defined(IPPROTO_ND)
641 # if defined(HAVE_CONST_IPPROTO_ND)
642 # define IPPROTO_ND IPPROTO_ND
643 # endif
644 #endif
645 #if !defined(IPPROTO_TP)
646 # if defined(HAVE_CONST_IPPROTO_TP)
647 # define IPPROTO_TP IPPROTO_TP
648 # endif
649 #endif
650 #if !defined(IPPROTO_XTP)
651 # if defined(HAVE_CONST_IPPROTO_XTP)
652 # define IPPROTO_XTP IPPROTO_XTP
653 # endif
654 #endif
655 #if !defined(IPPROTO_EON)
656 # if defined(HAVE_CONST_IPPROTO_EON)
657 # define IPPROTO_EON IPPROTO_EON
658 # endif
659 #endif
660 #if !defined(IPPROTO_BIP)
661 # if defined(HAVE_CONST_IPPROTO_BIP)
662 # define IPPROTO_BIP IPPROTO_BIP
663 # endif
664 #endif
665 #if !defined(IPPROTO_AH)
666 # if defined(HAVE_CONST_IPPROTO_AH)
667 # define IPPROTO_AH IPPROTO_AH
668 # endif
669 #endif
670 #if !defined(IPPROTO_DSTOPTS)
671 # if defined(HAVE_CONST_IPPROTO_DSTOPTS)
672 # define IPPROTO_DSTOPTS IPPROTO_DSTOPTS
673 # endif
674 #endif
675 #if !defined(IPPROTO_ESP)
676 # if defined(HAVE_CONST_IPPROTO_ESP)
677 # define IPPROTO_ESP IPPROTO_ESP
678 # endif
679 #endif
680 #if !defined(IPPROTO_FRAGMENT)
681 # if defined(HAVE_CONST_IPPROTO_FRAGMENT)
682 # define IPPROTO_FRAGMENT IPPROTO_FRAGMENT
683 # endif
684 #endif
685 #if !defined(IPPROTO_HOPOPTS)
686 # if defined(HAVE_CONST_IPPROTO_HOPOPTS)
687 # define IPPROTO_HOPOPTS IPPROTO_HOPOPTS
688 # endif
689 #endif
690 #if !defined(IPPROTO_ICMPV6)
691 # if defined(HAVE_CONST_IPPROTO_ICMPV6)
692 # define IPPROTO_ICMPV6 IPPROTO_ICMPV6
693 # endif
694 #endif
695 #if !defined(IPPROTO_IPV6)
696 # if defined(HAVE_CONST_IPPROTO_IPV6)
697 # define IPPROTO_IPV6 IPPROTO_IPV6
698 # endif
699 #endif
700 #if !defined(IPPROTO_NONE)
701 # if defined(HAVE_CONST_IPPROTO_NONE)
702 # define IPPROTO_NONE IPPROTO_NONE
703 # endif
704 #endif
705 #if !defined(IPPROTO_ROUTING)
706 # if defined(HAVE_CONST_IPPROTO_ROUTING)
707 # define IPPROTO_ROUTING IPPROTO_ROUTING
708 # endif
709 #endif
710 #if !defined(IPPROTO_RAW)
711 # if defined(HAVE_CONST_IPPROTO_RAW)
712 # define IPPROTO_RAW IPPROTO_RAW
713 # else
714 # define IPPROTO_RAW 255
715 # endif
716 #endif
717 #if !defined(IPPROTO_MAX)
718 # if defined(HAVE_CONST_IPPROTO_MAX)
719 # define IPPROTO_MAX IPPROTO_MAX
720 # endif
721 #endif
722 #if !defined(IPPORT_RESERVED)
723 # if defined(HAVE_CONST_IPPORT_RESERVED)
724 # define IPPORT_RESERVED IPPORT_RESERVED
725 # else
726 # define IPPORT_RESERVED 1024
727 # endif
728 #endif
729 #if !defined(IPPORT_USERRESERVED)
730 # if defined(HAVE_CONST_IPPORT_USERRESERVED)
731 # define IPPORT_USERRESERVED IPPORT_USERRESERVED
732 # else
733 # define IPPORT_USERRESERVED 5000
734 # endif
735 #endif
736 #if !defined(INADDR_ANY)
737 # if defined(HAVE_CONST_INADDR_ANY)
738 # define INADDR_ANY INADDR_ANY
739 # else
740 # define INADDR_ANY 0x00000000
741 # endif
742 #endif
743 #if !defined(INADDR_BROADCAST)
744 # if defined(HAVE_CONST_INADDR_BROADCAST)
745 # define INADDR_BROADCAST INADDR_BROADCAST
746 # else
747 # define INADDR_BROADCAST 0xffffffff
748 # endif
749 #endif
750 #if !defined(INADDR_LOOPBACK)
751 # if defined(HAVE_CONST_INADDR_LOOPBACK)
752 # define INADDR_LOOPBACK INADDR_LOOPBACK
753 # else
754 # define INADDR_LOOPBACK 0x7F000001
755 # endif
756 #endif
757 #if !defined(INADDR_UNSPEC_GROUP)
758 # if defined(HAVE_CONST_INADDR_UNSPEC_GROUP)
759 # define INADDR_UNSPEC_GROUP INADDR_UNSPEC_GROUP
760 # else
761 # define INADDR_UNSPEC_GROUP 0xe0000000
762 # endif
763 #endif
764 #if !defined(INADDR_ALLHOSTS_GROUP)
765 # if defined(HAVE_CONST_INADDR_ALLHOSTS_GROUP)
766 # define INADDR_ALLHOSTS_GROUP INADDR_ALLHOSTS_GROUP
767 # else
768 # define INADDR_ALLHOSTS_GROUP 0xe0000001
769 # endif
770 #endif
771 #if !defined(INADDR_MAX_LOCAL_GROUP)
772 # if defined(HAVE_CONST_INADDR_MAX_LOCAL_GROUP)
773 # define INADDR_MAX_LOCAL_GROUP INADDR_MAX_LOCAL_GROUP
774 # else
775 # define INADDR_MAX_LOCAL_GROUP 0xe00000ff
776 # endif
777 #endif
778 #if !defined(INADDR_NONE)
779 # if defined(HAVE_CONST_INADDR_NONE)
780 # define INADDR_NONE INADDR_NONE
781 # else
782 # define INADDR_NONE 0xffffffff
783 # endif
784 #endif
785 #if !defined(IP_OPTIONS)
786 # if defined(HAVE_CONST_IP_OPTIONS)
787 # define IP_OPTIONS IP_OPTIONS
788 # endif
789 #endif
790 #if !defined(IP_HDRINCL)
791 # if defined(HAVE_CONST_IP_HDRINCL)
792 # define IP_HDRINCL IP_HDRINCL
793 # endif
794 #endif
795 #if !defined(IP_TOS)
796 # if defined(HAVE_CONST_IP_TOS)
797 # define IP_TOS IP_TOS
798 # endif
799 #endif
800 #if !defined(IP_TTL)
801 # if defined(HAVE_CONST_IP_TTL)
802 # define IP_TTL IP_TTL
803 # endif
804 #endif
805 #if !defined(IP_RECVOPTS)
806 # if defined(HAVE_CONST_IP_RECVOPTS)
807 # define IP_RECVOPTS IP_RECVOPTS
808 # endif
809 #endif
810 #if !defined(IP_RECVRETOPTS)
811 # if defined(HAVE_CONST_IP_RECVRETOPTS)
812 # define IP_RECVRETOPTS IP_RECVRETOPTS
813 # endif
814 #endif
815 #if !defined(IP_RECVDSTADDR)
816 # if defined(HAVE_CONST_IP_RECVDSTADDR)
817 # define IP_RECVDSTADDR IP_RECVDSTADDR
818 # endif
819 #endif
820 #if !defined(IP_RETOPTS)
821 # if defined(HAVE_CONST_IP_RETOPTS)
822 # define IP_RETOPTS IP_RETOPTS
823 # endif
824 #endif
825 #if !defined(IP_MINTTL)
826 # if defined(HAVE_CONST_IP_MINTTL)
827 # define IP_MINTTL IP_MINTTL
828 # endif
829 #endif
830 #if !defined(IP_DONTFRAG)
831 # if defined(HAVE_CONST_IP_DONTFRAG)
832 # define IP_DONTFRAG IP_DONTFRAG
833 # endif
834 #endif
835 #if !defined(IP_SENDSRCADDR)
836 # if defined(HAVE_CONST_IP_SENDSRCADDR)
837 # define IP_SENDSRCADDR IP_SENDSRCADDR
838 # endif
839 #endif
840 #if !defined(IP_ONESBCAST)
841 # if defined(HAVE_CONST_IP_ONESBCAST)
842 # define IP_ONESBCAST IP_ONESBCAST
843 # endif
844 #endif
845 #if !defined(IP_RECVTTL)
846 # if defined(HAVE_CONST_IP_RECVTTL)
847 # define IP_RECVTTL IP_RECVTTL
848 # endif
849 #endif
850 #if !defined(IP_RECVIF)
851 # if defined(HAVE_CONST_IP_RECVIF)
852 # define IP_RECVIF IP_RECVIF
853 # endif
854 #endif
855 #if !defined(IP_RECVSLLA)
856 # if defined(HAVE_CONST_IP_RECVSLLA)
857 # define IP_RECVSLLA IP_RECVSLLA
858 # endif
859 #endif
860 #if !defined(IP_PORTRANGE)
861 # if defined(HAVE_CONST_IP_PORTRANGE)
862 # define IP_PORTRANGE IP_PORTRANGE
863 # endif
864 #endif
865 #if !defined(IP_MULTICAST_IF)
866 # if defined(HAVE_CONST_IP_MULTICAST_IF)
867 # define IP_MULTICAST_IF IP_MULTICAST_IF
868 # endif
869 #endif
870 #if !defined(IP_MULTICAST_TTL)
871 # if defined(HAVE_CONST_IP_MULTICAST_TTL)
872 # define IP_MULTICAST_TTL IP_MULTICAST_TTL
873 # endif
874 #endif
875 #if !defined(IP_MULTICAST_LOOP)
876 # if defined(HAVE_CONST_IP_MULTICAST_LOOP)
877 # define IP_MULTICAST_LOOP IP_MULTICAST_LOOP
878 # endif
879 #endif
880 #if !defined(IP_ADD_MEMBERSHIP)
881 # if defined(HAVE_CONST_IP_ADD_MEMBERSHIP)
882 # define IP_ADD_MEMBERSHIP IP_ADD_MEMBERSHIP
883 # endif
884 #endif
885 #if !defined(IP_DROP_MEMBERSHIP)
886 # if defined(HAVE_CONST_IP_DROP_MEMBERSHIP)
887 # define IP_DROP_MEMBERSHIP IP_DROP_MEMBERSHIP
888 # endif
889 #endif
890 #if !defined(IP_DEFAULT_MULTICAST_TTL)
891 # if defined(HAVE_CONST_IP_DEFAULT_MULTICAST_TTL)
892 # define IP_DEFAULT_MULTICAST_TTL IP_DEFAULT_MULTICAST_TTL
893 # endif
894 #endif
895 #if !defined(IP_DEFAULT_MULTICAST_LOOP)
896 # if defined(HAVE_CONST_IP_DEFAULT_MULTICAST_LOOP)
897 # define IP_DEFAULT_MULTICAST_LOOP IP_DEFAULT_MULTICAST_LOOP
898 # endif
899 #endif
900 #if !defined(IP_MAX_MEMBERSHIPS)
901 # if defined(HAVE_CONST_IP_MAX_MEMBERSHIPS)
902 # define IP_MAX_MEMBERSHIPS IP_MAX_MEMBERSHIPS
903 # endif
904 #endif
905 #if !defined(IP_ROUTER_ALERT)
906 # if defined(HAVE_CONST_IP_ROUTER_ALERT)
907 # define IP_ROUTER_ALERT IP_ROUTER_ALERT
908 # endif
909 #endif
910 #if !defined(IP_PKTINFO)
911 # if defined(HAVE_CONST_IP_PKTINFO)
912 # define IP_PKTINFO IP_PKTINFO
913 # endif
914 #endif
915 #if !defined(IP_PKTOPTIONS)
916 # if defined(HAVE_CONST_IP_PKTOPTIONS)
917 # define IP_PKTOPTIONS IP_PKTOPTIONS
918 # endif
919 #endif
920 #if !defined(IP_MTU_DISCOVER)
921 # if defined(HAVE_CONST_IP_MTU_DISCOVER)
922 # define IP_MTU_DISCOVER IP_MTU_DISCOVER
923 # endif
924 #endif
925 #if !defined(IP_RECVERR)
926 # if defined(HAVE_CONST_IP_RECVERR)
927 # define IP_RECVERR IP_RECVERR
928 # endif
929 #endif
930 #if !defined(IP_RECVTOS)
931 # if defined(HAVE_CONST_IP_RECVTOS)
932 # define IP_RECVTOS IP_RECVTOS
933 # endif
934 #endif
935 #if !defined(IP_MTU)
936 # if defined(HAVE_CONST_IP_MTU)
937 # define IP_MTU IP_MTU
938 # endif
939 #endif
940 #if !defined(IP_FREEBIND)
941 # if defined(HAVE_CONST_IP_FREEBIND)
942 # define IP_FREEBIND IP_FREEBIND
943 # endif
944 #endif
945 #if !defined(IP_IPSEC_POLICY)
946 # if defined(HAVE_CONST_IP_IPSEC_POLICY)
947 # define IP_IPSEC_POLICY IP_IPSEC_POLICY
948 # endif
949 #endif
950 #if !defined(IP_XFRM_POLICY)
951 # if defined(HAVE_CONST_IP_XFRM_POLICY)
952 # define IP_XFRM_POLICY IP_XFRM_POLICY
953 # endif
954 #endif
955 #if !defined(IP_PASSSEC)
956 # if defined(HAVE_CONST_IP_PASSSEC)
957 # define IP_PASSSEC IP_PASSSEC
958 # endif
959 #endif
960 #if !defined(IP_TRANSPARENT)
961 # if defined(HAVE_CONST_IP_TRANSPARENT)
962 # define IP_TRANSPARENT IP_TRANSPARENT
963 # endif
964 #endif
965 #if !defined(IP_PMTUDISC_DONT)
966 # if defined(HAVE_CONST_IP_PMTUDISC_DONT)
967 # define IP_PMTUDISC_DONT IP_PMTUDISC_DONT
968 # endif
969 #endif
970 #if !defined(IP_PMTUDISC_WANT)
971 # if defined(HAVE_CONST_IP_PMTUDISC_WANT)
972 # define IP_PMTUDISC_WANT IP_PMTUDISC_WANT
973 # endif
974 #endif
975 #if !defined(IP_PMTUDISC_DO)
976 # if defined(HAVE_CONST_IP_PMTUDISC_DO)
977 # define IP_PMTUDISC_DO IP_PMTUDISC_DO
978 # endif
979 #endif
980 #if !defined(IP_UNBLOCK_SOURCE)
981 # if defined(HAVE_CONST_IP_UNBLOCK_SOURCE)
982 # define IP_UNBLOCK_SOURCE IP_UNBLOCK_SOURCE
983 # endif
984 #endif
985 #if !defined(IP_BLOCK_SOURCE)
986 # if defined(HAVE_CONST_IP_BLOCK_SOURCE)
987 # define IP_BLOCK_SOURCE IP_BLOCK_SOURCE
988 # endif
989 #endif
990 #if !defined(IP_ADD_SOURCE_MEMBERSHIP)
991 # if defined(HAVE_CONST_IP_ADD_SOURCE_MEMBERSHIP)
992 # define IP_ADD_SOURCE_MEMBERSHIP IP_ADD_SOURCE_MEMBERSHIP
993 # endif
994 #endif
995 #if !defined(IP_DROP_SOURCE_MEMBERSHIP)
996 # if defined(HAVE_CONST_IP_DROP_SOURCE_MEMBERSHIP)
997 # define IP_DROP_SOURCE_MEMBERSHIP IP_DROP_SOURCE_MEMBERSHIP
998 # endif
999 #endif
1000 #if !defined(IP_MSFILTER)
1001 # if defined(HAVE_CONST_IP_MSFILTER)
1002 # define IP_MSFILTER IP_MSFILTER
1003 # endif
1004 #endif
1005 #if !defined(MCAST_JOIN_GROUP)
1006 # if defined(HAVE_CONST_MCAST_JOIN_GROUP)
1007 # define MCAST_JOIN_GROUP MCAST_JOIN_GROUP
1008 # endif
1009 #endif
1010 #if !defined(MCAST_BLOCK_SOURCE)
1011 # if defined(HAVE_CONST_MCAST_BLOCK_SOURCE)
1012 # define MCAST_BLOCK_SOURCE MCAST_BLOCK_SOURCE
1013 # endif
1014 #endif
1015 #if !defined(MCAST_UNBLOCK_SOURCE)
1016 # if defined(HAVE_CONST_MCAST_UNBLOCK_SOURCE)
1017 # define MCAST_UNBLOCK_SOURCE MCAST_UNBLOCK_SOURCE
1018 # endif
1019 #endif
1020 #if !defined(MCAST_LEAVE_GROUP)
1021 # if defined(HAVE_CONST_MCAST_LEAVE_GROUP)
1022 # define MCAST_LEAVE_GROUP MCAST_LEAVE_GROUP
1023 # endif
1024 #endif
1025 #if !defined(MCAST_JOIN_SOURCE_GROUP)
1026 # if defined(HAVE_CONST_MCAST_JOIN_SOURCE_GROUP)
1027 # define MCAST_JOIN_SOURCE_GROUP MCAST_JOIN_SOURCE_GROUP
1028 # endif
1029 #endif
1030 #if !defined(MCAST_LEAVE_SOURCE_GROUP)
1031 # if defined(HAVE_CONST_MCAST_LEAVE_SOURCE_GROUP)
1032 # define MCAST_LEAVE_SOURCE_GROUP MCAST_LEAVE_SOURCE_GROUP
1033 # endif
1034 #endif
1035 #if !defined(MCAST_MSFILTER)
1036 # if defined(HAVE_CONST_MCAST_MSFILTER)
1037 # define MCAST_MSFILTER MCAST_MSFILTER
1038 # endif
1039 #endif
1040 #if !defined(MCAST_EXCLUDE)
1041 # if defined(HAVE_CONST_MCAST_EXCLUDE)
1042 # define MCAST_EXCLUDE MCAST_EXCLUDE
1043 # endif
1044 #endif
1045 #if !defined(MCAST_INCLUDE)
1046 # if defined(HAVE_CONST_MCAST_INCLUDE)
1047 # define MCAST_INCLUDE MCAST_INCLUDE
1048 # endif
1049 #endif
1050 #if !defined(SO_DEBUG)
1051 # if defined(HAVE_CONST_SO_DEBUG)
1052 # define SO_DEBUG SO_DEBUG
1053 # endif
1054 #endif
1055 #if !defined(SO_REUSEADDR)
1056 # if defined(HAVE_CONST_SO_REUSEADDR)
1057 # define SO_REUSEADDR SO_REUSEADDR
1058 # endif
1059 #endif
1060 #if !defined(SO_REUSEPORT)
1061 # if defined(HAVE_CONST_SO_REUSEPORT)
1062 # define SO_REUSEPORT SO_REUSEPORT
1063 # endif
1064 #endif
1065 #if !defined(SO_TYPE)
1066 # if defined(HAVE_CONST_SO_TYPE)
1067 # define SO_TYPE SO_TYPE
1068 # endif
1069 #endif
1070 #if !defined(SO_ERROR)
1071 # if defined(HAVE_CONST_SO_ERROR)
1072 # define SO_ERROR SO_ERROR
1073 # endif
1074 #endif
1075 #if !defined(SO_DONTROUTE)
1076 # if defined(HAVE_CONST_SO_DONTROUTE)
1077 # define SO_DONTROUTE SO_DONTROUTE
1078 # endif
1079 #endif
1080 #if !defined(SO_BROADCAST)
1081 # if defined(HAVE_CONST_SO_BROADCAST)
1082 # define SO_BROADCAST SO_BROADCAST
1083 # endif
1084 #endif
1085 #if !defined(SO_SNDBUF)
1086 # if defined(HAVE_CONST_SO_SNDBUF)
1087 # define SO_SNDBUF SO_SNDBUF
1088 # endif
1089 #endif
1090 #if !defined(SO_RCVBUF)
1091 # if defined(HAVE_CONST_SO_RCVBUF)
1092 # define SO_RCVBUF SO_RCVBUF
1093 # endif
1094 #endif
1095 #if !defined(SO_SNDBUFFORCE)
1096 # if defined(HAVE_CONST_SO_SNDBUFFORCE)
1097 # define SO_SNDBUFFORCE SO_SNDBUFFORCE
1098 # endif
1099 #endif
1100 #if !defined(SO_RCVBUFFORCE)
1101 # if defined(HAVE_CONST_SO_RCVBUFFORCE)
1102 # define SO_RCVBUFFORCE SO_RCVBUFFORCE
1103 # endif
1104 #endif
1105 #if !defined(SO_KEEPALIVE)
1106 # if defined(HAVE_CONST_SO_KEEPALIVE)
1107 # define SO_KEEPALIVE SO_KEEPALIVE
1108 # endif
1109 #endif
1110 #if !defined(SO_OOBINLINE)
1111 # if defined(HAVE_CONST_SO_OOBINLINE)
1112 # define SO_OOBINLINE SO_OOBINLINE
1113 # endif
1114 #endif
1115 #if !defined(SO_NO_CHECK)
1116 # if defined(HAVE_CONST_SO_NO_CHECK)
1117 # define SO_NO_CHECK SO_NO_CHECK
1118 # endif
1119 #endif
1120 #if !defined(SO_PRIORITY)
1121 # if defined(HAVE_CONST_SO_PRIORITY)
1122 # define SO_PRIORITY SO_PRIORITY
1123 # endif
1124 #endif
1125 #if !defined(SO_LINGER)
1126 # if defined(HAVE_CONST_SO_LINGER)
1127 # define SO_LINGER SO_LINGER
1128 # endif
1129 #endif
1130 #if !defined(SO_PASSCRED)
1131 # if defined(HAVE_CONST_SO_PASSCRED)
1132 # define SO_PASSCRED SO_PASSCRED
1133 # endif
1134 #endif
1135 #if !defined(SO_PEERCRED)
1136 # if defined(HAVE_CONST_SO_PEERCRED)
1137 # define SO_PEERCRED SO_PEERCRED
1138 # endif
1139 #endif
1140 #if !defined(SO_RCVLOWAT)
1141 # if defined(HAVE_CONST_SO_RCVLOWAT)
1142 # define SO_RCVLOWAT SO_RCVLOWAT
1143 # endif
1144 #endif
1145 #if !defined(SO_SNDLOWAT)
1146 # if defined(HAVE_CONST_SO_SNDLOWAT)
1147 # define SO_SNDLOWAT SO_SNDLOWAT
1148 # endif
1149 #endif
1150 #if !defined(SO_RCVTIMEO)
1151 # if defined(HAVE_CONST_SO_RCVTIMEO)
1152 # define SO_RCVTIMEO SO_RCVTIMEO
1153 # endif
1154 #endif
1155 #if !defined(SO_SNDTIMEO)
1156 # if defined(HAVE_CONST_SO_SNDTIMEO)
1157 # define SO_SNDTIMEO SO_SNDTIMEO
1158 # endif
1159 #endif
1160 #if !defined(SO_ACCEPTCONN)
1161 # if defined(HAVE_CONST_SO_ACCEPTCONN)
1162 # define SO_ACCEPTCONN SO_ACCEPTCONN
1163 # endif
1164 #endif
1165 #if !defined(SO_USELOOPBACK)
1166 # if defined(HAVE_CONST_SO_USELOOPBACK)
1167 # define SO_USELOOPBACK SO_USELOOPBACK
1168 # endif
1169 #endif
1170 #if !defined(SO_ACCEPTFILTER)
1171 # if defined(HAVE_CONST_SO_ACCEPTFILTER)
1172 # define SO_ACCEPTFILTER SO_ACCEPTFILTER
1173 # endif
1174 #endif
1175 #if !defined(SO_DONTTRUNC)
1176 # if defined(HAVE_CONST_SO_DONTTRUNC)
1177 # define SO_DONTTRUNC SO_DONTTRUNC
1178 # endif
1179 #endif
1180 #if !defined(SO_WANTMORE)
1181 # if defined(HAVE_CONST_SO_WANTMORE)
1182 # define SO_WANTMORE SO_WANTMORE
1183 # endif
1184 #endif
1185 #if !defined(SO_WANTOOBFLAG)
1186 # if defined(HAVE_CONST_SO_WANTOOBFLAG)
1187 # define SO_WANTOOBFLAG SO_WANTOOBFLAG
1188 # endif
1189 #endif
1190 #if !defined(SO_NREAD)
1191 # if defined(HAVE_CONST_SO_NREAD)
1192 # define SO_NREAD SO_NREAD
1193 # endif
1194 #endif
1195 #if !defined(SO_NKE)
1196 # if defined(HAVE_CONST_SO_NKE)
1197 # define SO_NKE SO_NKE
1198 # endif
1199 #endif
1200 #if !defined(SO_NOSIGPIPE)
1201 # if defined(HAVE_CONST_SO_NOSIGPIPE)
1202 # define SO_NOSIGPIPE SO_NOSIGPIPE
1203 # endif
1204 #endif
1205 #if !defined(SO_SECURITY_AUTHENTICATION)
1206 # if defined(HAVE_CONST_SO_SECURITY_AUTHENTICATION)
1207 # define SO_SECURITY_AUTHENTICATION SO_SECURITY_AUTHENTICATION
1208 # endif
1209 #endif
1210 #if !defined(SO_SECURITY_ENCRYPTION_TRANSPORT)
1211 # if defined(HAVE_CONST_SO_SECURITY_ENCRYPTION_TRANSPORT)
1212 # define SO_SECURITY_ENCRYPTION_TRANSPORT SO_SECURITY_ENCRYPTION_TRANSPORT
1213 # endif
1214 #endif
1215 #if !defined(SO_SECURITY_ENCRYPTION_NETWORK)
1216 # if defined(HAVE_CONST_SO_SECURITY_ENCRYPTION_NETWORK)
1217 # define SO_SECURITY_ENCRYPTION_NETWORK SO_SECURITY_ENCRYPTION_NETWORK
1218 # endif
1219 #endif
1220 #if !defined(SO_BINDTODEVICE)
1221 # if defined(HAVE_CONST_SO_BINDTODEVICE)
1222 # define SO_BINDTODEVICE SO_BINDTODEVICE
1223 # endif
1224 #endif
1225 #if !defined(SO_ATTACH_FILTER)
1226 # if defined(HAVE_CONST_SO_ATTACH_FILTER)
1227 # define SO_ATTACH_FILTER SO_ATTACH_FILTER
1228 # endif
1229 #endif
1230 #if !defined(SO_DETACH_FILTER)
1231 # if defined(HAVE_CONST_SO_DETACH_FILTER)
1232 # define SO_DETACH_FILTER SO_DETACH_FILTER
1233 # endif
1234 #endif
1235 #if !defined(SO_GET_FILTER)
1236 # if defined(HAVE_CONST_SO_GET_FILTER)
1237 # define SO_GET_FILTER SO_GET_FILTER
1238 # endif
1239 #endif
1240 #if !defined(SO_PEERNAME)
1241 # if defined(HAVE_CONST_SO_PEERNAME)
1242 # define SO_PEERNAME SO_PEERNAME
1243 # endif
1244 #endif
1245 #if !defined(SO_TIMESTAMP)
1246 # if defined(HAVE_CONST_SO_TIMESTAMP)
1247 # define SO_TIMESTAMP SO_TIMESTAMP
1248 # endif
1249 #endif
1250 #if !defined(SO_TIMESTAMPNS)
1251 # if defined(HAVE_CONST_SO_TIMESTAMPNS)
1252 # define SO_TIMESTAMPNS SO_TIMESTAMPNS
1253 # endif
1254 #endif
1255 #if !defined(SO_BINTIME)
1256 # if defined(HAVE_CONST_SO_BINTIME)
1257 # define SO_BINTIME SO_BINTIME
1258 # endif
1259 #endif
1260 #if !defined(SO_RECVUCRED)
1261 # if defined(HAVE_CONST_SO_RECVUCRED)
1262 # define SO_RECVUCRED SO_RECVUCRED
1263 # endif
1264 #endif
1265 #if !defined(SO_MAC_EXEMPT)
1266 # if defined(HAVE_CONST_SO_MAC_EXEMPT)
1267 # define SO_MAC_EXEMPT SO_MAC_EXEMPT
1268 # endif
1269 #endif
1270 #if !defined(SO_ALLZONES)
1271 # if defined(HAVE_CONST_SO_ALLZONES)
1272 # define SO_ALLZONES SO_ALLZONES
1273 # endif
1274 #endif
1275 #if !defined(SO_PEERSEC)
1276 # if defined(HAVE_CONST_SO_PEERSEC)
1277 # define SO_PEERSEC SO_PEERSEC
1278 # endif
1279 #endif
1280 #if !defined(SO_PASSSEC)
1281 # if defined(HAVE_CONST_SO_PASSSEC)
1282 # define SO_PASSSEC SO_PASSSEC
1283 # endif
1284 #endif
1285 #if !defined(SO_MARK)
1286 # if defined(HAVE_CONST_SO_MARK)
1287 # define SO_MARK SO_MARK
1288 # endif
1289 #endif
1290 #if !defined(SO_TIMESTAMPING)
1291 # if defined(HAVE_CONST_SO_TIMESTAMPING)
1292 # define SO_TIMESTAMPING SO_TIMESTAMPING
1293 # endif
1294 #endif
1295 #if !defined(SO_PROTOCOL)
1296 # if defined(HAVE_CONST_SO_PROTOCOL)
1297 # define SO_PROTOCOL SO_PROTOCOL
1298 # endif
1299 #endif
1300 #if !defined(SO_DOMAIN)
1301 # if defined(HAVE_CONST_SO_DOMAIN)
1302 # define SO_DOMAIN SO_DOMAIN
1303 # endif
1304 #endif
1305 #if !defined(SO_RXQ_OVFL)
1306 # if defined(HAVE_CONST_SO_RXQ_OVFL)
1307 # define SO_RXQ_OVFL SO_RXQ_OVFL
1308 # endif
1309 #endif
1310 #if !defined(SO_WIFI_STATUS)
1311 # if defined(HAVE_CONST_SO_WIFI_STATUS)
1312 # define SO_WIFI_STATUS SO_WIFI_STATUS
1313 # endif
1314 #endif
1315 #if !defined(SO_PEEK_OFF)
1316 # if defined(HAVE_CONST_SO_PEEK_OFF)
1317 # define SO_PEEK_OFF SO_PEEK_OFF
1318 # endif
1319 #endif
1320 #if !defined(SO_NOFCS)
1321 # if defined(HAVE_CONST_SO_NOFCS)
1322 # define SO_NOFCS SO_NOFCS
1323 # endif
1324 #endif
1325 #if !defined(SO_LOCK_FILTER)
1326 # if defined(HAVE_CONST_SO_LOCK_FILTER)
1327 # define SO_LOCK_FILTER SO_LOCK_FILTER
1328 # endif
1329 #endif
1330 #if !defined(SO_SELECT_ERR_QUEUE)
1331 # if defined(HAVE_CONST_SO_SELECT_ERR_QUEUE)
1332 # define SO_SELECT_ERR_QUEUE SO_SELECT_ERR_QUEUE
1333 # endif
1334 #endif
1335 #if !defined(SO_BUSY_POLL)
1336 # if defined(HAVE_CONST_SO_BUSY_POLL)
1337 # define SO_BUSY_POLL SO_BUSY_POLL
1338 # endif
1339 #endif
1340 #if !defined(SO_MAX_PACING_RATE)
1341 # if defined(HAVE_CONST_SO_MAX_PACING_RATE)
1342 # define SO_MAX_PACING_RATE SO_MAX_PACING_RATE
1343 # endif
1344 #endif
1345 #if !defined(SO_BPF_EXTENSIONS)
1346 # if defined(HAVE_CONST_SO_BPF_EXTENSIONS)
1347 # define SO_BPF_EXTENSIONS SO_BPF_EXTENSIONS
1348 # endif
1349 #endif
1350 #if !defined(SOPRI_INTERACTIVE)
1351 # if defined(HAVE_CONST_SOPRI_INTERACTIVE)
1352 # define SOPRI_INTERACTIVE SOPRI_INTERACTIVE
1353 # endif
1354 #endif
1355 #if !defined(SOPRI_NORMAL)
1356 # if defined(HAVE_CONST_SOPRI_NORMAL)
1357 # define SOPRI_NORMAL SOPRI_NORMAL
1358 # endif
1359 #endif
1360 #if !defined(SOPRI_BACKGROUND)
1361 # if defined(HAVE_CONST_SOPRI_BACKGROUND)
1362 # define SOPRI_BACKGROUND SOPRI_BACKGROUND
1363 # endif
1364 #endif
1365 #if !defined(IPX_TYPE)
1366 # if defined(HAVE_CONST_IPX_TYPE)
1367 # define IPX_TYPE IPX_TYPE
1368 # endif
1369 #endif
1370 #if !defined(TCP_NODELAY)
1371 # if defined(HAVE_CONST_TCP_NODELAY)
1372 # define TCP_NODELAY TCP_NODELAY
1373 # endif
1374 #endif
1375 #if !defined(TCP_MAXSEG)
1376 # if defined(HAVE_CONST_TCP_MAXSEG)
1377 # define TCP_MAXSEG TCP_MAXSEG
1378 # endif
1379 #endif
1380 #if !defined(TCP_CORK)
1381 # if defined(HAVE_CONST_TCP_CORK)
1382 # define TCP_CORK TCP_CORK
1383 # endif
1384 #endif
1385 #if !defined(TCP_DEFER_ACCEPT)
1386 # if defined(HAVE_CONST_TCP_DEFER_ACCEPT)
1387 # define TCP_DEFER_ACCEPT TCP_DEFER_ACCEPT
1388 # endif
1389 #endif
1390 #if !defined(TCP_INFO)
1391 # if defined(HAVE_CONST_TCP_INFO)
1392 # define TCP_INFO TCP_INFO
1393 # endif
1394 #endif
1395 #if !defined(TCP_KEEPCNT)
1396 # if defined(HAVE_CONST_TCP_KEEPCNT)
1397 # define TCP_KEEPCNT TCP_KEEPCNT
1398 # endif
1399 #endif
1400 #if !defined(TCP_KEEPIDLE)
1401 # if defined(HAVE_CONST_TCP_KEEPIDLE)
1402 # define TCP_KEEPIDLE TCP_KEEPIDLE
1403 # endif
1404 #endif
1405 #if !defined(TCP_KEEPINTVL)
1406 # if defined(HAVE_CONST_TCP_KEEPINTVL)
1407 # define TCP_KEEPINTVL TCP_KEEPINTVL
1408 # endif
1409 #endif
1410 #if !defined(TCP_LINGER2)
1411 # if defined(HAVE_CONST_TCP_LINGER2)
1412 # define TCP_LINGER2 TCP_LINGER2
1413 # endif
1414 #endif
1415 #if !defined(TCP_MD5SIG)
1416 # if defined(HAVE_CONST_TCP_MD5SIG)
1417 # define TCP_MD5SIG TCP_MD5SIG
1418 # endif
1419 #endif
1420 #if !defined(TCP_NOOPT)
1421 # if defined(HAVE_CONST_TCP_NOOPT)
1422 # define TCP_NOOPT TCP_NOOPT
1423 # endif
1424 #endif
1425 #if !defined(TCP_NOPUSH)
1426 # if defined(HAVE_CONST_TCP_NOPUSH)
1427 # define TCP_NOPUSH TCP_NOPUSH
1428 # endif
1429 #endif
1430 #if !defined(TCP_QUICKACK)
1431 # if defined(HAVE_CONST_TCP_QUICKACK)
1432 # define TCP_QUICKACK TCP_QUICKACK
1433 # endif
1434 #endif
1435 #if !defined(TCP_SYNCNT)
1436 # if defined(HAVE_CONST_TCP_SYNCNT)
1437 # define TCP_SYNCNT TCP_SYNCNT
1438 # endif
1439 #endif
1440 #if !defined(TCP_WINDOW_CLAMP)
1441 # if defined(HAVE_CONST_TCP_WINDOW_CLAMP)
1442 # define TCP_WINDOW_CLAMP TCP_WINDOW_CLAMP
1443 # endif
1444 #endif
1445 #if !defined(TCP_FASTOPEN)
1446 # if defined(HAVE_CONST_TCP_FASTOPEN)
1447 # define TCP_FASTOPEN TCP_FASTOPEN
1448 # endif
1449 #endif
1450 #if !defined(TCP_CONGESTION)
1451 # if defined(HAVE_CONST_TCP_CONGESTION)
1452 # define TCP_CONGESTION TCP_CONGESTION
1453 # endif
1454 #endif
1455 #if !defined(TCP_COOKIE_TRANSACTIONS)
1456 # if defined(HAVE_CONST_TCP_COOKIE_TRANSACTIONS)
1457 # define TCP_COOKIE_TRANSACTIONS TCP_COOKIE_TRANSACTIONS
1458 # endif
1459 #endif
1460 #if !defined(TCP_QUEUE_SEQ)
1461 # if defined(HAVE_CONST_TCP_QUEUE_SEQ)
1462 # define TCP_QUEUE_SEQ TCP_QUEUE_SEQ
1463 # endif
1464 #endif
1465 #if !defined(TCP_REPAIR)
1466 # if defined(HAVE_CONST_TCP_REPAIR)
1467 # define TCP_REPAIR TCP_REPAIR
1468 # endif
1469 #endif
1470 #if !defined(TCP_REPAIR_OPTIONS)
1471 # if defined(HAVE_CONST_TCP_REPAIR_OPTIONS)
1472 # define TCP_REPAIR_OPTIONS TCP_REPAIR_OPTIONS
1473 # endif
1474 #endif
1475 #if !defined(TCP_REPAIR_QUEUE)
1476 # if defined(HAVE_CONST_TCP_REPAIR_QUEUE)
1477 # define TCP_REPAIR_QUEUE TCP_REPAIR_QUEUE
1478 # endif
1479 #endif
1480 #if !defined(TCP_THIN_DUPACK)
1481 # if defined(HAVE_CONST_TCP_THIN_DUPACK)
1482 # define TCP_THIN_DUPACK TCP_THIN_DUPACK
1483 # endif
1484 #endif
1485 #if !defined(TCP_THIN_LINEAR_TIMEOUTS)
1486 # if defined(HAVE_CONST_TCP_THIN_LINEAR_TIMEOUTS)
1487 # define TCP_THIN_LINEAR_TIMEOUTS TCP_THIN_LINEAR_TIMEOUTS
1488 # endif
1489 #endif
1490 #if !defined(TCP_TIMESTAMP)
1491 # if defined(HAVE_CONST_TCP_TIMESTAMP)
1492 # define TCP_TIMESTAMP TCP_TIMESTAMP
1493 # endif
1494 #endif
1495 #if !defined(TCP_USER_TIMEOUT)
1496 # if defined(HAVE_CONST_TCP_USER_TIMEOUT)
1497 # define TCP_USER_TIMEOUT TCP_USER_TIMEOUT
1498 # endif
1499 #endif
1500 #if !defined(UDP_CORK)
1501 # if defined(HAVE_CONST_UDP_CORK)
1502 # define UDP_CORK UDP_CORK
1503 # endif
1504 #endif
1505 #if !defined(EAI_ADDRFAMILY)
1506 # if defined(HAVE_CONST_EAI_ADDRFAMILY)
1507 # define EAI_ADDRFAMILY EAI_ADDRFAMILY
1508 # endif
1509 #endif
1510 #if !defined(EAI_AGAIN)
1511 # if defined(HAVE_CONST_EAI_AGAIN)
1512 # define EAI_AGAIN EAI_AGAIN
1513 # endif
1514 #endif
1515 #if !defined(EAI_BADFLAGS)
1516 # if defined(HAVE_CONST_EAI_BADFLAGS)
1517 # define EAI_BADFLAGS EAI_BADFLAGS
1518 # endif
1519 #endif
1520 #if !defined(EAI_FAIL)
1521 # if defined(HAVE_CONST_EAI_FAIL)
1522 # define EAI_FAIL EAI_FAIL
1523 # endif
1524 #endif
1525 #if !defined(EAI_FAMILY)
1526 # if defined(HAVE_CONST_EAI_FAMILY)
1527 # define EAI_FAMILY EAI_FAMILY
1528 # endif
1529 #endif
1530 #if !defined(EAI_MEMORY)
1531 # if defined(HAVE_CONST_EAI_MEMORY)
1532 # define EAI_MEMORY EAI_MEMORY
1533 # endif
1534 #endif
1535 #if !defined(EAI_NODATA)
1536 # if defined(HAVE_CONST_EAI_NODATA)
1537 # define EAI_NODATA EAI_NODATA
1538 # endif
1539 #endif
1540 #if !defined(EAI_NONAME)
1541 # if defined(HAVE_CONST_EAI_NONAME)
1542 # define EAI_NONAME EAI_NONAME
1543 # endif
1544 #endif
1545 #if !defined(EAI_OVERFLOW)
1546 # if defined(HAVE_CONST_EAI_OVERFLOW)
1547 # define EAI_OVERFLOW EAI_OVERFLOW
1548 # endif
1549 #endif
1550 #if !defined(EAI_SERVICE)
1551 # if defined(HAVE_CONST_EAI_SERVICE)
1552 # define EAI_SERVICE EAI_SERVICE
1553 # endif
1554 #endif
1555 #if !defined(EAI_SOCKTYPE)
1556 # if defined(HAVE_CONST_EAI_SOCKTYPE)
1557 # define EAI_SOCKTYPE EAI_SOCKTYPE
1558 # endif
1559 #endif
1560 #if !defined(EAI_SYSTEM)
1561 # if defined(HAVE_CONST_EAI_SYSTEM)
1562 # define EAI_SYSTEM EAI_SYSTEM
1563 # endif
1564 #endif
1565 #if !defined(EAI_BADHINTS)
1566 # if defined(HAVE_CONST_EAI_BADHINTS)
1567 # define EAI_BADHINTS EAI_BADHINTS
1568 # endif
1569 #endif
1570 #if !defined(EAI_PROTOCOL)
1571 # if defined(HAVE_CONST_EAI_PROTOCOL)
1572 # define EAI_PROTOCOL EAI_PROTOCOL
1573 # endif
1574 #endif
1575 #if !defined(EAI_MAX)
1576 # if defined(HAVE_CONST_EAI_MAX)
1577 # define EAI_MAX EAI_MAX
1578 # endif
1579 #endif
1580 #if !defined(AI_PASSIVE)
1581 # if defined(HAVE_CONST_AI_PASSIVE)
1582 # define AI_PASSIVE AI_PASSIVE
1583 # endif
1584 #endif
1585 #if !defined(AI_CANONNAME)
1586 # if defined(HAVE_CONST_AI_CANONNAME)
1587 # define AI_CANONNAME AI_CANONNAME
1588 # endif
1589 #endif
1590 #if !defined(AI_NUMERICHOST)
1591 # if defined(HAVE_CONST_AI_NUMERICHOST)
1592 # define AI_NUMERICHOST AI_NUMERICHOST
1593 # endif
1594 #endif
1595 #if !defined(AI_NUMERICSERV)
1596 # if defined(HAVE_CONST_AI_NUMERICSERV)
1597 # define AI_NUMERICSERV AI_NUMERICSERV
1598 # endif
1599 #endif
1600 #if !defined(AI_MASK)
1601 # if defined(HAVE_CONST_AI_MASK)
1602 # define AI_MASK AI_MASK
1603 # endif
1604 #endif
1605 #if !defined(AI_ALL)
1606 # if defined(HAVE_CONST_AI_ALL)
1607 # define AI_ALL AI_ALL
1608 # endif
1609 #endif
1610 #if !defined(AI_V4MAPPED_CFG)
1611 # if defined(HAVE_CONST_AI_V4MAPPED_CFG)
1612 # define AI_V4MAPPED_CFG AI_V4MAPPED_CFG
1613 # endif
1614 #endif
1615 #if !defined(AI_ADDRCONFIG)
1616 # if defined(HAVE_CONST_AI_ADDRCONFIG)
1617 # define AI_ADDRCONFIG AI_ADDRCONFIG
1618 # endif
1619 #endif
1620 #if !defined(AI_V4MAPPED)
1621 # if defined(HAVE_CONST_AI_V4MAPPED)
1622 # define AI_V4MAPPED AI_V4MAPPED
1623 # endif
1624 #endif
1625 #if !defined(AI_DEFAULT)
1626 # if defined(HAVE_CONST_AI_DEFAULT)
1627 # define AI_DEFAULT AI_DEFAULT
1628 # endif
1629 #endif
1630 #if !defined(NI_MAXHOST)
1631 # if defined(HAVE_CONST_NI_MAXHOST)
1632 # define NI_MAXHOST NI_MAXHOST
1633 # endif
1634 #endif
1635 #if !defined(NI_MAXSERV)
1636 # if defined(HAVE_CONST_NI_MAXSERV)
1637 # define NI_MAXSERV NI_MAXSERV
1638 # endif
1639 #endif
1640 #if !defined(NI_NOFQDN)
1641 # if defined(HAVE_CONST_NI_NOFQDN)
1642 # define NI_NOFQDN NI_NOFQDN
1643 # endif
1644 #endif
1645 #if !defined(NI_NUMERICHOST)
1646 # if defined(HAVE_CONST_NI_NUMERICHOST)
1647 # define NI_NUMERICHOST NI_NUMERICHOST
1648 # endif
1649 #endif
1650 #if !defined(NI_NAMEREQD)
1651 # if defined(HAVE_CONST_NI_NAMEREQD)
1652 # define NI_NAMEREQD NI_NAMEREQD
1653 # endif
1654 #endif
1655 #if !defined(NI_NUMERICSERV)
1656 # if defined(HAVE_CONST_NI_NUMERICSERV)
1657 # define NI_NUMERICSERV NI_NUMERICSERV
1658 # endif
1659 #endif
1660 #if !defined(NI_DGRAM)
1661 # if defined(HAVE_CONST_NI_DGRAM)
1662 # define NI_DGRAM NI_DGRAM
1663 # endif
1664 #endif
1665 #if !defined(SHUT_RD)
1666 # if defined(HAVE_CONST_SHUT_RD)
1667 # define SHUT_RD SHUT_RD
1668 # else
1669 # define SHUT_RD 0
1670 # endif
1671 #endif
1672 #if !defined(SHUT_WR)
1673 # if defined(HAVE_CONST_SHUT_WR)
1674 # define SHUT_WR SHUT_WR
1675 # else
1676 # define SHUT_WR 1
1677 # endif
1678 #endif
1679 #if !defined(SHUT_RDWR)
1680 # if defined(HAVE_CONST_SHUT_RDWR)
1681 # define SHUT_RDWR SHUT_RDWR
1682 # else
1683 # define SHUT_RDWR 2
1684 # endif
1685 #endif
1686 #if !defined(IPV6_JOIN_GROUP)
1687 # if defined(HAVE_CONST_IPV6_JOIN_GROUP)
1688 # define IPV6_JOIN_GROUP IPV6_JOIN_GROUP
1689 # endif
1690 #endif
1691 #if !defined(IPV6_LEAVE_GROUP)
1692 # if defined(HAVE_CONST_IPV6_LEAVE_GROUP)
1693 # define IPV6_LEAVE_GROUP IPV6_LEAVE_GROUP
1694 # endif
1695 #endif
1696 #if !defined(IPV6_MULTICAST_HOPS)
1697 # if defined(HAVE_CONST_IPV6_MULTICAST_HOPS)
1698 # define IPV6_MULTICAST_HOPS IPV6_MULTICAST_HOPS
1699 # endif
1700 #endif
1701 #if !defined(IPV6_MULTICAST_IF)
1702 # if defined(HAVE_CONST_IPV6_MULTICAST_IF)
1703 # define IPV6_MULTICAST_IF IPV6_MULTICAST_IF
1704 # endif
1705 #endif
1706 #if !defined(IPV6_MULTICAST_LOOP)
1707 # if defined(HAVE_CONST_IPV6_MULTICAST_LOOP)
1708 # define IPV6_MULTICAST_LOOP IPV6_MULTICAST_LOOP
1709 # endif
1710 #endif
1711 #if !defined(IPV6_UNICAST_HOPS)
1712 # if defined(HAVE_CONST_IPV6_UNICAST_HOPS)
1713 # define IPV6_UNICAST_HOPS IPV6_UNICAST_HOPS
1714 # endif
1715 #endif
1716 #if !defined(IPV6_V6ONLY)
1717 # if defined(HAVE_CONST_IPV6_V6ONLY)
1718 # define IPV6_V6ONLY IPV6_V6ONLY
1719 # endif
1720 #endif
1721 #if !defined(IPV6_CHECKSUM)
1722 # if defined(HAVE_CONST_IPV6_CHECKSUM)
1723 # define IPV6_CHECKSUM IPV6_CHECKSUM
1724 # endif
1725 #endif
1726 #if !defined(IPV6_DONTFRAG)
1727 # if defined(HAVE_CONST_IPV6_DONTFRAG)
1728 # define IPV6_DONTFRAG IPV6_DONTFRAG
1729 # endif
1730 #endif
1731 #if !defined(IPV6_DSTOPTS)
1732 # if defined(HAVE_CONST_IPV6_DSTOPTS)
1733 # define IPV6_DSTOPTS IPV6_DSTOPTS
1734 # endif
1735 #endif
1736 #if !defined(IPV6_HOPLIMIT)
1737 # if defined(HAVE_CONST_IPV6_HOPLIMIT)
1738 # define IPV6_HOPLIMIT IPV6_HOPLIMIT
1739 # endif
1740 #endif
1741 #if !defined(IPV6_HOPOPTS)
1742 # if defined(HAVE_CONST_IPV6_HOPOPTS)
1743 # define IPV6_HOPOPTS IPV6_HOPOPTS
1744 # endif
1745 #endif
1746 #if !defined(IPV6_NEXTHOP)
1747 # if defined(HAVE_CONST_IPV6_NEXTHOP)
1748 # define IPV6_NEXTHOP IPV6_NEXTHOP
1749 # endif
1750 #endif
1751 #if !defined(IPV6_PATHMTU)
1752 # if defined(HAVE_CONST_IPV6_PATHMTU)
1753 # define IPV6_PATHMTU IPV6_PATHMTU
1754 # endif
1755 #endif
1756 #if !defined(IPV6_PKTINFO)
1757 # if defined(HAVE_CONST_IPV6_PKTINFO)
1758 # define IPV6_PKTINFO IPV6_PKTINFO
1759 # endif
1760 #endif
1761 #if !defined(IPV6_RECVDSTOPTS)
1762 # if defined(HAVE_CONST_IPV6_RECVDSTOPTS)
1763 # define IPV6_RECVDSTOPTS IPV6_RECVDSTOPTS
1764 # endif
1765 #endif
1766 #if !defined(IPV6_RECVHOPLIMIT)
1767 # if defined(HAVE_CONST_IPV6_RECVHOPLIMIT)
1768 # define IPV6_RECVHOPLIMIT IPV6_RECVHOPLIMIT
1769 # endif
1770 #endif
1771 #if !defined(IPV6_RECVHOPOPTS)
1772 # if defined(HAVE_CONST_IPV6_RECVHOPOPTS)
1773 # define IPV6_RECVHOPOPTS IPV6_RECVHOPOPTS
1774 # endif
1775 #endif
1776 #if !defined(IPV6_RECVPKTINFO)
1777 # if defined(HAVE_CONST_IPV6_RECVPKTINFO)
1778 # define IPV6_RECVPKTINFO IPV6_RECVPKTINFO
1779 # endif
1780 #endif
1781 #if !defined(IPV6_RECVRTHDR)
1782 # if defined(HAVE_CONST_IPV6_RECVRTHDR)
1783 # define IPV6_RECVRTHDR IPV6_RECVRTHDR
1784 # endif
1785 #endif
1786 #if !defined(IPV6_RECVTCLASS)
1787 # if defined(HAVE_CONST_IPV6_RECVTCLASS)
1788 # define IPV6_RECVTCLASS IPV6_RECVTCLASS
1789 # endif
1790 #endif
1791 #if !defined(IPV6_RTHDR)
1792 # if defined(HAVE_CONST_IPV6_RTHDR)
1793 # define IPV6_RTHDR IPV6_RTHDR
1794 # endif
1795 #endif
1796 #if !defined(IPV6_RTHDRDSTOPTS)
1797 # if defined(HAVE_CONST_IPV6_RTHDRDSTOPTS)
1798 # define IPV6_RTHDRDSTOPTS IPV6_RTHDRDSTOPTS
1799 # endif
1800 #endif
1801 #if !defined(IPV6_RTHDR_TYPE_0)
1802 # if defined(HAVE_CONST_IPV6_RTHDR_TYPE_0)
1803 # define IPV6_RTHDR_TYPE_0 IPV6_RTHDR_TYPE_0
1804 # endif
1805 #endif
1806 #if !defined(IPV6_RECVPATHMTU)
1807 # if defined(HAVE_CONST_IPV6_RECVPATHMTU)
1808 # define IPV6_RECVPATHMTU IPV6_RECVPATHMTU
1809 # endif
1810 #endif
1811 #if !defined(IPV6_TCLASS)
1812 # if defined(HAVE_CONST_IPV6_TCLASS)
1813 # define IPV6_TCLASS IPV6_TCLASS
1814 # endif
1815 #endif
1816 #if !defined(IPV6_USE_MIN_MTU)
1817 # if defined(HAVE_CONST_IPV6_USE_MIN_MTU)
1818 # define IPV6_USE_MIN_MTU IPV6_USE_MIN_MTU
1819 # endif
1820 #endif
1821 #if !defined(INET_ADDRSTRLEN)
1822 # if defined(HAVE_CONST_INET_ADDRSTRLEN)
1823 # define INET_ADDRSTRLEN INET_ADDRSTRLEN
1824 # else
1825 # define INET_ADDRSTRLEN 16
1826 # endif
1827 #endif
1828 #if !defined(INET6_ADDRSTRLEN)
1829 # if defined(HAVE_CONST_INET6_ADDRSTRLEN)
1830 # define INET6_ADDRSTRLEN INET6_ADDRSTRLEN
1831 # else
1832 # define INET6_ADDRSTRLEN 46
1833 # endif
1834 #endif
1835 #if !defined(IFNAMSIZ)
1836 # if defined(HAVE_CONST_IFNAMSIZ)
1837 # define IFNAMSIZ IFNAMSIZ
1838 # endif
1839 #endif
1840 #if !defined(IF_NAMESIZE)
1841 # if defined(HAVE_CONST_IF_NAMESIZE)
1842 # define IF_NAMESIZE IF_NAMESIZE
1843 # endif
1844 #endif
1845 #if !defined(SOMAXCONN)
1846 # if defined(HAVE_CONST_SOMAXCONN)
1847 # define SOMAXCONN SOMAXCONN
1848 # else
1849 # define SOMAXCONN 5
1850 # endif
1851 #endif
1852 #if !defined(SCM_RIGHTS)
1853 # if defined(HAVE_CONST_SCM_RIGHTS)
1854 # define SCM_RIGHTS SCM_RIGHTS
1855 # endif
1856 #endif
1857 #if !defined(SCM_TIMESTAMP)
1858 # if defined(HAVE_CONST_SCM_TIMESTAMP)
1859 # define SCM_TIMESTAMP SCM_TIMESTAMP
1860 # endif
1861 #endif
1862 #if !defined(SCM_TIMESTAMPNS)
1863 # if defined(HAVE_CONST_SCM_TIMESTAMPNS)
1864 # define SCM_TIMESTAMPNS SCM_TIMESTAMPNS
1865 # endif
1866 #endif
1867 #if !defined(SCM_TIMESTAMPING)
1868 # if defined(HAVE_CONST_SCM_TIMESTAMPING)
1869 # define SCM_TIMESTAMPING SCM_TIMESTAMPING
1870 # endif
1871 #endif
1872 #if !defined(SCM_BINTIME)
1873 # if defined(HAVE_CONST_SCM_BINTIME)
1874 # define SCM_BINTIME SCM_BINTIME
1875 # endif
1876 #endif
1877 #if !defined(SCM_CREDENTIALS)
1878 # if defined(HAVE_CONST_SCM_CREDENTIALS)
1879 # define SCM_CREDENTIALS SCM_CREDENTIALS
1880 # endif
1881 #endif
1882 #if !defined(SCM_CREDS)
1883 # if defined(HAVE_CONST_SCM_CREDS)
1884 # define SCM_CREDS SCM_CREDS
1885 # endif
1886 #endif
1887 #if !defined(SCM_UCRED)
1888 # if defined(HAVE_CONST_SCM_UCRED)
1889 # define SCM_UCRED SCM_UCRED
1890 # endif
1891 #endif
1892 #if !defined(SCM_WIFI_STATUS)
1893 # if defined(HAVE_CONST_SCM_WIFI_STATUS)
1894 # define SCM_WIFI_STATUS SCM_WIFI_STATUS
1895 # endif
1896 #endif
1897 #if !defined(LOCAL_PEERCRED)
1898 # if defined(HAVE_CONST_LOCAL_PEERCRED)
1899 # define LOCAL_PEERCRED LOCAL_PEERCRED
1900 # endif
1901 #endif
1902 #if !defined(LOCAL_CREDS)
1903 # if defined(HAVE_CONST_LOCAL_CREDS)
1904 # define LOCAL_CREDS LOCAL_CREDS
1905 # endif
1906 #endif
1907 #if !defined(LOCAL_CONNWAIT)
1908 # if defined(HAVE_CONST_LOCAL_CONNWAIT)
1909 # define LOCAL_CONNWAIT LOCAL_CONNWAIT
1910 # endif
1911 #endif
1912 #if !defined(IFF_802_1Q_VLAN)
1913 # if defined(HAVE_CONST_IFF_802_1Q_VLAN)
1914 # define IFF_802_1Q_VLAN IFF_802_1Q_VLAN
1915 # endif
1916 #endif
1917 #if !defined(IFF_ALLMULTI)
1918 # if defined(HAVE_CONST_IFF_ALLMULTI)
1919 # define IFF_ALLMULTI IFF_ALLMULTI
1920 # endif
1921 #endif
1922 #if !defined(IFF_ALTPHYS)
1923 # if defined(HAVE_CONST_IFF_ALTPHYS)
1924 # define IFF_ALTPHYS IFF_ALTPHYS
1925 # endif
1926 #endif
1927 #if !defined(IFF_AUTOMEDIA)
1928 # if defined(HAVE_CONST_IFF_AUTOMEDIA)
1929 # define IFF_AUTOMEDIA IFF_AUTOMEDIA
1930 # endif
1931 #endif
1932 #if !defined(IFF_BONDING)
1933 # if defined(HAVE_CONST_IFF_BONDING)
1934 # define IFF_BONDING IFF_BONDING
1935 # endif
1936 #endif
1937 #if !defined(IFF_BRIDGE_PORT)
1938 # if defined(HAVE_CONST_IFF_BRIDGE_PORT)
1939 # define IFF_BRIDGE_PORT IFF_BRIDGE_PORT
1940 # endif
1941 #endif
1942 #if !defined(IFF_BROADCAST)
1943 # if defined(HAVE_CONST_IFF_BROADCAST)
1944 # define IFF_BROADCAST IFF_BROADCAST
1945 # endif
1946 #endif
1947 #if !defined(IFF_CANTCONFIG)
1948 # if defined(HAVE_CONST_IFF_CANTCONFIG)
1949 # define IFF_CANTCONFIG IFF_CANTCONFIG
1950 # endif
1951 #endif
1952 #if !defined(IFF_DEBUG)
1953 # if defined(HAVE_CONST_IFF_DEBUG)
1954 # define IFF_DEBUG IFF_DEBUG
1955 # endif
1956 #endif
1957 #if !defined(IFF_DISABLE_NETPOLL)
1958 # if defined(HAVE_CONST_IFF_DISABLE_NETPOLL)
1959 # define IFF_DISABLE_NETPOLL IFF_DISABLE_NETPOLL
1960 # endif
1961 #endif
1962 #if !defined(IFF_DONT_BRIDGE)
1963 # if defined(HAVE_CONST_IFF_DONT_BRIDGE)
1964 # define IFF_DONT_BRIDGE IFF_DONT_BRIDGE
1965 # endif
1966 #endif
1967 #if !defined(IFF_DORMANT)
1968 # if defined(HAVE_CONST_IFF_DORMANT)
1969 # define IFF_DORMANT IFF_DORMANT
1970 # endif
1971 #endif
1972 #if !defined(IFF_DRV_OACTIVE)
1973 # if defined(HAVE_CONST_IFF_DRV_OACTIVE)
1974 # define IFF_DRV_OACTIVE IFF_DRV_OACTIVE
1975 # endif
1976 #endif
1977 #if !defined(IFF_DRV_RUNNING)
1978 # if defined(HAVE_CONST_IFF_DRV_RUNNING)
1979 # define IFF_DRV_RUNNING IFF_DRV_RUNNING
1980 # endif
1981 #endif
1982 #if !defined(IFF_DYING)
1983 # if defined(HAVE_CONST_IFF_DYING)
1984 # define IFF_DYING IFF_DYING
1985 # endif
1986 #endif
1987 #if !defined(IFF_DYNAMIC)
1988 # if defined(HAVE_CONST_IFF_DYNAMIC)
1989 # define IFF_DYNAMIC IFF_DYNAMIC
1990 # endif
1991 #endif
1992 #if !defined(IFF_EBRIDGE)
1993 # if defined(HAVE_CONST_IFF_EBRIDGE)
1994 # define IFF_EBRIDGE IFF_EBRIDGE
1995 # endif
1996 #endif
1997 #if !defined(IFF_ECHO)
1998 # if defined(HAVE_CONST_IFF_ECHO)
1999 # define IFF_ECHO IFF_ECHO
2000 # endif
2001 #endif
2002 #if !defined(IFF_ISATAP)
2003 # if defined(HAVE_CONST_IFF_ISATAP)
2004 # define IFF_ISATAP IFF_ISATAP
2005 # endif
2006 #endif
2007 #if !defined(IFF_LINK0)
2008 # if defined(HAVE_CONST_IFF_LINK0)
2009 # define IFF_LINK0 IFF_LINK0
2010 # endif
2011 #endif
2012 #if !defined(IFF_LINK1)
2013 # if defined(HAVE_CONST_IFF_LINK1)
2014 # define IFF_LINK1 IFF_LINK1
2015 # endif
2016 #endif
2017 #if !defined(IFF_LINK2)
2018 # if defined(HAVE_CONST_IFF_LINK2)
2019 # define IFF_LINK2 IFF_LINK2
2020 # endif
2021 #endif
2022 #if !defined(IFF_LIVE_ADDR_CHANGE)
2023 # if defined(HAVE_CONST_IFF_LIVE_ADDR_CHANGE)
2024 # define IFF_LIVE_ADDR_CHANGE IFF_LIVE_ADDR_CHANGE
2025 # endif
2026 #endif
2027 #if !defined(IFF_LOOPBACK)
2028 # if defined(HAVE_CONST_IFF_LOOPBACK)
2029 # define IFF_LOOPBACK IFF_LOOPBACK
2030 # endif
2031 #endif
2032 #if !defined(IFF_LOWER_UP)
2033 # if defined(HAVE_CONST_IFF_LOWER_UP)
2034 # define IFF_LOWER_UP IFF_LOWER_UP
2035 # endif
2036 #endif
2037 #if !defined(IFF_MACVLAN_PORT)
2038 # if defined(HAVE_CONST_IFF_MACVLAN_PORT)
2039 # define IFF_MACVLAN_PORT IFF_MACVLAN_PORT
2040 # endif
2041 #endif
2042 #if !defined(IFF_MASTER)
2043 # if defined(HAVE_CONST_IFF_MASTER)
2044 # define IFF_MASTER IFF_MASTER
2045 # endif
2046 #endif
2047 #if !defined(IFF_MASTER_8023AD)
2048 # if defined(HAVE_CONST_IFF_MASTER_8023AD)
2049 # define IFF_MASTER_8023AD IFF_MASTER_8023AD
2050 # endif
2051 #endif
2052 #if !defined(IFF_MASTER_ALB)
2053 # if defined(HAVE_CONST_IFF_MASTER_ALB)
2054 # define IFF_MASTER_ALB IFF_MASTER_ALB
2055 # endif
2056 #endif
2057 #if !defined(IFF_MASTER_ARPMON)
2058 # if defined(HAVE_CONST_IFF_MASTER_ARPMON)
2059 # define IFF_MASTER_ARPMON IFF_MASTER_ARPMON
2060 # endif
2061 #endif
2062 #if !defined(IFF_MONITOR)
2063 # if defined(HAVE_CONST_IFF_MONITOR)
2064 # define IFF_MONITOR IFF_MONITOR
2065 # endif
2066 #endif
2067 #if !defined(IFF_MULTICAST)
2068 # if defined(HAVE_CONST_IFF_MULTICAST)
2069 # define IFF_MULTICAST IFF_MULTICAST
2070 # endif
2071 #endif
2072 #if !defined(IFF_NOARP)
2073 # if defined(HAVE_CONST_IFF_NOARP)
2074 # define IFF_NOARP IFF_NOARP
2075 # endif
2076 #endif
2077 #if !defined(IFF_NOTRAILERS)
2078 # if defined(HAVE_CONST_IFF_NOTRAILERS)
2079 # define IFF_NOTRAILERS IFF_NOTRAILERS
2080 # endif
2081 #endif
2082 #if !defined(IFF_OACTIVE)
2083 # if defined(HAVE_CONST_IFF_OACTIVE)
2084 # define IFF_OACTIVE IFF_OACTIVE
2085 # endif
2086 #endif
2087 #if !defined(IFF_OVS_DATAPATH)
2088 # if defined(HAVE_CONST_IFF_OVS_DATAPATH)
2089 # define IFF_OVS_DATAPATH IFF_OVS_DATAPATH
2090 # endif
2091 #endif
2092 #if !defined(IFF_POINTOPOINT)
2093 # if defined(HAVE_CONST_IFF_POINTOPOINT)
2094 # define IFF_POINTOPOINT IFF_POINTOPOINT
2095 # endif
2096 #endif
2097 #if !defined(IFF_PORTSEL)
2098 # if defined(HAVE_CONST_IFF_PORTSEL)
2099 # define IFF_PORTSEL IFF_PORTSEL
2100 # endif
2101 #endif
2102 #if !defined(IFF_PPROMISC)
2103 # if defined(HAVE_CONST_IFF_PPROMISC)
2104 # define IFF_PPROMISC IFF_PPROMISC
2105 # endif
2106 #endif
2107 #if !defined(IFF_PROMISC)
2108 # if defined(HAVE_CONST_IFF_PROMISC)
2109 # define IFF_PROMISC IFF_PROMISC
2110 # endif
2111 #endif
2112 #if !defined(IFF_RENAMING)
2113 # if defined(HAVE_CONST_IFF_RENAMING)
2114 # define IFF_RENAMING IFF_RENAMING
2115 # endif
2116 #endif
2117 #if !defined(IFF_ROUTE)
2118 # if defined(HAVE_CONST_IFF_ROUTE)
2119 # define IFF_ROUTE IFF_ROUTE
2120 # endif
2121 #endif
2122 #if !defined(IFF_RUNNING)
2123 # if defined(HAVE_CONST_IFF_RUNNING)
2124 # define IFF_RUNNING IFF_RUNNING
2125 # endif
2126 #endif
2127 #if !defined(IFF_SIMPLEX)
2128 # if defined(HAVE_CONST_IFF_SIMPLEX)
2129 # define IFF_SIMPLEX IFF_SIMPLEX
2130 # endif
2131 #endif
2132 #if !defined(IFF_SLAVE)
2133 # if defined(HAVE_CONST_IFF_SLAVE)
2134 # define IFF_SLAVE IFF_SLAVE
2135 # endif
2136 #endif
2137 #if !defined(IFF_SLAVE_INACTIVE)
2138 # if defined(HAVE_CONST_IFF_SLAVE_INACTIVE)
2139 # define IFF_SLAVE_INACTIVE IFF_SLAVE_INACTIVE
2140 # endif
2141 #endif
2142 #if !defined(IFF_SLAVE_NEEDARP)
2143 # if defined(HAVE_CONST_IFF_SLAVE_NEEDARP)
2144 # define IFF_SLAVE_NEEDARP IFF_SLAVE_NEEDARP
2145 # endif
2146 #endif
2147 #if !defined(IFF_SMART)
2148 # if defined(HAVE_CONST_IFF_SMART)
2149 # define IFF_SMART IFF_SMART
2150 # endif
2151 #endif
2152 #if !defined(IFF_STATICARP)
2153 # if defined(HAVE_CONST_IFF_STATICARP)
2154 # define IFF_STATICARP IFF_STATICARP
2155 # endif
2156 #endif
2157 #if !defined(IFF_SUPP_NOFCS)
2158 # if defined(HAVE_CONST_IFF_SUPP_NOFCS)
2159 # define IFF_SUPP_NOFCS IFF_SUPP_NOFCS
2160 # endif
2161 #endif
2162 #if !defined(IFF_TEAM_PORT)
2163 # if defined(HAVE_CONST_IFF_TEAM_PORT)
2164 # define IFF_TEAM_PORT IFF_TEAM_PORT
2165 # endif
2166 #endif
2167 #if !defined(IFF_TX_SKB_SHARING)
2168 # if defined(HAVE_CONST_IFF_TX_SKB_SHARING)
2169 # define IFF_TX_SKB_SHARING IFF_TX_SKB_SHARING
2170 # endif
2171 #endif
2172 #if !defined(IFF_UNICAST_FLT)
2173 # if defined(HAVE_CONST_IFF_UNICAST_FLT)
2174 # define IFF_UNICAST_FLT IFF_UNICAST_FLT
2175 # endif
2176 #endif
2177 #if !defined(IFF_UP)
2178 # if defined(HAVE_CONST_IFF_UP)
2179 # define IFF_UP IFF_UP
2180 # endif
2181 #endif
2182 #if !defined(IFF_WAN_HDLC)
2183 # if defined(HAVE_CONST_IFF_WAN_HDLC)
2184 # define IFF_WAN_HDLC IFF_WAN_HDLC
2185 # endif
2186 #endif
2187 #if !defined(IFF_XMIT_DST_RELEASE)
2188 # if defined(HAVE_CONST_IFF_XMIT_DST_RELEASE)
2189 # define IFF_XMIT_DST_RELEASE IFF_XMIT_DST_RELEASE
2190 # endif
2191 #endif
2192 #if !defined(IFF_VOLATILE)
2193 # if defined(HAVE_CONST_IFF_VOLATILE)
2194 # define IFF_VOLATILE IFF_VOLATILE
2195 # endif
2196 #endif
2197 #if !defined(IFF_CANTCHANGE)
2198 # if defined(HAVE_CONST_IFF_CANTCHANGE)
2199 # define IFF_CANTCHANGE IFF_CANTCHANGE
2200 # endif
2201 #endif
2202 
2203 int rsock_family_to_int(const char *str, long len, int *valp);
2204 
2205 int rsock_socktype_to_int(const char *str, long len, int *valp);
2206 
2207 int rsock_ipproto_to_int(const char *str, long len, int *valp);
2208 
2209 int rsock_unknown_level_to_int(const char *str, long len, int *valp);
2210 
2211 int rsock_ip_level_to_int(const char *str, long len, int *valp);
2212 
2213 int rsock_so_optname_to_int(const char *str, long len, int *valp);
2214 
2215 int rsock_ip_optname_to_int(const char *str, long len, int *valp);
2216 
2217 #ifdef IPPROTO_IPV6
2218 int rsock_ipv6_optname_to_int(const char *str, long len, int *valp);
2219 #endif
2220 
2221 int rsock_tcp_optname_to_int(const char *str, long len, int *valp);
2222 
2223 int rsock_udp_optname_to_int(const char *str, long len, int *valp);
2224 
2225 int rsock_shutdown_how_to_int(const char *str, long len, int *valp);
2226 
2227 int rsock_scm_optname_to_int(const char *str, long len, int *valp);
2228 
2230 
2232 
2234 
2236 
2238 
2240 
2242 
2244 
2246 
2248 
2250 
2252 
2254 
int rsock_ip_optname_to_int(const char *str, long len, int *valp)
Definition: constdefs.c:5815
ID rsock_intern_socktype(int val)
Definition: constdefs.c:6763
int rsock_ip_level_to_int(const char *str, long len, int *valp)
Definition: constdefs.c:5162
ID rsock_intern_ipproto(int val)
Definition: constdefs.c:6772
ID rsock_intern_protocol_family(int val)
Definition: constdefs.c:6754
ID rsock_intern_ipv6_optname(int val)
Definition: constdefs.c:6808
int rsock_family_to_int(const char *str, long len, int *valp)
Definition: constdefs.c:4468
int rsock_udp_optname_to_int(const char *str, long len, int *valp)
Definition: constdefs.c:6579
ID rsock_intern_tcp_optname(int val)
Definition: constdefs.c:6817
ID rsock_intern_local_optname(int val)
Definition: constdefs.c:6844
int rsock_socktype_to_int(const char *str, long len, int *valp)
Definition: constdefs.c:4862
ID rsock_intern_family_noprefix(int val)
Definition: constdefs.c:6745
int rsock_so_optname_to_int(const char *str, long len, int *valp)
Definition: constdefs.c:5376
int rsock_ipproto_to_int(const char *str, long len, int *valp)
Definition: constdefs.c:4932
#define val
ID rsock_intern_iplevel(int val)
Definition: constdefs.c:6781
ID rsock_intern_udp_optname(int val)
Definition: constdefs.c:6826
ID rsock_intern_family(int val)
Definition: constdefs.c:6736
int rsock_unknown_level_to_int(const char *str, long len, int *valp)
Definition: constdefs.c:5140
unsigned long ID
Definition: ruby.h:86
int rsock_tcp_optname_to_int(const char *str, long len, int *valp)
Definition: constdefs.c:6359
register unsigned int len
Definition: zonetab.h:51
int rsock_shutdown_how_to_int(const char *str, long len, int *valp)
Definition: constdefs.c:6601
ID rsock_intern_so_optname(int val)
Definition: constdefs.c:6790
ID rsock_intern_ip_optname(int val)
Definition: constdefs.c:6799
ID rsock_intern_scm_optname(int val)
Definition: constdefs.c:6835
int rsock_scm_optname_to_int(const char *str, long len, int *valp)
Definition: constdefs.c:6641