blob: 474c51e6d97cde59ef5f66f735279f6572a4b27d [file] [log] [blame]
Guido van Rossum98ee50b1997-12-03 18:44:57 +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_EGP = 8
9IPPROTO_PUP = 12
10IPPROTO_UDP = 17
11IPPROTO_IDP = 22
12IPPROTO_TP = 29
13IPPROTO_EON = 80
14IPPROTO_ENCAP = 98
15IPPROTO_RAW = 255
16IPPROTO_MAX = 256
17IPPORT_RESERVED = 1024
18IPPORT_USERRESERVED = 5000
19def __IPADDR(x): return ((u_int32_t)(x))
20
21IN_CLASSA_NSHIFT = 24
22IN_CLASSA_MAX = 128
23IN_CLASSB_NSHIFT = 16
24IN_CLASSB_MAX = 65536
25IN_CLASSC_NSHIFT = 8
26IN_CLASSD_NSHIFT = 28
27def IN_MULTICAST(i): return IN_CLASSD(i)
28
29IN_LOOPBACKNET = 127
30IP_OPTIONS = 1
31IP_HDRINCL = 2
32IP_TOS = 3
33IP_TTL = 4
34IP_RECVOPTS = 5
35IP_RECVRETOPTS = 6
36IP_RECVDSTADDR = 7
37IP_RETOPTS = 8
38IP_MULTICAST_IF = 9
39IP_MULTICAST_TTL = 10
40IP_MULTICAST_LOOP = 11
41IP_ADD_MEMBERSHIP = 12
42IP_DROP_MEMBERSHIP = 13
43IP_RECVIF = 20
44IP_DEFAULT_MULTICAST_TTL = 1
45IP_DEFAULT_MULTICAST_LOOP = 1
46IP_MAX_MEMBERSHIPS = 20
47IPPROTO_MAXID = (IPPROTO_IDP + 1)
48IPCTL_FORWARDING = 1
49IPCTL_SENDREDIRECTS = 2
50IPCTL_DEFTTL = 3
51IPCTL_DEFMTU = 4
52IPCTL_FORWSRCRT = 5
53IPCTL_DIRECTEDBCAST = 6
54IPCTL_ALLOWSRCRT = 7
55IPCTL_MAXID = 8
56def in_nullhost(x): return ((x).s_addr == INADDR_ANY)