blob: 734087822ce7dd0d1f0d3b4ed813f66dc0456aa3 [file] [log] [blame]
Guido van Rossum1ce7c6f1997-01-15 19:19:19 +00001# Generated by h2py from /usr/include/netinet/in.h
2
3# Included from sgidefs.h
4_MIPS_ISA_MIPS1 = 1
5_MIPS_ISA_MIPS2 = 2
6_MIPS_ISA_MIPS3 = 3
7_MIPS_ISA_MIPS4 = 4
8_MIPS_SIM_ABI32 = 1
9_MIPS_SIM_NABI32 = 2
10_MIPS_SIM_ABI64 = 3
11
12# Included from sys/endian.h
13LITTLE_ENDIAN = 1234
14BIG_ENDIAN = 4321
15PDP_ENDIAN = 3412
16BYTE_ORDER = BIG_ENDIAN
17BYTE_ORDER = LITTLE_ENDIAN
18def ntohl(x): return (x)
19
20def ntohs(x): return (x)
21
22def htonl(x): return (x)
23
24def htons(x): return (x)
25
26def htonl(x): return ntohl(x)
27
28def htons(x): return ntohs(x)
29
30
31# Included from sys/bsd_types.h
32
33# Included from sys/mkdev.h
34ONBITSMAJOR = 7
35ONBITSMINOR = 8
36OMAXMAJ = 0x7f
37OMAXMIN = 0xff
38NBITSMAJOR = 14
39NBITSMINOR = 18
40MAXMAJ = 0x1ff
41MAXMIN = 0x3ffff
42OLDDEV = 0
43NEWDEV = 1
44MKDEV_VER = NEWDEV
45def major(dev): return __major(MKDEV_VER, dev)
46
47def minor(dev): return __minor(MKDEV_VER, dev)
48
49
50# Included from sys/select.h
51
52# Included from standards.h
53FD_SETSIZE = 1024
54__NBBY = 8
55
56# Included from string.h
57NULL = 0L
58NBBY = 8
59IPPROTO_IP = 0
60IPPROTO_ICMP = 1
61IPPROTO_IGMP = 2
62IPPROTO_GGP = 3
63IPPROTO_IPIP = 4
64IPPROTO_ENCAP = IPPROTO_IPIP
65IPPROTO_ST = 5
66IPPROTO_TCP = 6
67IPPROTO_EGP = 8
68IPPROTO_PUP = 12
69IPPROTO_UDP = 17
70IPPROTO_IDP = 22
71IPPROTO_TP = 29
72IPPROTO_XTP = 36
73IPPROTO_RSVP = 46
74IPPROTO_HELLO = 63
75IPPROTO_ND = 77
76IPPROTO_EON = 80
77IPPROTO_OSPF = 89
78IPPROTO_SWIPE = 94
79IPPROTO_RAW = 255
80IPPROTO_MAX = 256
81IPPORT_RESERVED = 1024
82IPPORT_MAXPORT = 65535
83def IN_CLASSA(i): return (((__int32_t)(i) & 0x80000000) == 0)
84
85IN_CLASSA_NET = 0xff000000
86IN_CLASSA_NSHIFT = 24
87IN_CLASSA_HOST = 0x00ffffff
88IN_CLASSA_MAX = 128
89def IN_CLASSB(i): return (((__int32_t)(i) & 0xc0000000) == 0x80000000)
90
91IN_CLASSB_NET = 0xffff0000
92IN_CLASSB_NSHIFT = 16
93IN_CLASSB_HOST = 0x0000ffff
94IN_CLASSB_MAX = 65536
95def IN_CLASSC(i): return (((__int32_t)(i) & 0xe0000000) == 0xc0000000)
96
97IN_CLASSC_NET = 0xffffff00
98IN_CLASSC_NSHIFT = 8
99IN_CLASSC_HOST = 0x000000ff
100def IN_CLASSD(i): return (((__int32_t)(i) & 0xf0000000) == 0xe0000000)
101
102IN_CLASSD_NET = 0xf0000000
103IN_CLASSD_NSHIFT = 28
104IN_CLASSD_HOST = 0x0fffffff
105def IN_MULTICAST(i): return IN_CLASSD(i)
106
107def IN_EXPERIMENTAL(i): return (((__int32_t)(i) & 0xf0000000) == 0xf0000000)
108
109def IN_BADCLASS(i): return (((__int32_t)(i) & 0xf0000000) == 0xf0000000)
110
111INADDR_NONE = 0xffffffff
112IN_LOOPBACKNET = 127
113IP_OPTIONS = 1
114IP_HDRINCL = 2
115IP_TOS = 3
116IP_TTL = 4
117IP_RECVOPTS = 5
118IP_RECVRETOPTS = 6
119IP_RECVDSTADDR = 7
120IP_RETOPTS = 8
121IP_MULTICAST_IF = 20
122IP_MULTICAST_TTL = 21
123IP_MULTICAST_LOOP = 22
124IP_ADD_MEMBERSHIP = 23
125IP_DROP_MEMBERSHIP = 24
126IP_MULTICAST_VIF = 25
127IP_RSVP_VIF_ON = 26
128IP_RSVP_VIF_OFF = 27
129IP_RSVP_ON = 28
130IP_SENDSRCADDR = 36
131IP_DEFAULT_MULTICAST_TTL = 1
132IP_DEFAULT_MULTICAST_LOOP = 1
133IP_MAX_MEMBERSHIPS = 20