1 # Generated by h2py from /usr/include/netinet/in.h
4 # Included from features.h
10 _POSIX_C_SOURCE
= 199506L
12 _XOPEN_SOURCE_EXTENDED
= 1
13 _LARGEFILE64_SOURCE
= 1
21 _POSIX_C_SOURCE
= 199506L
27 __USE_XOPEN_EXTENDED
= 1
32 __USE_XOPEN_EXTENDED
= 1
35 __USE_FILE_OFFSET64
= 1
42 __STDC_IEC_559_COMPLEX__
= 1
43 __STDC_ISO_10646__
= 200009L
48 # Included from sys/cdefs.h
50 def __PMT(args
): return args
52 def __P(args
): return args
54 def __PMT(args
): return args
56 def __STRING(x
): return #x
62 def __ASMNAME(cname
): return __ASMNAME2 (__USER_LABEL_PREFIX__
, cname
)
64 def __attribute__(xyz
): return
66 def __attribute_format_arg__(x
): return __attribute__ ((__format_arg__ (x
)))
68 def __attribute_format_arg__(x
): return
72 __USE_EXTERN_INLINES
= 1
74 # Included from gnu/stubs.h
76 # Included from stdint.h
79 # Included from bits/wchar.h
81 __WCHAR_MIN
= (-2147483647l - 1l)
82 __WCHAR_MAX
= (2147483647l)
84 # Included from bits/wordsize.h
86 def __INT64_C(c
): return c
## L
88 def __UINT64_C(c
): return c
## UL
90 def __INT64_C(c
): return c
## LL
92 def __UINT64_C(c
): return c
## ULL
95 INT16_MIN
= (-32767-1)
96 INT32_MIN
= (-2147483647-1)
97 INT64_MIN
= (-__INT64_C(9223372036854775807)-1)
100 INT32_MAX
= (2147483647)
101 INT64_MAX
= (__INT64_C(9223372036854775807))
104 UINT64_MAX
= (__UINT64_C(18446744073709551615))
105 INT_LEAST8_MIN
= (-128)
106 INT_LEAST16_MIN
= (-32767-1)
107 INT_LEAST32_MIN
= (-2147483647-1)
108 INT_LEAST64_MIN
= (-__INT64_C(9223372036854775807)-1)
109 INT_LEAST8_MAX
= (127)
110 INT_LEAST16_MAX
= (32767)
111 INT_LEAST32_MAX
= (2147483647)
112 INT_LEAST64_MAX
= (__INT64_C(9223372036854775807))
113 UINT_LEAST8_MAX
= (255)
114 UINT_LEAST16_MAX
= (65535)
115 UINT_LEAST64_MAX
= (__UINT64_C(18446744073709551615))
116 INT_FAST8_MIN
= (-128)
117 INT_FAST16_MIN
= (-9223372036854775807L-1)
118 INT_FAST32_MIN
= (-9223372036854775807L-1)
119 INT_FAST16_MIN
= (-2147483647-1)
120 INT_FAST32_MIN
= (-2147483647-1)
121 INT_FAST64_MIN
= (-__INT64_C(9223372036854775807)-1)
122 INT_FAST8_MAX
= (127)
123 INT_FAST16_MAX
= (9223372036854775807L)
124 INT_FAST32_MAX
= (9223372036854775807L)
125 INT_FAST16_MAX
= (2147483647)
126 INT_FAST32_MAX
= (2147483647)
127 INT_FAST64_MAX
= (__INT64_C(9223372036854775807))
128 UINT_FAST8_MAX
= (255)
129 UINT_FAST64_MAX
= (__UINT64_C(18446744073709551615))
130 INTPTR_MIN
= (-9223372036854775807L-1)
131 INTPTR_MAX
= (9223372036854775807L)
132 INTPTR_MIN
= (-2147483647-1)
133 INTPTR_MAX
= (2147483647)
134 INTMAX_MIN
= (-__INT64_C(9223372036854775807)-1)
135 INTMAX_MAX
= (__INT64_C(9223372036854775807))
136 UINTMAX_MAX
= (__UINT64_C(18446744073709551615))
137 PTRDIFF_MIN
= (-9223372036854775807L-1)
138 PTRDIFF_MAX
= (9223372036854775807L)
139 PTRDIFF_MIN
= (-2147483647-1)
140 PTRDIFF_MAX
= (2147483647)
141 SIG_ATOMIC_MIN
= (-2147483647-1)
142 SIG_ATOMIC_MAX
= (2147483647)
143 WCHAR_MIN
= __WCHAR_MIN
144 WCHAR_MAX
= __WCHAR_MAX
145 def INT8_C(c
): return c
147 def INT16_C(c
): return c
149 def INT32_C(c
): return c
151 def INT64_C(c
): return c
## L
153 def INT64_C(c
): return c
## LL
155 def UINT8_C(c
): return c
## U
157 def UINT16_C(c
): return c
## U
159 def UINT32_C(c
): return c
## U
161 def UINT64_C(c
): return c
## UL
163 def UINT64_C(c
): return c
## ULL
165 def INTMAX_C(c
): return c
## L
167 def UINTMAX_C(c
): return c
## UL
169 def INTMAX_C(c
): return c
## LL
171 def UINTMAX_C(c
): return c
## ULL
174 # Included from bits/types.h
178 # Included from bits/pthreadtypes.h
179 _BITS_PTHREADTYPES_H
= 1
181 # Included from bits/sched.h
186 CLONE_VM
= 0x00000100
187 CLONE_FS
= 0x00000200
188 CLONE_FILES
= 0x00000400
189 CLONE_SIGHAND
= 0x00000800
190 CLONE_PID
= 0x00001000
191 CLONE_PTRACE
= 0x00002000
192 CLONE_VFORK
= 0x00004000
193 __defined_schedparam
= 1
194 def IN_CLASSA(a
): return ((((in_addr_t
)(a
)) & (-2147483648)) == 0)
196 IN_CLASSA_NET
= (-16777216)
197 IN_CLASSA_NSHIFT
= 24
198 IN_CLASSA_HOST
= ((-1) & ~IN_CLASSA_NET
)
200 def IN_CLASSB(a
): return ((((in_addr_t
)(a
)) & (-1073741824)) == (-2147483648))
202 IN_CLASSB_NET
= (-65536)
203 IN_CLASSB_NSHIFT
= 16
204 IN_CLASSB_HOST
= ((-1) & ~IN_CLASSB_NET
)
205 IN_CLASSB_MAX
= 65536
206 def IN_CLASSC(a
): return ((((in_addr_t
)(a
)) & (-536870912)) == (-1073741824))
208 IN_CLASSC_NET
= (-256)
210 IN_CLASSC_HOST
= ((-1) & ~IN_CLASSC_NET
)
211 def IN_CLASSD(a
): return ((((in_addr_t
)(a
)) & (-268435456)) == (-536870912))
213 def IN_MULTICAST(a
): return IN_CLASSD(a
)
215 def IN_EXPERIMENTAL(a
): return ((((in_addr_t
)(a
)) & (-536870912)) == (-536870912))
217 def IN_BADCLASS(a
): return ((((in_addr_t
)(a
)) & (-268435456)) == (-268435456))
221 INET6_ADDRSTRLEN
= 46
223 # Included from bits/socket.h
225 # Included from limits.h
241 LONG_MAX
= 9223372036854775807L
242 LONG_MAX
= 2147483647L
243 LONG_MIN
= (-LONG_MAX
- 1L)
245 # Included from bits/posix1_lim.h
246 _BITS_POSIX1_LIM_H
= 1
247 _POSIX_AIO_LISTIO_MAX
= 2
249 _POSIX_ARG_MAX
= 4096
251 _POSIX_DELAYTIMER_MAX
= 32
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
259 _POSIX_FD_SETSIZE
= _POSIX_OPEN_MAX
261 _POSIX_PATH_MAX
= 256
262 _POSIX_PIPE_BUF
= 512
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
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
278 # Included from bits/local_lim.h
280 # Included from linux/limits.h
293 _POSIX_THREAD_KEYS_MAX
= 128
294 PTHREAD_KEYS_MAX
= 1024
295 _POSIX_THREAD_DESTRUCTOR_ITERATIONS
= 4
296 PTHREAD_DESTRUCTOR_ITERATIONS
= _POSIX_THREAD_DESTRUCTOR_ITERATIONS
297 _POSIX_THREAD_THREADS_MAX
= 64
298 PTHREAD_THREADS_MAX
= 1024
299 AIO_PRIO_DELTA_MAX
= 20
300 PTHREAD_STACK_MIN
= 16384
303 NGROUPS_MAX
= _POSIX_NGROUPS_MAX
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
316 BC_BASE_MAX
= _POSIX2_BC_BASE_MAX
317 BC_DIM_MAX
= _POSIX2_BC_DIM_MAX
318 BC_SCALE_MAX
= _POSIX2_BC_SCALE_MAX
319 BC_STRING_MAX
= _POSIX2_BC_STRING_MAX
320 COLL_WEIGHTS_MAX
= 255
321 EXPR_NEST_MAX
= _POSIX2_EXPR_NEST_MAX
322 LINE_MAX
= _POSIX2_LINE_MAX
323 CHARCLASS_NAME_MAX
= 2048
324 RE_DUP_MAX
= (0x7fff)
326 # Included from bits/xopen_lim.h
329 # Included from bits/stdio_lim.h
337 _XOPEN_IOV_MAX
= _POSIX_UIO_MAXIOV
338 NL_ARGMAX
= _POSIX_ARG_MAX
339 NL_LANGMAX
= _POSIX2_LINE_MAX
378 PF_ROUTE
= PF_NETLINK
389 AF_UNSPEC
= PF_UNSPEC
396 AF_APPLETALK
= PF_APPLETALK
397 AF_NETROM
= PF_NETROM
398 AF_BRIDGE
= PF_BRIDGE
399 AF_ATMPVC
= PF_ATMPVC
403 AF_DECnet
= PF_DECnet
404 AF_NETBEUI
= PF_NETBEUI
405 AF_SECURITY
= PF_SECURITY
407 AF_NETLINK
= PF_NETLINK
409 AF_PACKET
= PF_PACKET
411 AF_ECONET
= PF_ECONET
412 AF_ATMSVC
= PF_ATMSVC
416 AF_WANPIPE
= PF_WANPIPE
417 AF_BLUETOOTH
= PF_BLUETOOTH
428 # Included from bits/sockaddr.h
430 def __SOCKADDR_COMMON(sa_prefix
): return \
433 def CMSG_FIRSTHDR(mhdr
): return \
436 # Included from asm/socket.h
438 # Included from asm/sockios.h
466 SO_SECURITY_AUTHENTICATION
= 22
467 SO_SECURITY_ENCRYPTION_TRANSPORT
= 23
468 SO_SECURITY_ENCRYPTION_NETWORK
= 24
470 SO_ATTACH_FILTER
= 26
471 SO_DETACH_FILTER
= 27
474 SCM_TIMESTAMP
= SO_TIMESTAMP
482 SOCK_MAX
= (SOCK_PACKET
+1)
484 # Included from bits/in.h
500 IP_MULTICAST_TTL
= 33
501 IP_MULTICAST_LOOP
= 34
502 IP_ADD_MEMBERSHIP
= 35
503 IP_DROP_MEMBERSHIP
= 36
504 IP_RECVRETOPTS
= IP_RETOPTS
509 IP_DEFAULT_MULTICAST_TTL
= 1
510 IP_DEFAULT_MULTICAST_LOOP
= 1
511 IP_MAX_MEMBERSHIPS
= 20
522 IPV6_UNICAST_HOPS
= 16
523 IPV6_MULTICAST_IF
= 17
524 IPV6_MULTICAST_HOPS
= 18
525 IPV6_MULTICAST_LOOP
= 19
527 IPV6_LEAVE_GROUP
= 21
528 IPV6_ROUTER_ALERT
= 22
529 IPV6_MTU_DISCOVER
= 23
532 IPV6_RXHOPOPTS
= IPV6_HOPOPTS
533 IPV6_RXDSTOPTS
= IPV6_DSTOPTS
534 IPV6_ADD_MEMBERSHIP
= IPV6_JOIN_GROUP
535 IPV6_DROP_MEMBERSHIP
= IPV6_LEAVE_GROUP
536 IPV6_PMTUDISC_DONT
= 0
537 IPV6_PMTUDISC_WANT
= 1
542 IPV6_RTHDR_STRICT
= 1
543 IPV6_RTHDR_TYPE_0
= 0
545 # Included from endian.h
547 __LITTLE_ENDIAN
= 1234
551 # Included from bits/endian.h
552 __BYTE_ORDER
= __LITTLE_ENDIAN
553 __FLOAT_WORD_ORDER
= __BYTE_ORDER
554 LITTLE_ENDIAN
= __LITTLE_ENDIAN
555 BIG_ENDIAN
= __BIG_ENDIAN
556 PDP_ENDIAN
= __PDP_ENDIAN
557 BYTE_ORDER
= __BYTE_ORDER
559 # Included from bits/byteswap.h
561 def __bswap_constant_16(x
): return \
563 def __bswap_16(x
): return \
565 def __bswap_16(x
): return __bswap_constant_16 (x
)
567 def __bswap_constant_32(x
): return \
569 def __bswap_32(x
): return \
571 def __bswap_32(x
): return \
573 def __bswap_32(x
): return __bswap_constant_32 (x
)
575 def __bswap_constant_64(x
): return \
577 def __bswap_64(x
): return \
579 def ntohl(x
): return (x
)
581 def ntohs(x
): return (x
)
583 def htonl(x
): return (x
)
585 def htons(x
): return (x
)
587 def ntohl(x
): return __bswap_32 (x
)
589 def ntohs(x
): return __bswap_16 (x
)
591 def htonl(x
): return __bswap_32 (x
)
593 def htons(x
): return __bswap_16 (x
)
595 def IN6_IS_ADDR_UNSPECIFIED(a
): return \
597 def IN6_IS_ADDR_LOOPBACK(a
): return \
599 def IN6_IS_ADDR_LINKLOCAL(a
): return \
601 def IN6_IS_ADDR_SITELOCAL(a
): return \
603 def IN6_IS_ADDR_V4MAPPED(a
): return \
605 def IN6_IS_ADDR_V4COMPAT(a
): return \
607 def IN6_IS_ADDR_MC_NODELOCAL(a
): return \
609 def IN6_IS_ADDR_MC_LINKLOCAL(a
): return \
611 def IN6_IS_ADDR_MC_SITELOCAL(a
): return \
613 def IN6_IS_ADDR_MC_ORGLOCAL(a
): return \
615 def IN6_IS_ADDR_MC_GLOBAL(a
): return