• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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_GUARD = 0x10000000
58SRR_IS_PROT = 0x08000000
59SRR_IS_LOOP = 0x04000000
60SRR_PR_FPEN = 0x00100000
61SRR_PR_INVAL = 0x00080000
62SRR_PR_PRIV = 0x00040000
63SRR_PR_TRAP = 0x00020000
64SRR_PR_IMPRE = 0x00010000
65def BUID_7F_SRVAL(raddr): return (0x87F00000 | (((uint)(raddr)) >> 28))
66
67BT_256M = 0x1FFC
68BT_128M = 0x0FFC
69BT_64M = 0x07FC
70BT_32M = 0x03FC
71BT_16M = 0x01FC
72BT_8M = 0x00FC
73BT_4M = 0x007C
74BT_2M = 0x003C
75BT_1M = 0x001C
76BT_512K = 0x000C
77BT_256K = 0x0004
78BT_128K = 0x0000
79BT_NOACCESS = 0x0
80BT_RDONLY = 0x1
81BT_WRITE = 0x2
82BT_VS = 0x2
83BT_VP = 0x1
84def BAT_ESEG(dbatu): return (((uint)(dbatu) >> 28))
85
86MIN_BAT_SIZE = 0x00020000
87MAX_BAT_SIZE = 0x10000000
88def ntohl(x): return (x)
89
90def ntohs(x): return (x)
91
92def htonl(x): return (x)
93
94def htons(x): return (x)
95
96IPPROTO_IP = 0
97IPPROTO_ICMP = 1
98IPPROTO_IGMP = 2
99IPPROTO_GGP = 3
100IPPROTO_TCP = 6
101IPPROTO_EGP = 8
102IPPROTO_PUP = 12
103IPPROTO_UDP = 17
104IPPROTO_IDP = 22
105IPPROTO_TP = 29
106IPPROTO_LOCAL = 63
107IPPROTO_EON = 80
108IPPROTO_BIP = 0x53
109IPPROTO_RAW = 255
110IPPROTO_MAX = 256
111IPPORT_RESERVED = 1024
112IPPORT_USERRESERVED = 5000
113IPPORT_TIMESERVER = 37
114def IN_CLASSA(i): return (((long)(i) & 0x80000000) == 0)
115
116IN_CLASSA_NET = 0xff000000
117IN_CLASSA_NSHIFT = 24
118IN_CLASSA_HOST = 0x00ffffff
119IN_CLASSA_MAX = 128
120def IN_CLASSB(i): return (((long)(i) & 0xc0000000) == 0x80000000)
121
122IN_CLASSB_NET = 0xffff0000
123IN_CLASSB_NSHIFT = 16
124IN_CLASSB_HOST = 0x0000ffff
125IN_CLASSB_MAX = 65536
126def IN_CLASSC(i): return (((long)(i) & 0xe0000000) == 0xc0000000)
127
128IN_CLASSC_NET = 0xffffff00
129IN_CLASSC_NSHIFT = 8
130IN_CLASSC_HOST = 0x000000ff
131def IN_CLASSD(i): return (((long)(i) & 0xf0000000) == 0xe0000000)
132
133def IN_MULTICAST(i): return IN_CLASSD(i)
134
135IN_CLASSD_NET = 0xf0000000
136IN_CLASSD_NSHIFT = 28
137IN_CLASSD_HOST = 0x0fffffff
138INADDR_UNSPEC_GROUP = 0xe0000000
139INADDR_ALLHOSTS_GROUP = 0xe0000001
140INADDR_MAX_LOCAL_GROUP = 0xe00000ff
141def IN_EXPERIMENTAL(i): return (((long)(i) & 0xe0000000) == 0xe0000000)
142
143def IN_BADCLASS(i): return (((long)(i) & 0xf0000000) == 0xf0000000)
144
145INADDR_ANY = 0x00000000
146INADDR_BROADCAST = 0xffffffff
147INADDR_LOOPBACK = 0x7f000001
148INADDR_NONE = 0xffffffff
149IN_LOOPBACKNET = 127
150IP_OPTIONS = 1
151IP_HDRINCL = 2
152IP_TOS = 3
153IP_TTL = 4
154IP_RECVOPTS = 5
155IP_RECVRETOPTS = 6
156IP_RECVDSTADDR = 7
157IP_RETOPTS = 8
158IP_MULTICAST_IF = 9
159IP_MULTICAST_TTL = 10
160IP_MULTICAST_LOOP = 11
161IP_ADD_MEMBERSHIP = 12
162IP_DROP_MEMBERSHIP = 13
163IP_DEFAULT_MULTICAST_TTL = 1
164IP_DEFAULT_MULTICAST_LOOP = 1
165IP_MAX_MEMBERSHIPS = 20
166