Mention Giampolo R's new FTP TLS support in the what's new file
[python.git] / Lib / plat-irix5 / IN.py
blob8f5817676fcfc700208bf4b1fdc02ef76f78d7b4
1 # Generated by h2py from /usr/include/netinet/in.h
2 from warnings import warnpy3k
3 warnpy3k("the IN module has been removed in Python 3.0", stacklevel=2)
4 del warnpy3k
6 # Included from sys/endian.h
7 LITTLE_ENDIAN = 1234
8 BIG_ENDIAN = 4321
9 PDP_ENDIAN = 3412
10 BYTE_ORDER = BIG_ENDIAN
11 BYTE_ORDER = LITTLE_ENDIAN
12 def ntohl(x): return (x)
14 def ntohs(x): return (x)
16 def htonl(x): return (x)
18 def htons(x): return (x)
20 def htonl(x): return ntohl(x)
22 def htons(x): return ntohs(x)
25 # Included from sys/bsd_types.h
27 # Included from sys/mkdev.h
28 ONBITSMAJOR = 7
29 ONBITSMINOR = 8
30 OMAXMAJ = 0x7f
31 OMAXMIN = 0xff
32 NBITSMAJOR = 14
33 NBITSMINOR = 18
34 MAXMAJ = 0x1ff
35 MAXMIN = 0x3ffff
36 OLDDEV = 0
37 NEWDEV = 1
38 MKDEV_VER = NEWDEV
39 def major(dev): return __major(MKDEV_VER, dev)
41 def minor(dev): return __minor(MKDEV_VER, dev)
44 # Included from sys/select.h
45 FD_SETSIZE = 1024
46 NBBY = 8
47 IPPROTO_IP = 0
48 IPPROTO_ICMP = 1
49 IPPROTO_IGMP = 2
50 IPPROTO_GGP = 3
51 IPPROTO_ENCAP = 4
52 IPPROTO_TCP = 6
53 IPPROTO_EGP = 8
54 IPPROTO_PUP = 12
55 IPPROTO_UDP = 17
56 IPPROTO_IDP = 22
57 IPPROTO_TP = 29
58 IPPROTO_XTP = 36
59 IPPROTO_HELLO = 63
60 IPPROTO_ND = 77
61 IPPROTO_EON = 80
62 IPPROTO_RAW = 255
63 IPPROTO_MAX = 256
64 IPPORT_RESERVED = 1024
65 IPPORT_USERRESERVED = 5000
66 IPPORT_MAXPORT = 65535
67 def IN_CLASSA(i): return (((long)(i) & 0x80000000) == 0)
69 IN_CLASSA_NET = 0xff000000
70 IN_CLASSA_NSHIFT = 24
71 IN_CLASSA_HOST = 0x00ffffff
72 IN_CLASSA_MAX = 128
73 def IN_CLASSB(i): return (((long)(i) & 0xc0000000) == 0x80000000)
75 IN_CLASSB_NET = 0xffff0000
76 IN_CLASSB_NSHIFT = 16
77 IN_CLASSB_HOST = 0x0000ffff
78 IN_CLASSB_MAX = 65536
79 def IN_CLASSC(i): return (((long)(i) & 0xe0000000) == 0xc0000000)
81 IN_CLASSC_NET = 0xffffff00
82 IN_CLASSC_NSHIFT = 8
83 IN_CLASSC_HOST = 0x000000ff
84 def IN_CLASSD(i): return (((long)(i) & 0xf0000000) == 0xe0000000)
86 IN_CLASSD_NET = 0xf0000000
87 IN_CLASSD_NSHIFT = 28
88 IN_CLASSD_HOST = 0x0fffffff
89 def IN_MULTICAST(i): return IN_CLASSD(i)
91 def IN_EXPERIMENTAL(i): return (((long)(i) & 0xf0000000) == 0xf0000000)
93 def IN_BADCLASS(i): return (((long)(i) & 0xf0000000) == 0xf0000000)
95 INADDR_ANY = 0x00000000
96 INADDR_BROADCAST = 0xffffffff
97 INADDR_LOOPBACK = 0x7F000001
98 INADDR_UNSPEC_GROUP = 0xe0000000
99 INADDR_ALLHOSTS_GROUP = 0xe0000001
100 INADDR_MAX_LOCAL_GROUP = 0xe00000ff
101 INADDR_NONE = 0xffffffff
102 IN_LOOPBACKNET = 127
103 IP_OPTIONS = 1
104 IP_MULTICAST_IF = 2
105 IP_MULTICAST_TTL = 3
106 IP_MULTICAST_LOOP = 4
107 IP_ADD_MEMBERSHIP = 5
108 IP_DROP_MEMBERSHIP = 6
109 IP_HDRINCL = 7
110 IP_TOS = 8
111 IP_TTL = 9
112 IP_RECVOPTS = 10
113 IP_RECVRETOPTS = 11
114 IP_RECVDSTADDR = 12
115 IP_RETOPTS = 13
116 IP_OPTIONS = 1
117 IP_HDRINCL = 2
118 IP_TOS = 3
119 IP_TTL = 4
120 IP_RECVOPTS = 5
121 IP_RECVRETOPTS = 6
122 IP_RECVDSTADDR = 7
123 IP_RETOPTS = 8
124 IP_MULTICAST_IF = 20
125 IP_MULTICAST_TTL = 21
126 IP_MULTICAST_LOOP = 22
127 IP_ADD_MEMBERSHIP = 23
128 IP_DROP_MEMBERSHIP = 24
129 IRIX4_IP_OPTIONS = 1
130 IRIX4_IP_MULTICAST_IF = 2
131 IRIX4_IP_MULTICAST_TTL = 3
132 IRIX4_IP_MULTICAST_LOOP = 4
133 IRIX4_IP_ADD_MEMBERSHIP = 5
134 IRIX4_IP_DROP_MEMBERSHIP = 6
135 IRIX4_IP_HDRINCL = 7
136 IRIX4_IP_TOS = 8
137 IRIX4_IP_TTL = 9
138 IRIX4_IP_RECVOPTS = 10
139 IRIX4_IP_RECVRETOPTS = 11
140 IRIX4_IP_RECVDSTADDR = 12
141 IRIX4_IP_RETOPTS = 13
142 IP_DEFAULT_MULTICAST_TTL = 1
143 IP_DEFAULT_MULTICAST_LOOP = 1
144 IP_MAX_MEMBERSHIPS = 20