blob: bca241884f497a893efce2330a0be49faeceefd4 [file] [log] [blame]
Jeremy Hylton34bef262000-08-31 02:42:11 +00001# Generated by h2py from /usr/include/netinet/in.h
2IPPROTO_IP = 0
3IPPROTO_HOPOPTS = 0
4IPPROTO_ICMP = 1
5IPPROTO_IGMP = 2
6IPPROTO_GGP = 3
7IPPROTO_IPV4 = 4
8IPPROTO_IPIP = IPPROTO_IPV4
9IPPROTO_TCP = 6
10IPPROTO_ST = 7
11IPPROTO_EGP = 8
12IPPROTO_PIGP = 9
13IPPROTO_RCCMON = 10
14IPPROTO_NVPII = 11
15IPPROTO_PUP = 12
16IPPROTO_ARGUS = 13
17IPPROTO_EMCON = 14
18IPPROTO_XNET = 15
19IPPROTO_CHAOS = 16
20IPPROTO_UDP = 17
21IPPROTO_MUX = 18
22IPPROTO_MEAS = 19
23IPPROTO_HMP = 20
24IPPROTO_PRM = 21
25IPPROTO_IDP = 22
26IPPROTO_TRUNK1 = 23
27IPPROTO_TRUNK2 = 24
28IPPROTO_LEAF1 = 25
29IPPROTO_LEAF2 = 26
30IPPROTO_RDP = 27
31IPPROTO_IRTP = 28
32IPPROTO_TP = 29
33IPPROTO_BLT = 30
34IPPROTO_NSP = 31
35IPPROTO_INP = 32
36IPPROTO_SEP = 33
37IPPROTO_3PC = 34
38IPPROTO_IDPR = 35
39IPPROTO_XTP = 36
40IPPROTO_DDP = 37
41IPPROTO_CMTP = 38
42IPPROTO_TPXX = 39
43IPPROTO_IL = 40
44IPPROTO_IPV6 = 41
45IPPROTO_SDRP = 42
46IPPROTO_ROUTING = 43
47IPPROTO_FRAGMENT = 44
48IPPROTO_IDRP = 45
49IPPROTO_RSVP = 46
50IPPROTO_GRE = 47
51IPPROTO_MHRP = 48
52IPPROTO_BHA = 49
53IPPROTO_ESP = 50
54IPPROTO_AH = 51
55IPPROTO_INLSP = 52
56IPPROTO_SWIPE = 53
57IPPROTO_NHRP = 54
58IPPROTO_ICMPV6 = 58
59IPPROTO_NONE = 59
60IPPROTO_DSTOPTS = 60
61IPPROTO_AHIP = 61
62IPPROTO_CFTP = 62
63IPPROTO_HELLO = 63
64IPPROTO_SATEXPAK = 64
65IPPROTO_KRYPTOLAN = 65
66IPPROTO_RVD = 66
67IPPROTO_IPPC = 67
68IPPROTO_ADFS = 68
69IPPROTO_SATMON = 69
70IPPROTO_VISA = 70
71IPPROTO_IPCV = 71
72IPPROTO_CPNX = 72
73IPPROTO_CPHB = 73
74IPPROTO_WSN = 74
75IPPROTO_PVP = 75
76IPPROTO_BRSATMON = 76
77IPPROTO_ND = 77
78IPPROTO_WBMON = 78
79IPPROTO_WBEXPAK = 79
80IPPROTO_EON = 80
81IPPROTO_VMTP = 81
82IPPROTO_SVMTP = 82
83IPPROTO_VINES = 83
84IPPROTO_TTP = 84
85IPPROTO_IGP = 85
86IPPROTO_DGP = 86
87IPPROTO_TCF = 87
88IPPROTO_IGRP = 88
89IPPROTO_OSPFIGP = 89
90IPPROTO_SRPC = 90
91IPPROTO_LARP = 91
92IPPROTO_MTP = 92
93IPPROTO_AX25 = 93
94IPPROTO_IPEIP = 94
95IPPROTO_MICP = 95
96IPPROTO_SCCSP = 96
97IPPROTO_ETHERIP = 97
98IPPROTO_ENCAP = 98
99IPPROTO_APES = 99
100IPPROTO_GMTP = 100
101IPPROTO_IPCOMP = 108
102IPPROTO_PIM = 103
103IPPROTO_PGM = 113
104IPPROTO_DIVERT = 254
105IPPROTO_RAW = 255
106IPPROTO_MAX = 256
107IPPROTO_DONE = 257
108IPPORT_RESERVED = 1024
109IPPORT_USERRESERVED = 5000
110IPPORT_HIFIRSTAUTO = 49152
111IPPORT_HILASTAUTO = 65535
112IPPORT_RESERVEDSTART = 600
113def IN_CLASSA(i): return (((u_int32_t)(i) & 0x80000000) == 0)
114
115IN_CLASSA_NET = 0xff000000
116IN_CLASSA_NSHIFT = 24
117IN_CLASSA_HOST = 0x00ffffff
118IN_CLASSA_MAX = 128
119def IN_CLASSB(i): return (((u_int32_t)(i) & 0xc0000000) == 0x80000000)
120
121IN_CLASSB_NET = 0xffff0000
122IN_CLASSB_NSHIFT = 16
123IN_CLASSB_HOST = 0x0000ffff
124IN_CLASSB_MAX = 65536
125def IN_CLASSC(i): return (((u_int32_t)(i) & 0xe0000000) == 0xc0000000)
126
127IN_CLASSC_NET = 0xffffff00
128IN_CLASSC_NSHIFT = 8
129IN_CLASSC_HOST = 0x000000ff
130def IN_CLASSD(i): return (((u_int32_t)(i) & 0xf0000000) == 0xe0000000)
131
132IN_CLASSD_NET = 0xf0000000
133IN_CLASSD_NSHIFT = 28
134IN_CLASSD_HOST = 0x0fffffff
135def IN_MULTICAST(i): return IN_CLASSD(i)
136
137def IN_EXPERIMENTAL(i): return (((u_int32_t)(i) & 0xf0000000) == 0xf0000000)
138
139def IN_BADCLASS(i): return (((u_int32_t)(i) & 0xf0000000) == 0xf0000000)
140
141INADDR_NONE = 0xffffffff
142IN_LOOPBACKNET = 127
143INET_ADDRSTRLEN = 16
144IP_OPTIONS = 1
145IP_HDRINCL = 2
146IP_TOS = 3
147IP_TTL = 4
148IP_RECVOPTS = 5
149IP_RECVRETOPTS = 6
150IP_RECVDSTADDR = 7
151IP_RETOPTS = 8
152IP_MULTICAST_IF = 9
153IP_MULTICAST_TTL = 10
154IP_MULTICAST_LOOP = 11
155IP_ADD_MEMBERSHIP = 12
156IP_DROP_MEMBERSHIP = 13
157IP_MULTICAST_VIF = 14
158IP_RSVP_ON = 15
159IP_RSVP_OFF = 16
160IP_RSVP_VIF_ON = 17
161IP_RSVP_VIF_OFF = 18
162IP_PORTRANGE = 19
163IP_RECVIF = 20
164IP_IPSEC_POLICY = 21
165IP_FAITH = 22
166IP_FW_ADD = 50
167IP_FW_DEL = 51
168IP_FW_FLUSH = 52
169IP_FW_ZERO = 53
170IP_FW_GET = 54
171IP_FW_RESETLOG = 55
172IP_DUMMYNET_CONFIGURE = 60
173IP_DUMMYNET_DEL = 61
174IP_DUMMYNET_FLUSH = 62
175IP_DUMMYNET_GET = 64
176IP_DEFAULT_MULTICAST_TTL = 1
177IP_DEFAULT_MULTICAST_LOOP = 1
178IP_MAX_MEMBERSHIPS = 20
179IP_PORTRANGE_DEFAULT = 0
180IP_PORTRANGE_HIGH = 1
181IP_PORTRANGE_LOW = 2
182IPPROTO_MAXID = (IPPROTO_AH + 1)
183IPCTL_FORWARDING = 1
184IPCTL_SENDREDIRECTS = 2
185IPCTL_DEFTTL = 3
186IPCTL_DEFMTU = 4
187IPCTL_RTEXPIRE = 5
188IPCTL_RTMINEXPIRE = 6
189IPCTL_RTMAXCACHE = 7
190IPCTL_SOURCEROUTE = 8
191IPCTL_DIRECTEDBROADCAST = 9
192IPCTL_INTRQMAXLEN = 10
193IPCTL_INTRQDROPS = 11
194IPCTL_STATS = 12
195IPCTL_ACCEPTSOURCEROUTE = 13
196IPCTL_FASTFORWARDING = 14
197IPCTL_KEEPFAITH = 15
198IPCTL_GIF_TTL = 16
199IPCTL_MAXID = 17
200
201# Included from netinet6/in6.h
202
203# Included from sys/queue.h
204def SLIST_HEAD_INITIALIZER(head): return \
205
206def SLIST_ENTRY(type): return \
207
208def STAILQ_HEAD_INITIALIZER(head): return \
209
210def STAILQ_ENTRY(type): return \
211
212def LIST_HEAD_INITIALIZER(head): return \
213
214def LIST_ENTRY(type): return \
215
216def TAILQ_HEAD_INITIALIZER(head): return \
217
218def TAILQ_ENTRY(type): return \
219
220def CIRCLEQ_ENTRY(type): return \
221
222__KAME_VERSION = "20000701/FreeBSD-current"
223IPV6PORT_RESERVED = 1024
224IPV6PORT_ANONMIN = 49152
225IPV6PORT_ANONMAX = 65535
226IPV6PORT_RESERVEDMIN = 600
227IPV6PORT_RESERVEDMAX = (IPV6PORT_RESERVED-1)
228INET6_ADDRSTRLEN = 46
229IPV6_ADDR_INT32_ONE = 1
230IPV6_ADDR_INT32_TWO = 2
231IPV6_ADDR_INT32_MNL = 0xff010000
232IPV6_ADDR_INT32_MLL = 0xff020000
233IPV6_ADDR_INT32_SMP = 0x0000ffff
234IPV6_ADDR_INT16_ULL = 0xfe80
235IPV6_ADDR_INT16_USL = 0xfec0
236IPV6_ADDR_INT16_MLL = 0xff02
237IPV6_ADDR_INT32_ONE = 0x01000000
238IPV6_ADDR_INT32_TWO = 0x02000000
239IPV6_ADDR_INT32_MNL = 0x000001ff
240IPV6_ADDR_INT32_MLL = 0x000002ff
241IPV6_ADDR_INT32_SMP = 0xffff0000
242IPV6_ADDR_INT16_ULL = 0x80fe
243IPV6_ADDR_INT16_USL = 0xc0fe
244IPV6_ADDR_INT16_MLL = 0x02ff
245def IN6_IS_ADDR_UNSPECIFIED(a): return \
246
247def IN6_IS_ADDR_LOOPBACK(a): return \
248
249def IN6_IS_ADDR_V4COMPAT(a): return \
250
251def IN6_IS_ADDR_V4MAPPED(a): return \
252
253IPV6_ADDR_SCOPE_NODELOCAL = 0x01
254IPV6_ADDR_SCOPE_LINKLOCAL = 0x02
255IPV6_ADDR_SCOPE_SITELOCAL = 0x05
256IPV6_ADDR_SCOPE_ORGLOCAL = 0x08
257IPV6_ADDR_SCOPE_GLOBAL = 0x0e
258__IPV6_ADDR_SCOPE_NODELOCAL = 0x01
259__IPV6_ADDR_SCOPE_LINKLOCAL = 0x02
260__IPV6_ADDR_SCOPE_SITELOCAL = 0x05
261__IPV6_ADDR_SCOPE_ORGLOCAL = 0x08
262__IPV6_ADDR_SCOPE_GLOBAL = 0x0e
263def IN6_IS_ADDR_LINKLOCAL(a): return \
264
265def IN6_IS_ADDR_SITELOCAL(a): return \
266
267def IN6_IS_ADDR_MC_NODELOCAL(a): return \
268
269def IN6_IS_ADDR_MC_LINKLOCAL(a): return \
270
271def IN6_IS_ADDR_MC_SITELOCAL(a): return \
272
273def IN6_IS_ADDR_MC_ORGLOCAL(a): return \
274
275def IN6_IS_ADDR_MC_GLOBAL(a): return \
276
277def IN6_IS_ADDR_MC_NODELOCAL(a): return \
278
279def IN6_IS_ADDR_MC_LINKLOCAL(a): return \
280
281def IN6_IS_ADDR_MC_SITELOCAL(a): return \
282
283def IN6_IS_ADDR_MC_ORGLOCAL(a): return \
284
285def IN6_IS_ADDR_MC_GLOBAL(a): return \
286
287def IN6_IS_SCOPE_LINKLOCAL(a): return \
288
289IPV6_OPTIONS = 1
290IPV6_RECVOPTS = 5
291IPV6_RECVRETOPTS = 6
292IPV6_RECVDSTADDR = 7
293IPV6_RETOPTS = 8
294IPV6_SOCKOPT_RESERVED1 = 3
295IPV6_UNICAST_HOPS = 4
296IPV6_MULTICAST_IF = 9
297IPV6_MULTICAST_HOPS = 10
298IPV6_MULTICAST_LOOP = 11
299IPV6_JOIN_GROUP = 12
300IPV6_LEAVE_GROUP = 13
301IPV6_PORTRANGE = 14
302ICMP6_FILTER = 18
303IPV6_PKTINFO = 19
304IPV6_HOPLIMIT = 20
305IPV6_NEXTHOP = 21
306IPV6_HOPOPTS = 22
307IPV6_DSTOPTS = 23
308IPV6_RTHDR = 24
309IPV6_PKTOPTIONS = 25
310IPV6_CHECKSUM = 26
311IPV6_BINDV6ONLY = 27
312IPV6_IPSEC_POLICY = 28
313IPV6_FAITH = 29
314IPV6_FW_ADD = 30
315IPV6_FW_DEL = 31
316IPV6_FW_FLUSH = 32
317IPV6_FW_ZERO = 33
318IPV6_FW_GET = 34
319IPV6_RTHDR_LOOSE = 0
320IPV6_RTHDR_STRICT = 1
321IPV6_RTHDR_TYPE_0 = 0
322IPV6_DEFAULT_MULTICAST_HOPS = 1
323IPV6_DEFAULT_MULTICAST_LOOP = 1
324IPV6_PORTRANGE_DEFAULT = 0
325IPV6_PORTRANGE_HIGH = 1
326IPV6_PORTRANGE_LOW = 2
327IPV6PROTO_MAXID = (IPPROTO_PIM + 1)
328IPV6CTL_FORWARDING = 1
329IPV6CTL_SENDREDIRECTS = 2
330IPV6CTL_DEFHLIM = 3
331IPV6CTL_DEFMTU = 4
332IPV6CTL_FORWSRCRT = 5
333IPV6CTL_STATS = 6
334IPV6CTL_MRTSTATS = 7
335IPV6CTL_MRTPROTO = 8
336IPV6CTL_MAXFRAGPACKETS = 9
337IPV6CTL_SOURCECHECK = 10
338IPV6CTL_SOURCECHECK_LOGINT = 11
339IPV6CTL_ACCEPT_RTADV = 12
340IPV6CTL_KEEPFAITH = 13
341IPV6CTL_LOG_INTERVAL = 14
342IPV6CTL_HDRNESTLIMIT = 15
343IPV6CTL_DAD_COUNT = 16
344IPV6CTL_AUTO_FLOWLABEL = 17
345IPV6CTL_DEFMCASTHLIM = 18
346IPV6CTL_GIF_HLIM = 19
347IPV6CTL_KAME_VERSION = 20
348IPV6CTL_USE_DEPRECATED = 21
349IPV6CTL_RR_PRUNE = 22
350IPV6CTL_MAPPED_ADDR = 23
351IPV6CTL_BINDV6ONLY = 24
352IPV6CTL_RTEXPIRE = 25
353IPV6CTL_RTMINEXPIRE = 26
354IPV6CTL_RTMAXCACHE = 27
355IPV6CTL_MAXID = 28