1 # Generated by h2py from /usr/include/netinet/in.h
8 IPPROTO_IPIP
= IPPROTO_IPV4
65 IPPROTO_KRYPTOLAN
= 65
108 IPPORT_RESERVED
= 1024
109 IPPORT_USERRESERVED
= 5000
110 IPPORT_HIFIRSTAUTO
= 49152
111 IPPORT_HILASTAUTO
= 65535
112 IPPORT_RESERVEDSTART
= 600
113 def IN_CLASSA(i
): return (((u_int32_t
)(i
) & 0x80000000) == 0)
115 IN_CLASSA_NET
= 0xff000000
116 IN_CLASSA_NSHIFT
= 24
117 IN_CLASSA_HOST
= 0x00ffffff
119 def IN_CLASSB(i
): return (((u_int32_t
)(i
) & 0xc0000000) == 0x80000000)
121 IN_CLASSB_NET
= 0xffff0000
122 IN_CLASSB_NSHIFT
= 16
123 IN_CLASSB_HOST
= 0x0000ffff
124 IN_CLASSB_MAX
= 65536
125 def IN_CLASSC(i
): return (((u_int32_t
)(i
) & 0xe0000000) == 0xc0000000)
127 IN_CLASSC_NET
= 0xffffff00
129 IN_CLASSC_HOST
= 0x000000ff
130 def IN_CLASSD(i
): return (((u_int32_t
)(i
) & 0xf0000000) == 0xe0000000)
132 IN_CLASSD_NET
= 0xf0000000
133 IN_CLASSD_NSHIFT
= 28
134 IN_CLASSD_HOST
= 0x0fffffff
135 def IN_MULTICAST(i
): return IN_CLASSD(i
)
137 def IN_EXPERIMENTAL(i
): return (((u_int32_t
)(i
) & 0xf0000000) == 0xf0000000)
139 def IN_BADCLASS(i
): return (((u_int32_t
)(i
) & 0xf0000000) == 0xf0000000)
141 INADDR_NONE
= 0xffffffff
153 IP_MULTICAST_TTL
= 10
154 IP_MULTICAST_LOOP
= 11
155 IP_ADD_MEMBERSHIP
= 12
156 IP_DROP_MEMBERSHIP
= 13
157 IP_MULTICAST_VIF
= 14
172 IP_DUMMYNET_CONFIGURE
= 60
174 IP_DUMMYNET_FLUSH
= 62
176 IP_DEFAULT_MULTICAST_TTL
= 1
177 IP_DEFAULT_MULTICAST_LOOP
= 1
178 IP_MAX_MEMBERSHIPS
= 20
179 IP_PORTRANGE_DEFAULT
= 0
180 IP_PORTRANGE_HIGH
= 1
182 IPPROTO_MAXID
= (IPPROTO_AH
+ 1)
184 IPCTL_SENDREDIRECTS
= 2
188 IPCTL_RTMINEXPIRE
= 6
190 IPCTL_SOURCEROUTE
= 8
191 IPCTL_DIRECTEDBROADCAST
= 9
192 IPCTL_INTRQMAXLEN
= 10
193 IPCTL_INTRQDROPS
= 11
195 IPCTL_ACCEPTSOURCEROUTE
= 13
196 IPCTL_FASTFORWARDING
= 14
201 # Included from netinet6/in6.h
203 # Included from sys/queue.h
204 def SLIST_HEAD_INITIALIZER(head
): return \
206 def SLIST_ENTRY(type): return \
208 def STAILQ_HEAD_INITIALIZER(head
): return \
210 def STAILQ_ENTRY(type): return \
212 def LIST_HEAD_INITIALIZER(head
): return \
214 def LIST_ENTRY(type): return \
216 def TAILQ_HEAD_INITIALIZER(head
): return \
218 def TAILQ_ENTRY(type): return \
220 def CIRCLEQ_ENTRY(type): return \
222 __KAME_VERSION
= "20000701/FreeBSD-current"
223 IPV6PORT_RESERVED
= 1024
224 IPV6PORT_ANONMIN
= 49152
225 IPV6PORT_ANONMAX
= 65535
226 IPV6PORT_RESERVEDMIN
= 600
227 IPV6PORT_RESERVEDMAX
= (IPV6PORT_RESERVED
-1)
228 INET6_ADDRSTRLEN
= 46
229 IPV6_ADDR_INT32_ONE
= 1
230 IPV6_ADDR_INT32_TWO
= 2
231 IPV6_ADDR_INT32_MNL
= 0xff010000
232 IPV6_ADDR_INT32_MLL
= 0xff020000
233 IPV6_ADDR_INT32_SMP
= 0x0000ffff
234 IPV6_ADDR_INT16_ULL
= 0xfe80
235 IPV6_ADDR_INT16_USL
= 0xfec0
236 IPV6_ADDR_INT16_MLL
= 0xff02
237 IPV6_ADDR_INT32_ONE
= 0x01000000
238 IPV6_ADDR_INT32_TWO
= 0x02000000
239 IPV6_ADDR_INT32_MNL
= 0x000001ff
240 IPV6_ADDR_INT32_MLL
= 0x000002ff
241 IPV6_ADDR_INT32_SMP
= 0xffff0000
242 IPV6_ADDR_INT16_ULL
= 0x80fe
243 IPV6_ADDR_INT16_USL
= 0xc0fe
244 IPV6_ADDR_INT16_MLL
= 0x02ff
245 def IN6_IS_ADDR_UNSPECIFIED(a
): return \
247 def IN6_IS_ADDR_LOOPBACK(a
): return \
249 def IN6_IS_ADDR_V4COMPAT(a
): return \
251 def IN6_IS_ADDR_V4MAPPED(a
): return \
253 IPV6_ADDR_SCOPE_NODELOCAL
= 0x01
254 IPV6_ADDR_SCOPE_LINKLOCAL
= 0x02
255 IPV6_ADDR_SCOPE_SITELOCAL
= 0x05
256 IPV6_ADDR_SCOPE_ORGLOCAL
= 0x08
257 IPV6_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
263 def IN6_IS_ADDR_LINKLOCAL(a
): return \
265 def IN6_IS_ADDR_SITELOCAL(a
): return \
267 def IN6_IS_ADDR_MC_NODELOCAL(a
): return \
269 def IN6_IS_ADDR_MC_LINKLOCAL(a
): return \
271 def IN6_IS_ADDR_MC_SITELOCAL(a
): return \
273 def IN6_IS_ADDR_MC_ORGLOCAL(a
): return \
275 def IN6_IS_ADDR_MC_GLOBAL(a
): return \
277 def IN6_IS_ADDR_MC_NODELOCAL(a
): return \
279 def IN6_IS_ADDR_MC_LINKLOCAL(a
): return \
281 def IN6_IS_ADDR_MC_SITELOCAL(a
): return \
283 def IN6_IS_ADDR_MC_ORGLOCAL(a
): return \
285 def IN6_IS_ADDR_MC_GLOBAL(a
): return \
287 def IN6_IS_SCOPE_LINKLOCAL(a
): return \
294 IPV6_SOCKOPT_RESERVED1
= 3
295 IPV6_UNICAST_HOPS
= 4
296 IPV6_MULTICAST_IF
= 9
297 IPV6_MULTICAST_HOPS
= 10
298 IPV6_MULTICAST_LOOP
= 11
300 IPV6_LEAVE_GROUP
= 13
312 IPV6_IPSEC_POLICY
= 28
320 IPV6_RTHDR_STRICT
= 1
321 IPV6_RTHDR_TYPE_0
= 0
322 IPV6_DEFAULT_MULTICAST_HOPS
= 1
323 IPV6_DEFAULT_MULTICAST_LOOP
= 1
324 IPV6_PORTRANGE_DEFAULT
= 0
325 IPV6_PORTRANGE_HIGH
= 1
326 IPV6_PORTRANGE_LOW
= 2
327 IPV6PROTO_MAXID
= (IPPROTO_PIM
+ 1)
328 IPV6CTL_FORWARDING
= 1
329 IPV6CTL_SENDREDIRECTS
= 2
332 IPV6CTL_FORWSRCRT
= 5
336 IPV6CTL_MAXFRAGPACKETS
= 9
337 IPV6CTL_SOURCECHECK
= 10
338 IPV6CTL_SOURCECHECK_LOGINT
= 11
339 IPV6CTL_ACCEPT_RTADV
= 12
340 IPV6CTL_KEEPFAITH
= 13
341 IPV6CTL_LOG_INTERVAL
= 14
342 IPV6CTL_HDRNESTLIMIT
= 15
343 IPV6CTL_DAD_COUNT
= 16
344 IPV6CTL_AUTO_FLOWLABEL
= 17
345 IPV6CTL_DEFMCASTHLIM
= 18
346 IPV6CTL_GIF_HLIM
= 19
347 IPV6CTL_KAME_VERSION
= 20
348 IPV6CTL_USE_DEPRECATED
= 21
349 IPV6CTL_RR_PRUNE
= 22
350 IPV6CTL_MAPPED_ADDR
= 23
351 IPV6CTL_BINDV6ONLY
= 24
352 IPV6CTL_RTEXPIRE
= 25
353 IPV6CTL_RTMINEXPIRE
= 26
354 IPV6CTL_RTMAXCACHE
= 27