blob: 9f7e0177eb18d0cc5b9c96f2f0c2db3a4c7ce827 [file] [log] [blame]
Guido van Rossume7b6e391998-05-06 15:14:36 +00001# Generated by h2py from /usr/include/netinet/in.h
2IPPROTO_IP = 0
3IPPROTO_ICMP = 1
4IPPROTO_IGMP = 2
5IPPROTO_GGP = 3
6IPPROTO_IPIP = 4
7IPPROTO_TCP = 6
8IPPROTO_ST = 7
9IPPROTO_EGP = 8
10IPPROTO_PIGP = 9
11IPPROTO_RCCMON = 10
12IPPROTO_NVPII = 11
13IPPROTO_PUP = 12
14IPPROTO_ARGUS = 13
15IPPROTO_EMCON = 14
16IPPROTO_XNET = 15
17IPPROTO_CHAOS = 16
18IPPROTO_UDP = 17
19IPPROTO_MUX = 18
20IPPROTO_MEAS = 19
21IPPROTO_HMP = 20
22IPPROTO_PRM = 21
23IPPROTO_IDP = 22
24IPPROTO_TRUNK1 = 23
25IPPROTO_TRUNK2 = 24
26IPPROTO_LEAF1 = 25
27IPPROTO_LEAF2 = 26
28IPPROTO_RDP = 27
29IPPROTO_IRTP = 28
30IPPROTO_TP = 29
31IPPROTO_BLT = 30
32IPPROTO_NSP = 31
33IPPROTO_INP = 32
34IPPROTO_SEP = 33
35IPPROTO_3PC = 34
36IPPROTO_IDPR = 35
37IPPROTO_XTP = 36
38IPPROTO_DDP = 37
39IPPROTO_CMTP = 38
40IPPROTO_TPXX = 39
41IPPROTO_IL = 40
42IPPROTO_SIP = 41
43IPPROTO_SDRP = 42
44IPPROTO_SIPSR = 43
45IPPROTO_SIPFRAG = 44
46IPPROTO_IDRP = 45
47IPPROTO_RSVP = 46
48IPPROTO_GRE = 47
49IPPROTO_MHRP = 48
50IPPROTO_BHA = 49
51IPPROTO_ESP = 50
52IPPROTO_AH = 51
53IPPROTO_INLSP = 52
54IPPROTO_SWIPE = 53
55IPPROTO_NHRP = 54
56IPPROTO_AHIP = 61
57IPPROTO_CFTP = 62
58IPPROTO_HELLO = 63
59IPPROTO_SATEXPAK = 64
60IPPROTO_KRYPTOLAN = 65
61IPPROTO_RVD = 66
62IPPROTO_IPPC = 67
63IPPROTO_ADFS = 68
64IPPROTO_SATMON = 69
65IPPROTO_VISA = 70
66IPPROTO_IPCV = 71
67IPPROTO_CPNX = 72
68IPPROTO_CPHB = 73
69IPPROTO_WSN = 74
70IPPROTO_PVP = 75
71IPPROTO_BRSATMON = 76
72IPPROTO_ND = 77
73IPPROTO_WBMON = 78
74IPPROTO_WBEXPAK = 79
75IPPROTO_EON = 80
76IPPROTO_VMTP = 81
77IPPROTO_SVMTP = 82
78IPPROTO_VINES = 83
79IPPROTO_TTP = 84
80IPPROTO_IGP = 85
81IPPROTO_DGP = 86
82IPPROTO_TCF = 87
83IPPROTO_IGRP = 88
84IPPROTO_OSPFIGP = 89
85IPPROTO_SRPC = 90
86IPPROTO_LARP = 91
87IPPROTO_MTP = 92
88IPPROTO_AX25 = 93
89IPPROTO_IPEIP = 94
90IPPROTO_MICP = 95
91IPPROTO_SCCSP = 96
92IPPROTO_ETHERIP = 97
93IPPROTO_ENCAP = 98
94IPPROTO_APES = 99
95IPPROTO_GMTP = 100
96IPPROTO_DIVERT = 254
97IPPROTO_RAW = 255
98IPPROTO_MAX = 256
99IPPORT_RESERVED = 1024
100IPPORT_USERRESERVED = 5000
101IPPORT_HIFIRSTAUTO = 40000
102IPPORT_HILASTAUTO = 44999
103IPPORT_RESERVEDSTART = 600
104def IN_CLASSA(i): return (((long)(i) & 0x80000000) == 0)
105
106IN_CLASSA_NET = 0xff000000
107IN_CLASSA_NSHIFT = 24
108IN_CLASSA_HOST = 0x00ffffff
109IN_CLASSA_MAX = 128
110def IN_CLASSB(i): return (((long)(i) & 0xc0000000) == 0x80000000)
111
112IN_CLASSB_NET = 0xffff0000
113IN_CLASSB_NSHIFT = 16
114IN_CLASSB_HOST = 0x0000ffff
115IN_CLASSB_MAX = 65536
116def IN_CLASSC(i): return (((long)(i) & 0xe0000000) == 0xc0000000)
117
118IN_CLASSC_NET = 0xffffff00
119IN_CLASSC_NSHIFT = 8
120IN_CLASSC_HOST = 0x000000ff
121def IN_CLASSD(i): return (((long)(i) & 0xf0000000) == 0xe0000000)
122
123IN_CLASSD_NET = 0xf0000000
124IN_CLASSD_NSHIFT = 28
125IN_CLASSD_HOST = 0x0fffffff
126def IN_MULTICAST(i): return IN_CLASSD(i)
127
128def IN_EXPERIMENTAL(i): return (((long)(i) & 0xf0000000) == 0xf0000000)
129
130def IN_BADCLASS(i): return (((long)(i) & 0xf0000000) == 0xf0000000)
131
132INADDR_ANY = 0x00000000
133INADDR_BROADCAST = 0xffffffff
134INADDR_NONE = 0xffffffff
135INADDR_UNSPEC_GROUP = 0xe0000000
136INADDR_ALLHOSTS_GROUP = 0xe0000001
137INADDR_ALLRTRS_GROUP = 0xe0000002
138INADDR_MAX_LOCAL_GROUP = 0xe00000ff
139IN_LOOPBACKNET = 127
140IP_OPTIONS = 1
141IP_HDRINCL = 2
142IP_TOS = 3
143IP_TTL = 4
144IP_RECVOPTS = 5
145IP_RECVRETOPTS = 6
146IP_RECVDSTADDR = 7
147IP_RETOPTS = 8
148IP_MULTICAST_IF = 9
149IP_MULTICAST_TTL = 10
150IP_MULTICAST_LOOP = 11
151IP_ADD_MEMBERSHIP = 12
152IP_DROP_MEMBERSHIP = 13
153IP_MULTICAST_VIF = 14
154IP_RSVP_ON = 15
155IP_RSVP_OFF = 16
156IP_RSVP_VIF_ON = 17
157IP_RSVP_VIF_OFF = 18
158IP_PORTRANGE = 19
159IP_RECVIF = 20
160IP_FW_ADD = 50
161IP_FW_DEL = 51
162IP_FW_FLUSH = 52
163IP_FW_ZERO = 53
164IP_FW_GET = 54
165IP_NAT = 55
166IP_DEFAULT_MULTICAST_TTL = 1
167IP_DEFAULT_MULTICAST_LOOP = 1
168IP_MAX_MEMBERSHIPS = 20
169IP_PORTRANGE_DEFAULT = 0
170IP_PORTRANGE_HIGH = 1
171IP_PORTRANGE_LOW = 2
172IPPROTO_MAXID = (IPPROTO_IDP + 1)
173IPCTL_FORWARDING = 1
174IPCTL_SENDREDIRECTS = 2
175IPCTL_DEFTTL = 3
176IPCTL_DEFMTU = 4
177IPCTL_RTEXPIRE = 5
178IPCTL_RTMINEXPIRE = 6
179IPCTL_RTMAXCACHE = 7
180IPCTL_SOURCEROUTE = 8
181IPCTL_DIRECTEDBROADCAST = 9
182IPCTL_INTRQMAXLEN = 10
183IPCTL_INTRQDROPS = 11
184IPCTL_ACCEPTSOURCEROUTE = 13
185IPCTL_MAXID = 13
186IP_NAT_IN = 0x00000001
187IP_NAT_OUT = 0x00000002