UserString.MutableString has been removed in Python 3.0.
[python.git] / Lib / plat-netbsd1 / IN.py
blob474c51e6d97cde59ef5f66f735279f6572a4b27d
1 # Generated by h2py from /usr/include/netinet/in.h
2 IPPROTO_IP = 0
3 IPPROTO_ICMP = 1
4 IPPROTO_IGMP = 2
5 IPPROTO_GGP = 3
6 IPPROTO_IPIP = 4
7 IPPROTO_TCP = 6
8 IPPROTO_EGP = 8
9 IPPROTO_PUP = 12
10 IPPROTO_UDP = 17
11 IPPROTO_IDP = 22
12 IPPROTO_TP = 29
13 IPPROTO_EON = 80
14 IPPROTO_ENCAP = 98
15 IPPROTO_RAW = 255
16 IPPROTO_MAX = 256
17 IPPORT_RESERVED = 1024
18 IPPORT_USERRESERVED = 5000
19 def __IPADDR(x): return ((u_int32_t)(x))
21 IN_CLASSA_NSHIFT = 24
22 IN_CLASSA_MAX = 128
23 IN_CLASSB_NSHIFT = 16
24 IN_CLASSB_MAX = 65536
25 IN_CLASSC_NSHIFT = 8
26 IN_CLASSD_NSHIFT = 28
27 def IN_MULTICAST(i): return IN_CLASSD(i)
29 IN_LOOPBACKNET = 127
30 IP_OPTIONS = 1
31 IP_HDRINCL = 2
32 IP_TOS = 3
33 IP_TTL = 4
34 IP_RECVOPTS = 5
35 IP_RECVRETOPTS = 6
36 IP_RECVDSTADDR = 7
37 IP_RETOPTS = 8
38 IP_MULTICAST_IF = 9
39 IP_MULTICAST_TTL = 10
40 IP_MULTICAST_LOOP = 11
41 IP_ADD_MEMBERSHIP = 12
42 IP_DROP_MEMBERSHIP = 13
43 IP_RECVIF = 20
44 IP_DEFAULT_MULTICAST_TTL = 1
45 IP_DEFAULT_MULTICAST_LOOP = 1
46 IP_MAX_MEMBERSHIPS = 20
47 IPPROTO_MAXID = (IPPROTO_IDP + 1)
48 IPCTL_FORWARDING = 1
49 IPCTL_SENDREDIRECTS = 2
50 IPCTL_DEFTTL = 3
51 IPCTL_DEFMTU = 4
52 IPCTL_FORWSRCRT = 5
53 IPCTL_DIRECTEDBCAST = 6
54 IPCTL_ALLOWSRCRT = 7
55 IPCTL_MAXID = 8
56 def in_nullhost(x): return ((x).s_addr == INADDR_ANY)