blob: 86710d13c27772507f1a2fae5be03e9c016c5a3f [file] [log] [blame]
Guido van Rossum9a707e81995-04-05 09:44:56 +00001# 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_GNU_SOURCE = 1
7__USE_ANSI = 1
8__FAVOR_BSD = 1
9_BSD_SOURCE = 1
10_SVID_SOURCE = 1
11_POSIX_SOURCE = 1
12_POSIX_C_SOURCE = 2
13__USE_POSIX = 1
14__USE_POSIX2 = 1
15__USE_MISC = 1
16__USE_BSD = 1
17__USE_SVID = 1
18__USE_GNU = 1
19__GNU_LIBRARY__ = 1
20
21# Included from sys/cdefs.h
22_SYS_CDEFS_H = 1
23def __P(args): return args
24
25def __P(args): return args
26
27def __P(args): return ()
28
29def __STRING(x): return #x
30
31def __STRING(x): return "x"
32
33
34# Included from sys/socket.h
35
36# Included from linux/socket.h
37
Guido van Rossum15c4fec1996-01-26 17:43:46 +000038# Included from asm/socket.h
Guido van Rossum9a707e81995-04-05 09:44:56 +000039FIOSETOWN = 0x8901
40SIOCSPGRP = 0x8902
41FIOGETOWN = 0x8903
42SIOCGPGRP = 0x8904
43SIOCATMARK = 0x8905
44SIOCGSTAMP = 0x8906
Guido van Rossum15c4fec1996-01-26 17:43:46 +000045SOL_SOCKET = 1
46SO_DEBUG = 1
47SO_REUSEADDR = 2
48SO_TYPE = 3
49SO_ERROR = 4
50SO_DONTROUTE = 5
51SO_BROADCAST = 6
52SO_SNDBUF = 7
53SO_RCVBUF = 8
54SO_KEEPALIVE = 9
55SO_OOBINLINE = 10
56SO_NO_CHECK = 11
57SO_PRIORITY = 12
58SO_LINGER = 13
59
60# Included from linux/sockios.h
Guido van Rossum9a707e81995-04-05 09:44:56 +000061SIOCADDRT = 0x890B
62SIOCDELRT = 0x890C
63SIOCGIFNAME = 0x8910
64SIOCSIFLINK = 0x8911
65SIOCGIFCONF = 0x8912
66SIOCGIFFLAGS = 0x8913
67SIOCSIFFLAGS = 0x8914
68SIOCGIFADDR = 0x8915
69SIOCSIFADDR = 0x8916
70SIOCGIFDSTADDR = 0x8917
71SIOCSIFDSTADDR = 0x8918
72SIOCGIFBRDADDR = 0x8919
73SIOCSIFBRDADDR = 0x891a
74SIOCGIFNETMASK = 0x891b
75SIOCSIFNETMASK = 0x891c
76SIOCGIFMETRIC = 0x891d
77SIOCSIFMETRIC = 0x891e
78SIOCGIFMEM = 0x891f
79SIOCSIFMEM = 0x8920
80SIOCGIFMTU = 0x8921
81SIOCSIFMTU = 0x8922
Guido van Rossum9a707e81995-04-05 09:44:56 +000082SIOCSIFHWADDR = 0x8924
83SIOCGIFENCAP = 0x8925
84SIOCSIFENCAP = 0x8926
85SIOCGIFHWADDR = 0x8927
86SIOCGIFSLAVE = 0x8929
87SIOCSIFSLAVE = 0x8930
88SIOCADDMULTI = 0x8931
89SIOCDELMULTI = 0x8932
Guido van Rossum15c4fec1996-01-26 17:43:46 +000090OLD_SIOCDARP = 0x8950
91OLD_SIOCGARP = 0x8951
92OLD_SIOCSARP = 0x8952
93SIOCDARP = 0x8953
94SIOCGARP = 0x8954
95SIOCSARP = 0x8955
Guido van Rossum9a707e81995-04-05 09:44:56 +000096SIOCDRARP = 0x8960
97SIOCGRARP = 0x8961
98SIOCSRARP = 0x8962
99SIOCGIFMAP = 0x8970
100SIOCSIFMAP = 0x8971
101SIOCDEVPRIVATE = 0x89F0
102SIOCPROTOPRIVATE = 0x89E0
Guido van Rossum15c4fec1996-01-26 17:43:46 +0000103
104# Included from linux/uio.h
105MAX_IOVEC = 8
Guido van Rossum9a707e81995-04-05 09:44:56 +0000106SOCK_STREAM = 1
107SOCK_DGRAM = 2
108SOCK_RAW = 3
109SOCK_RDM = 4
110SOCK_SEQPACKET = 5
111SOCK_PACKET = 10
112AF_UNSPEC = 0
113AF_UNIX = 1
114AF_INET = 2
115AF_AX25 = 3
116AF_IPX = 4
117AF_APPLETALK = 5
Guido van Rossum15c4fec1996-01-26 17:43:46 +0000118AF_NETROM = 6
119AF_BRIDGE = 7
120AF_AAL5 = 8
121AF_X25 = 9
122AF_INET6 = 10
123AF_MAX = 12
Guido van Rossum9a707e81995-04-05 09:44:56 +0000124PF_UNSPEC = AF_UNSPEC
125PF_UNIX = AF_UNIX
126PF_INET = AF_INET
127PF_AX25 = AF_AX25
128PF_IPX = AF_IPX
129PF_APPLETALK = AF_APPLETALK
Guido van Rossum15c4fec1996-01-26 17:43:46 +0000130PF_NETROM = AF_NETROM
131PF_BRIDGE = AF_BRIDGE
132PF_AAL5 = AF_AAL5
133PF_X25 = AF_X25
134PF_INET6 = AF_INET6
Guido van Rossum9a707e81995-04-05 09:44:56 +0000135PF_MAX = AF_MAX
Guido van Rossum15c4fec1996-01-26 17:43:46 +0000136SOMAXCONN = 128
Guido van Rossum9a707e81995-04-05 09:44:56 +0000137MSG_OOB = 1
138MSG_PEEK = 2
139MSG_DONTROUTE = 4
Guido van Rossum9a707e81995-04-05 09:44:56 +0000140SOL_IP = 0
141SOL_IPX = 256
142SOL_AX25 = 257
143SOL_ATALK = 258
Guido van Rossum15c4fec1996-01-26 17:43:46 +0000144SOL_NETROM = 259
Guido van Rossum9a707e81995-04-05 09:44:56 +0000145SOL_TCP = 6
146SOL_UDP = 17
Guido van Rossum9a707e81995-04-05 09:44:56 +0000147IP_TOS = 1
148IPTOS_LOWDELAY = 0x10
149IPTOS_THROUGHPUT = 0x08
150IPTOS_RELIABILITY = 0x04
151IP_TTL = 2
Guido van Rossum15c4fec1996-01-26 17:43:46 +0000152IP_HDRINCL = 3
Guido van Rossum9a707e81995-04-05 09:44:56 +0000153IP_OPTIONS = 4
154IP_MULTICAST_IF = 32
155IP_MULTICAST_TTL = 33
156IP_MULTICAST_LOOP = 34
157IP_ADD_MEMBERSHIP = 35
158IP_DROP_MEMBERSHIP = 36
159IP_DEFAULT_MULTICAST_TTL = 1
160IP_DEFAULT_MULTICAST_LOOP = 1
161IP_MAX_MEMBERSHIPS = 20
162IPX_TYPE = 1
163TCP_NODELAY = 1
164TCP_MAXSEG = 2
165SOPRI_INTERACTIVE = 0
166SOPRI_NORMAL = 1
167SOPRI_BACKGROUND = 2
Guido van Rossum15c4fec1996-01-26 17:43:46 +0000168
169# Included from sys/types.h
170
171# Included from linux/types.h
172__FD_SETSIZE = 256
173
174# Included from asm/types.h
175def __FD_ZERO(fdsetp): return \
176
177
178# Included from sys/bitypes.h
179
180# Included from pthread/mit/posix.h
181
182# Included from pthread/mit/types.h
183
184# Included from pthread/mit/xtypes.h
185
186# Included from pthread/mit/sys/types.h
Guido van Rossum9a707e81995-04-05 09:44:56 +0000187IMPLINK_IP = 155
188IMPLINK_LOWEXPER = 156
189IMPLINK_HIGHEXPER = 158
190
191# Included from linux/in.h
192__SOCK_SIZE__ = 16
193IN_CLASSA_NET = 0xff000000
194IN_CLASSA_NSHIFT = 24
195IN_CLASSA_HOST = (0xffffffff & ~IN_CLASSA_NET)
196IN_CLASSA_MAX = 128
197IN_CLASSB_NET = 0xffff0000
198IN_CLASSB_NSHIFT = 16
199IN_CLASSB_HOST = (0xffffffff & ~IN_CLASSB_NET)
200IN_CLASSB_MAX = 65536
201IN_CLASSC_NET = 0xffffff00
202IN_CLASSC_NSHIFT = 8
203IN_CLASSC_HOST = (0xffffffff & ~IN_CLASSC_NET)
204def IN_MULTICAST(a): return IN_CLASSD(a)
205
206IN_MULTICAST_NET = 0xF0000000
207INADDR_NONE = 0xffffffff
208IN_LOOPBACKNET = 127
209INADDR_LOOPBACK = 0x7f000001
210INADDR_UNSPEC_GROUP = 0xe0000000
211INADDR_ALLHOSTS_GROUP = 0xe0000001
212INADDR_MAX_LOCAL_GROUP = 0xe00000ff
213
214# Included from asm/byteorder.h
Guido van Rossum15c4fec1996-01-26 17:43:46 +0000215__LITTLE_ENDIAN = 1234
Guido van Rossum9a707e81995-04-05 09:44:56 +0000216def __constant_ntohl(x): return \
217
218def __constant_ntohs(x): return \
219
220def __htonl(x): return __ntohl(x)
221
222def __htons(x): return __ntohs(x)
223
224def __constant_htonl(x): return __constant_ntohl(x)
225
226def __constant_htons(x): return __constant_ntohs(x)
227
228def ntohl(x): return \
229
230def ntohs(x): return \
231
232def htonl(x): return \
233
234def htons(x): return \
235
Guido van Rossum15c4fec1996-01-26 17:43:46 +0000236def LOOPBACK(x): return (((x) & htonl(0xff000000)) == htonl(0x7f000000))
237
238def MULTICAST(x): return (((x) & htonl(0xf0000000)) == htonl(0xe0000000))
239