blob: 2c57362fc8df228be0ff5ce22c254282ba931a5f [file] [log] [blame]
Guido van Rossumd44e0c31996-08-08 18:24:58 +00001# Generated by h2py from /usr/include/netinet/in.h
2
3# Included from net/nh.h
4
5# Included from sys/machine.h
6LITTLE_ENDIAN = 1234
7BIG_ENDIAN = 4321
8PDP_ENDIAN = 3412
9BYTE_ORDER = BIG_ENDIAN
10DEFAULT_GPR = 0xDEADBEEF
11MSR_EE = 0x8000
12MSR_PR = 0x4000
13MSR_FP = 0x2000
14MSR_ME = 0x1000
15MSR_FE = 0x0800
16MSR_FE0 = 0x0800
17MSR_SE = 0x0400
18MSR_BE = 0x0200
19MSR_IE = 0x0100
20MSR_FE1 = 0x0100
21MSR_AL = 0x0080
22MSR_IP = 0x0040
23MSR_IR = 0x0020
24MSR_DR = 0x0010
25MSR_PM = 0x0004
26DEFAULT_MSR = (MSR_EE | MSR_ME | MSR_AL | MSR_IR | MSR_DR)
27DEFAULT_USER_MSR = (DEFAULT_MSR | MSR_PR)
28CR_LT = 0x80000000
29CR_GT = 0x40000000
30CR_EQ = 0x20000000
31CR_SO = 0x10000000
32CR_FX = 0x08000000
33CR_FEX = 0x04000000
34CR_VX = 0x02000000
35CR_OX = 0x01000000
36XER_SO = 0x80000000
37XER_OV = 0x40000000
38XER_CA = 0x20000000
39def XER_COMP_BYTE(xer): return ((xer >> 8) & 0x000000FF)
40
41def XER_LENGTH(xer): return (xer & 0x0000007F)
42
43DSISR_IO = 0x80000000
44DSISR_PFT = 0x40000000
45DSISR_LOCK = 0x20000000
46DSISR_FPIO = 0x10000000
47DSISR_PROT = 0x08000000
48DSISR_LOOP = 0x04000000
49DSISR_DRST = 0x04000000
50DSISR_ST = 0x02000000
51DSISR_SEGB = 0x01000000
52DSISR_DABR = 0x00400000
53DSISR_EAR = 0x00100000
54SRR_IS_PFT = 0x40000000
55SRR_IS_ISPEC = 0x20000000
56SRR_IS_IIO = 0x10000000
57SRR_IS_PROT = 0x08000000
58SRR_IS_LOOP = 0x04000000
59SRR_PR_FPEN = 0x00100000
60SRR_PR_INVAL = 0x00080000
61SRR_PR_PRIV = 0x00040000
62SRR_PR_TRAP = 0x00020000
63SRR_PR_IMPRE = 0x00010000
64def ntohl(x): return (x)
65
66def ntohs(x): return (x)
67
68def htonl(x): return (x)
69
70def htons(x): return (x)
71
72IPPROTO_IP = 0
73IPPROTO_ICMP = 1
74IPPROTO_GGP = 3
75IPPROTO_TCP = 6
76IPPROTO_EGP = 8
77IPPROTO_PUP = 12
78IPPROTO_UDP = 17
79IPPROTO_IDP = 22
80IPPROTO_TP = 29
81IPPROTO_LOCAL = 63
82IPPROTO_EON = 80
83IPPROTO_BIP = 0x53
84IPPROTO_RAW = 255
85IPPROTO_MAX = 256
86IPPORT_RESERVED = 1024
87IPPORT_USERRESERVED = 5000
88IPPORT_TIMESERVER = 37
89def IN_CLASSA(i): return (((long)(i) & 0x80000000) == 0)
90
91IN_CLASSA_NET = 0xff000000
92IN_CLASSA_NSHIFT = 24
93IN_CLASSA_HOST = 0x00ffffff
94IN_CLASSA_MAX = 128
95def IN_CLASSB(i): return (((long)(i) & 0xc0000000) == 0x80000000)
96
97IN_CLASSB_NET = 0xffff0000
98IN_CLASSB_NSHIFT = 16
99IN_CLASSB_HOST = 0x0000ffff
100IN_CLASSB_MAX = 65536
101def IN_CLASSC(i): return (((long)(i) & 0xe0000000) == 0xc0000000)
102
103IN_CLASSC_NET = 0xffffff00
104IN_CLASSC_NSHIFT = 8
105IN_CLASSC_HOST = 0x000000ff
106def IN_CLASSD(i): return (((long)(i) & 0xf0000000) == 0xe0000000)
107
108def IN_MULTICAST(i): return IN_CLASSD(i)
109
110def IN_EXPERIMENTAL(i): return (((long)(i) & 0xe0000000) == 0xe0000000)
111
112def IN_BADCLASS(i): return (((long)(i) & 0xf0000000) == 0xf0000000)
113
114INADDR_ANY = 0x00000000
115INADDR_LOOPBACK = 0x7f000001
116INADDR_BROADCAST = 0xffffffff
117INADDR_NONE = 0xffffffff
118IN_LOOPBACKNET = 127
119IP_OPTIONS = 1
120IP_HDRINCL = 2
121IP_TOS = 3
122IP_TTL = 4
123IP_RECVOPTS = 5
124IP_RECVRETOPTS = 6
125IP_RECVDSTADDR = 7
126IP_RETOPTS = 8