1 # Generated by h2py from /usr/include/netinet/in.h
3 # Included from net/nh.h
5 # Included from sys/machine.h
9 BYTE_ORDER
= BIG_ENDIAN
10 DEFAULT_GPR
= 0xDEADBEEF
26 DEFAULT_MSR
= (MSR_EE | MSR_ME | MSR_AL | MSR_IR | MSR_DR
)
27 DEFAULT_USER_MSR
= (DEFAULT_MSR | MSR_PR
)
39 def XER_COMP_BYTE(xer
): return ((xer
>> 8) & 0x000000FF)
41 def XER_LENGTH(xer
): return (xer
& 0x0000007F)
44 DSISR_PFT
= 0x40000000
45 DSISR_LOCK
= 0x20000000
46 DSISR_FPIO
= 0x10000000
47 DSISR_PROT
= 0x08000000
48 DSISR_LOOP
= 0x04000000
49 DSISR_DRST
= 0x04000000
51 DSISR_SEGB
= 0x01000000
52 DSISR_DABR
= 0x00400000
53 DSISR_EAR
= 0x00100000
54 SRR_IS_PFT
= 0x40000000
55 SRR_IS_ISPEC
= 0x20000000
56 SRR_IS_IIO
= 0x10000000
57 SRR_IS_GUARD
= 0x10000000
58 SRR_IS_PROT
= 0x08000000
59 SRR_IS_LOOP
= 0x04000000
60 SRR_PR_FPEN
= 0x00100000
61 SRR_PR_INVAL
= 0x00080000
62 SRR_PR_PRIV
= 0x00040000
63 SRR_PR_TRAP
= 0x00020000
64 SRR_PR_IMPRE
= 0x00010000
65 def BUID_7F_SRVAL(raddr
): return (0x87F00000 |
(((uint
)(raddr
)) >> 28))
84 def BAT_ESEG(dbatu
): return (((uint
)(dbatu
) >> 28))
86 MIN_BAT_SIZE
= 0x00020000
87 MAX_BAT_SIZE
= 0x10000000
88 def ntohl(x
): return (x
)
90 def ntohs(x
): return (x
)
92 def htonl(x
): return (x
)
94 def htons(x
): return (x
)
111 IPPORT_RESERVED
= 1024
112 IPPORT_USERRESERVED
= 5000
113 IPPORT_TIMESERVER
= 37
114 def IN_CLASSA(i
): return (((long)(i
) & 0x80000000) == 0)
116 IN_CLASSA_NET
= 0xff000000
117 IN_CLASSA_NSHIFT
= 24
118 IN_CLASSA_HOST
= 0x00ffffff
120 def IN_CLASSB(i
): return (((long)(i
) & 0xc0000000) == 0x80000000)
122 IN_CLASSB_NET
= 0xffff0000
123 IN_CLASSB_NSHIFT
= 16
124 IN_CLASSB_HOST
= 0x0000ffff
125 IN_CLASSB_MAX
= 65536
126 def IN_CLASSC(i
): return (((long)(i
) & 0xe0000000) == 0xc0000000)
128 IN_CLASSC_NET
= 0xffffff00
130 IN_CLASSC_HOST
= 0x000000ff
131 def IN_CLASSD(i
): return (((long)(i
) & 0xf0000000) == 0xe0000000)
133 def IN_MULTICAST(i
): return IN_CLASSD(i
)
135 IN_CLASSD_NET
= 0xf0000000
136 IN_CLASSD_NSHIFT
= 28
137 IN_CLASSD_HOST
= 0x0fffffff
138 INADDR_UNSPEC_GROUP
= 0xe0000000
139 INADDR_ALLHOSTS_GROUP
= 0xe0000001
140 INADDR_MAX_LOCAL_GROUP
= 0xe00000ff
141 def IN_EXPERIMENTAL(i
): return (((long)(i
) & 0xe0000000) == 0xe0000000)
143 def IN_BADCLASS(i
): return (((long)(i
) & 0xf0000000) == 0xf0000000)
145 INADDR_ANY
= 0x00000000
146 INADDR_BROADCAST
= 0xffffffff
147 INADDR_LOOPBACK
= 0x7f000001
148 INADDR_NONE
= 0xffffffff
159 IP_MULTICAST_TTL
= 10
160 IP_MULTICAST_LOOP
= 11
161 IP_ADD_MEMBERSHIP
= 12
162 IP_DROP_MEMBERSHIP
= 13
163 IP_DEFAULT_MULTICAST_TTL
= 1
164 IP_DEFAULT_MULTICAST_LOOP
= 1
165 IP_MAX_MEMBERSHIPS
= 20