1# Generated by h2py from /usr/include/netinet/in.h
2_NETINET_IN_H = 1
3
4# Included from features.h
5_FEATURES_H = 1
6__USE_ANSI = 1
7__FAVOR_BSD = 1
8_ISOC99_SOURCE = 1
9_POSIX_SOURCE = 1
10_POSIX_C_SOURCE = 199506L
11_XOPEN_SOURCE = 600
12_XOPEN_SOURCE_EXTENDED = 1
13_LARGEFILE64_SOURCE = 1
14_BSD_SOURCE = 1
15_SVID_SOURCE = 1
16_BSD_SOURCE = 1
17_SVID_SOURCE = 1
18__USE_ISOC99 = 1
19_POSIX_SOURCE = 1
20_POSIX_C_SOURCE = 2
21_POSIX_C_SOURCE = 199506L
22__USE_POSIX = 1
23__USE_POSIX2 = 1
24__USE_POSIX199309 = 1
25__USE_POSIX199506 = 1
26__USE_XOPEN = 1
27__USE_XOPEN_EXTENDED = 1
28__USE_UNIX98 = 1
29_LARGEFILE_SOURCE = 1
30__USE_XOPEN2K = 1
31__USE_ISOC99 = 1
32__USE_XOPEN_EXTENDED = 1
33__USE_LARGEFILE = 1
34__USE_LARGEFILE64 = 1
35__USE_FILE_OFFSET64 = 1
36__USE_MISC = 1
37__USE_BSD = 1
38__USE_SVID = 1
39__USE_GNU = 1
40__USE_REENTRANT = 1
41__STDC_IEC_559__ = 1
42__STDC_IEC_559_COMPLEX__ = 1
43__STDC_ISO_10646__ = 200009L
44__GNU_LIBRARY__ = 6
45__GLIBC__ = 2
46__GLIBC_MINOR__ = 2
47
48# Included from sys/cdefs.h
49_SYS_CDEFS_H = 1
50def __PMT(args): return args
51
52def __P(args): return args
53
54def __PMT(args): return args
55
56def __STRING(x): return #x
57
58__flexarr = []
59__flexarr = [0]
60__flexarr = []
61__flexarr = [1]
62def __ASMNAME(cname): return __ASMNAME2 (__USER_LABEL_PREFIX__, cname)
63
64def __attribute__(xyz): return
65
66def __attribute_format_arg__(x): return __attribute__ ((__format_arg__ (x)))
67
68def __attribute_format_arg__(x): return
69
70__USE_LARGEFILE = 1
71__USE_LARGEFILE64 = 1
72__USE_EXTERN_INLINES = 1
73
74# Included from gnu/stubs.h
75
76# Included from stdint.h
77_STDINT_H = 1
78
79# Included from bits/wchar.h
80_BITS_WCHAR_H = 1
81__WCHAR_MIN = (-2147483647l - 1l)
82__WCHAR_MAX = (2147483647l)
83
84# Included from bits/wordsize.h
85__WORDSIZE = 32
86def __INT64_C(c): return c ## L
87
88def __UINT64_C(c): return c ## UL
89
90def __INT64_C(c): return c ## LL
91
92def __UINT64_C(c): return c ## ULL
93
94INT8_MIN = (-128)
95INT16_MIN = (-32767-1)
96INT32_MIN = (-2147483647-1)
97INT64_MIN = (-__INT64_C(9223372036854775807)-1)
98INT8_MAX = (127)
99INT16_MAX = (32767)
100INT32_MAX = (2147483647)
101INT64_MAX = (__INT64_C(9223372036854775807))
102UINT8_MAX = (255)
103UINT16_MAX = (65535)
104UINT64_MAX = (__UINT64_C(18446744073709551615))
105INT_LEAST8_MIN = (-128)
106INT_LEAST16_MIN = (-32767-1)
107INT_LEAST32_MIN = (-2147483647-1)
108INT_LEAST64_MIN = (-__INT64_C(9223372036854775807)-1)
109INT_LEAST8_MAX = (127)
110INT_LEAST16_MAX = (32767)
111INT_LEAST32_MAX = (2147483647)
112INT_LEAST64_MAX = (__INT64_C(9223372036854775807))
113UINT_LEAST8_MAX = (255)
114UINT_LEAST16_MAX = (65535)
115UINT_LEAST64_MAX = (__UINT64_C(18446744073709551615))
116INT_FAST8_MIN = (-128)
117INT_FAST16_MIN = (-9223372036854775807L-1)
118INT_FAST32_MIN = (-9223372036854775807L-1)
119INT_FAST16_MIN = (-2147483647-1)
120INT_FAST32_MIN = (-2147483647-1)
121INT_FAST64_MIN = (-__INT64_C(9223372036854775807)-1)
122INT_FAST8_MAX = (127)
123INT_FAST16_MAX = (9223372036854775807L)
124INT_FAST32_MAX = (9223372036854775807L)
125INT_FAST16_MAX = (2147483647)
126INT_FAST32_MAX = (2147483647)
127INT_FAST64_MAX = (__INT64_C(9223372036854775807))
128UINT_FAST8_MAX = (255)
129UINT_FAST64_MAX = (__UINT64_C(18446744073709551615))
130INTPTR_MIN = (-9223372036854775807L-1)
131INTPTR_MAX = (9223372036854775807L)
132INTPTR_MIN = (-2147483647-1)
133INTPTR_MAX = (2147483647)
134INTMAX_MIN = (-__INT64_C(9223372036854775807)-1)
135INTMAX_MAX = (__INT64_C(9223372036854775807))
136UINTMAX_MAX = (__UINT64_C(18446744073709551615))
137PTRDIFF_MIN = (-9223372036854775807L-1)
138PTRDIFF_MAX = (9223372036854775807L)
139PTRDIFF_MIN = (-2147483647-1)
140PTRDIFF_MAX = (2147483647)
141SIG_ATOMIC_MIN = (-2147483647-1)
142SIG_ATOMIC_MAX = (2147483647)
143WCHAR_MIN = __WCHAR_MIN
144WCHAR_MAX = __WCHAR_MAX
145def INT8_C(c): return c
146
147def INT16_C(c): return c
148
149def INT32_C(c): return c
150
151def INT64_C(c): return c ## L
152
153def INT64_C(c): return c ## LL
154
155def UINT8_C(c): return c ## U
156
157def UINT16_C(c): return c ## U
158
159def UINT32_C(c): return c ## U
160
161def UINT64_C(c): return c ## UL
162
163def UINT64_C(c): return c ## ULL
164
165def INTMAX_C(c): return c ## L
166
167def UINTMAX_C(c): return c ## UL
168
169def INTMAX_C(c): return c ## LL
170
171def UINTMAX_C(c): return c ## ULL
172
173
174# Included from bits/types.h
175_BITS_TYPES_H = 1
176__FD_SETSIZE = 1024
177
178# Included from bits/pthreadtypes.h
179_BITS_PTHREADTYPES_H = 1
180
181# Included from bits/sched.h
182SCHED_OTHER = 0
183SCHED_FIFO = 1
184SCHED_RR = 2
185CSIGNAL = 0x000000ff
186CLONE_VM = 0x00000100
187CLONE_FS = 0x00000200
188CLONE_FILES = 0x00000400
189CLONE_SIGHAND = 0x00000800
190CLONE_PID = 0x00001000
191CLONE_PTRACE = 0x00002000
192CLONE_VFORK = 0x00004000
193__defined_schedparam = 1
194def IN_CLASSA(a): return ((((in_addr_t)(a)) & (-2147483648)) == 0)
195
196IN_CLASSA_NET = (-16777216)
197IN_CLASSA_NSHIFT = 24
198IN_CLASSA_HOST = ((-1) & ~IN_CLASSA_NET)
199IN_CLASSA_MAX = 128
200def IN_CLASSB(a): return ((((in_addr_t)(a)) & (-1073741824)) == (-2147483648))
201
202IN_CLASSB_NET = (-65536)
203IN_CLASSB_NSHIFT = 16
204IN_CLASSB_HOST = ((-1) & ~IN_CLASSB_NET)
205IN_CLASSB_MAX = 65536
206def IN_CLASSC(a): return ((((in_addr_t)(a)) & (-536870912)) == (-1073741824))
207
208IN_CLASSC_NET = (-256)
209IN_CLASSC_NSHIFT = 8
210IN_CLASSC_HOST = ((-1) & ~IN_CLASSC_NET)
211def IN_CLASSD(a): return ((((in_addr_t)(a)) & (-268435456)) == (-536870912))
212
213def IN_MULTICAST(a): return IN_CLASSD(a)
214
215def IN_EXPERIMENTAL(a): return ((((in_addr_t)(a)) & (-536870912)) == (-536870912))
216
217def IN_BADCLASS(a): return ((((in_addr_t)(a)) & (-268435456)) == (-268435456))
218
219IN_LOOPBACKNET = 127
220INET_ADDRSTRLEN = 16
221INET6_ADDRSTRLEN = 46
222
223# Included from bits/socket.h
224
225# Included from limits.h
226_LIBC_LIMITS_H_ = 1
227MB_LEN_MAX = 16
228_LIMITS_H = 1
229CHAR_BIT = 8
230SCHAR_MIN = (-128)
231SCHAR_MAX = 127
232UCHAR_MAX = 255
233CHAR_MIN = 0
234CHAR_MAX = UCHAR_MAX
235CHAR_MIN = SCHAR_MIN
236CHAR_MAX = SCHAR_MAX
237SHRT_MIN = (-32768)
238SHRT_MAX = 32767
239USHRT_MAX = 65535
240INT_MAX = 2147483647
241LONG_MAX = 9223372036854775807L
242LONG_MAX = 2147483647L
243LONG_MIN = (-LONG_MAX - 1L)
244
245# Included from bits/posix1_lim.h
246_BITS_POSIX1_LIM_H = 1
247_POSIX_AIO_LISTIO_MAX = 2
248_POSIX_AIO_MAX = 1
249_POSIX_ARG_MAX = 4096
250_POSIX_CHILD_MAX = 6
251_POSIX_DELAYTIMER_MAX = 32
252_POSIX_LINK_MAX = 8
253_POSIX_MAX_CANON = 255
254_POSIX_MAX_INPUT = 255
255_POSIX_MQ_OPEN_MAX = 8
256_POSIX_MQ_PRIO_MAX = 32
257_POSIX_NGROUPS_MAX = 0
258_POSIX_OPEN_MAX = 16
259_POSIX_FD_SETSIZE = _POSIX_OPEN_MAX
260_POSIX_NAME_MAX = 14
261_POSIX_PATH_MAX = 256
262_POSIX_PIPE_BUF = 512
263_POSIX_RTSIG_MAX = 8
264_POSIX_SEM_NSEMS_MAX = 256
265_POSIX_SEM_VALUE_MAX = 32767
266_POSIX_SIGQUEUE_MAX = 32
267_POSIX_SSIZE_MAX = 32767
268_POSIX_STREAM_MAX = 8
269_POSIX_TZNAME_MAX = 6
270_POSIX_QLIMIT = 1
271_POSIX_HIWAT = _POSIX_PIPE_BUF
272_POSIX_UIO_MAXIOV = 16
273_POSIX_TTY_NAME_MAX = 9
274_POSIX_TIMER_MAX = 32
275_POSIX_LOGIN_NAME_MAX = 9
276_POSIX_CLOCKRES_MIN = 20000000
277
278# Included from bits/local_lim.h
279
280# Included from linux/limits.h
281NR_OPEN = 1024
282NGROUPS_MAX = 32
283ARG_MAX = 131072
284CHILD_MAX = 999
285OPEN_MAX = 256
286LINK_MAX = 127
287MAX_CANON = 255
288MAX_INPUT = 255
289NAME_MAX = 255
290PATH_MAX = 4096
291PIPE_BUF = 4096
292RTSIG_MAX = 32
293_POSIX_THREAD_KEYS_MAX = 128
294PTHREAD_KEYS_MAX = 1024
295_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
296PTHREAD_DESTRUCTOR_ITERATIONS = _POSIX_THREAD_DESTRUCTOR_ITERATIONS
297_POSIX_THREAD_THREADS_MAX = 64
298PTHREAD_THREADS_MAX = 1024
299AIO_PRIO_DELTA_MAX = 20
300PTHREAD_STACK_MIN = 16384
301TIMER_MAX = 256
302SSIZE_MAX = LONG_MAX
303NGROUPS_MAX = _POSIX_NGROUPS_MAX
304
305# Included from bits/posix2_lim.h
306_BITS_POSIX2_LIM_H = 1
307_POSIX2_BC_BASE_MAX = 99
308_POSIX2_BC_DIM_MAX = 2048
309_POSIX2_BC_SCALE_MAX = 99
310_POSIX2_BC_STRING_MAX = 1000
311_POSIX2_COLL_WEIGHTS_MAX = 2
312_POSIX2_EXPR_NEST_MAX = 32
313_POSIX2_LINE_MAX = 2048
314_POSIX2_RE_DUP_MAX = 255
315_POSIX2_CHARCLASS_NAME_MAX = 14
316BC_BASE_MAX = _POSIX2_BC_BASE_MAX
317BC_DIM_MAX = _POSIX2_BC_DIM_MAX
318BC_SCALE_MAX = _POSIX2_BC_SCALE_MAX
319BC_STRING_MAX = _POSIX2_BC_STRING_MAX
320COLL_WEIGHTS_MAX = 255
321EXPR_NEST_MAX = _POSIX2_EXPR_NEST_MAX
322LINE_MAX = _POSIX2_LINE_MAX
323CHARCLASS_NAME_MAX = 2048
324RE_DUP_MAX = (0x7fff)
325
326# Included from bits/xopen_lim.h
327_XOPEN_LIM_H = 1
328
329# Included from bits/stdio_lim.h
330L_tmpnam = 20
331TMP_MAX = 238328
332FILENAME_MAX = 4096
333L_ctermid = 9
334L_cuserid = 9
335FOPEN_MAX = 16
336IOV_MAX = 1024
337_XOPEN_IOV_MAX = _POSIX_UIO_MAXIOV
338NL_ARGMAX = _POSIX_ARG_MAX
339NL_LANGMAX = _POSIX2_LINE_MAX
340NL_MSGMAX = INT_MAX
341NL_NMAX = INT_MAX
342NL_SETMAX = INT_MAX
343NL_TEXTMAX = INT_MAX
344NZERO = 20
345WORD_BIT = 16
346WORD_BIT = 32
347WORD_BIT = 64
348WORD_BIT = 16
349WORD_BIT = 32
350WORD_BIT = 64
351WORD_BIT = 32
352LONG_BIT = 32
353LONG_BIT = 64
354LONG_BIT = 32
355LONG_BIT = 64
356LONG_BIT = 64
357LONG_BIT = 32
358from TYPES import *
359PF_UNSPEC = 0
360PF_LOCAL = 1
361PF_UNIX = PF_LOCAL
362PF_FILE = PF_LOCAL
363PF_INET = 2
364PF_AX25 = 3
365PF_IPX = 4
366PF_APPLETALK = 5
367PF_NETROM = 6
368PF_BRIDGE = 7
369PF_ATMPVC = 8
370PF_X25 = 9
371PF_INET6 = 10
372PF_ROSE = 11
373PF_DECnet = 12
374PF_NETBEUI = 13
375PF_SECURITY = 14
376PF_KEY = 15
377PF_NETLINK = 16
378PF_ROUTE = PF_NETLINK
379PF_PACKET = 17
380PF_ASH = 18
381PF_ECONET = 19
382PF_ATMSVC = 20
383PF_SNA = 22
384PF_IRDA = 23
385PF_PPPOX = 24
386PF_WANPIPE = 25
387PF_BLUETOOTH = 31
388PF_MAX = 32
389AF_UNSPEC = PF_UNSPEC
390AF_LOCAL = PF_LOCAL
391AF_UNIX = PF_UNIX
392AF_FILE = PF_FILE
393AF_INET = PF_INET
394AF_AX25 = PF_AX25
395AF_IPX = PF_IPX
396AF_APPLETALK = PF_APPLETALK
397AF_NETROM = PF_NETROM
398AF_BRIDGE = PF_BRIDGE
399AF_ATMPVC = PF_ATMPVC
400AF_X25 = PF_X25
401AF_INET6 = PF_INET6
402AF_ROSE = PF_ROSE
403AF_DECnet = PF_DECnet
404AF_NETBEUI = PF_NETBEUI
405AF_SECURITY = PF_SECURITY
406AF_KEY = PF_KEY
407AF_NETLINK = PF_NETLINK
408AF_ROUTE = PF_ROUTE
409AF_PACKET = PF_PACKET
410AF_ASH = PF_ASH
411AF_ECONET = PF_ECONET
412AF_ATMSVC = PF_ATMSVC
413AF_SNA = PF_SNA
414AF_IRDA = PF_IRDA
415AF_PPPOX = PF_PPPOX
416AF_WANPIPE = PF_WANPIPE
417AF_BLUETOOTH = PF_BLUETOOTH
418AF_MAX = PF_MAX
419SOL_RAW = 255
420SOL_DECNET = 261
421SOL_X25 = 262
422SOL_PACKET = 263
423SOL_ATM = 264
424SOL_AAL = 265
425SOL_IRDA = 266
426SOMAXCONN = 128
427
428# Included from bits/sockaddr.h
429_BITS_SOCKADDR_H = 1
430def __SOCKADDR_COMMON(sa_prefix): return \
431
432_SS_SIZE = 128
433def CMSG_FIRSTHDR(mhdr): return \
434
435
436# Included from asm/socket.h
437
438# Included from asm/sockios.h
439FIOSETOWN = 0x8901
440SIOCSPGRP = 0x8902
441FIOGETOWN = 0x8903
442SIOCGPGRP = 0x8904
443SIOCATMARK = 0x8905
444SIOCGSTAMP = 0x8906
445SOL_SOCKET = 1
446SO_DEBUG = 1
447SO_REUSEADDR = 2
448SO_TYPE = 3
449SO_ERROR = 4
450SO_DONTROUTE = 5
451SO_BROADCAST = 6
452SO_SNDBUF = 7
453SO_RCVBUF = 8
454SO_KEEPALIVE = 9
455SO_OOBINLINE = 10
456SO_NO_CHECK = 11
457SO_PRIORITY = 12
458SO_LINGER = 13
459SO_BSDCOMPAT = 14
460SO_PASSCRED = 16
461SO_PEERCRED = 17
462SO_RCVLOWAT = 18
463SO_SNDLOWAT = 19
464SO_RCVTIMEO = 20
465SO_SNDTIMEO = 21
466SO_SECURITY_AUTHENTICATION = 22
467SO_SECURITY_ENCRYPTION_TRANSPORT = 23
468SO_SECURITY_ENCRYPTION_NETWORK = 24
469SO_BINDTODEVICE = 25
470SO_ATTACH_FILTER = 26
471SO_DETACH_FILTER = 27
472SO_PEERNAME = 28
473SO_TIMESTAMP = 29
474SCM_TIMESTAMP = SO_TIMESTAMP
475SO_ACCEPTCONN = 30
476SOCK_STREAM = 1
477SOCK_DGRAM = 2
478SOCK_RAW = 3
479SOCK_RDM = 4
480SOCK_SEQPACKET = 5
481SOCK_PACKET = 10
482SOCK_MAX = (SOCK_PACKET+1)
483
484# Included from bits/in.h
485IP_TOS = 1
486IP_TTL = 2
487IP_HDRINCL = 3
488IP_OPTIONS = 4
489IP_ROUTER_ALERT = 5
490IP_RECVOPTS = 6
491IP_RETOPTS = 7
492IP_PKTINFO = 8
493IP_PKTOPTIONS = 9
494IP_PMTUDISC = 10
495IP_MTU_DISCOVER = 10
496IP_RECVERR = 11
497IP_RECVTTL = 12
498IP_RECVTOS = 13
499IP_MULTICAST_IF = 32
500IP_MULTICAST_TTL = 33
501IP_MULTICAST_LOOP = 34
502IP_ADD_MEMBERSHIP = 35
503IP_DROP_MEMBERSHIP = 36
504IP_RECVRETOPTS = IP_RETOPTS
505IP_PMTUDISC_DONT = 0
506IP_PMTUDISC_WANT = 1
507IP_PMTUDISC_DO = 2
508SOL_IP = 0
509IP_DEFAULT_MULTICAST_TTL = 1
510IP_DEFAULT_MULTICAST_LOOP = 1
511IP_MAX_MEMBERSHIPS = 20
512IPV6_ADDRFORM = 1
513IPV6_PKTINFO = 2
514IPV6_HOPOPTS = 3
515IPV6_DSTOPTS = 4
516IPV6_RTHDR = 5
517IPV6_PKTOPTIONS = 6
518IPV6_CHECKSUM = 7
519IPV6_HOPLIMIT = 8
520IPV6_NEXTHOP = 9
521IPV6_AUTHHDR = 10
522IPV6_UNICAST_HOPS = 16
523IPV6_MULTICAST_IF = 17
524IPV6_MULTICAST_HOPS = 18
525IPV6_MULTICAST_LOOP = 19
526IPV6_JOIN_GROUP = 20
527IPV6_LEAVE_GROUP = 21
528IPV6_ROUTER_ALERT = 22
529IPV6_MTU_DISCOVER = 23
530IPV6_MTU = 24
531IPV6_RECVERR = 25
532IPV6_RXHOPOPTS = IPV6_HOPOPTS
533IPV6_RXDSTOPTS = IPV6_DSTOPTS
534IPV6_ADD_MEMBERSHIP = IPV6_JOIN_GROUP
535IPV6_DROP_MEMBERSHIP = IPV6_LEAVE_GROUP
536IPV6_PMTUDISC_DONT = 0
537IPV6_PMTUDISC_WANT = 1
538IPV6_PMTUDISC_DO = 2
539SOL_IPV6 = 41
540SOL_ICMPV6 = 58
541IPV6_RTHDR_LOOSE = 0
542IPV6_RTHDR_STRICT = 1
543IPV6_RTHDR_TYPE_0 = 0
544
545# Included from endian.h
546_ENDIAN_H = 1
547__LITTLE_ENDIAN = 1234
548__BIG_ENDIAN = 4321
549__PDP_ENDIAN = 3412
550
551# Included from bits/endian.h
552__BYTE_ORDER = __LITTLE_ENDIAN
553__FLOAT_WORD_ORDER = __BYTE_ORDER
554LITTLE_ENDIAN = __LITTLE_ENDIAN
555BIG_ENDIAN = __BIG_ENDIAN
556PDP_ENDIAN = __PDP_ENDIAN
557BYTE_ORDER = __BYTE_ORDER
558
559# Included from bits/byteswap.h
560_BITS_BYTESWAP_H = 1
561def __bswap_constant_16(x): return \
562
563def __bswap_16(x): return \
564
565def __bswap_16(x): return __bswap_constant_16 (x)
566
567def __bswap_constant_32(x): return \
568
569def __bswap_32(x): return \
570
571def __bswap_32(x): return \
572
573def __bswap_32(x): return __bswap_constant_32 (x)
574
575def __bswap_constant_64(x): return \
576
577def __bswap_64(x): return \
578
579def ntohl(x): return (x)
580
581def ntohs(x): return (x)
582
583def htonl(x): return (x)
584
585def htons(x): return (x)
586
587def ntohl(x): return __bswap_32 (x)
588
589def ntohs(x): return __bswap_16 (x)
590
591def htonl(x): return __bswap_32 (x)
592
593def htons(x): return __bswap_16 (x)
594
595def IN6_IS_ADDR_UNSPECIFIED(a): return \
596
597def IN6_IS_ADDR_LOOPBACK(a): return \
598
599def IN6_IS_ADDR_LINKLOCAL(a): return \
600
601def IN6_IS_ADDR_SITELOCAL(a): return \
602
603def IN6_IS_ADDR_V4MAPPED(a): return \
604
605def IN6_IS_ADDR_V4COMPAT(a): return \
606
607def IN6_IS_ADDR_MC_NODELOCAL(a): return \
608
609def IN6_IS_ADDR_MC_LINKLOCAL(a): return \
610
611def IN6_IS_ADDR_MC_SITELOCAL(a): return \
612
613def IN6_IS_ADDR_MC_ORGLOCAL(a): return \
614
615def IN6_IS_ADDR_MC_GLOBAL(a): return
616