|
1 # Generated by h2py from f:/emx/include/netinet/in.h |
|
2 |
|
3 # Included from sys/param.h |
|
4 PAGE_SIZE = 0x1000 |
|
5 HZ = 100 |
|
6 MAXNAMLEN = 260 |
|
7 MAXPATHLEN = 260 |
|
8 def htonl(X): return _swapl(X) |
|
9 |
|
10 def ntohl(X): return _swapl(X) |
|
11 |
|
12 def htons(X): return _swaps(X) |
|
13 |
|
14 def ntohs(X): return _swaps(X) |
|
15 |
|
16 IPPROTO_IP = 0 |
|
17 IPPROTO_ICMP = 1 |
|
18 IPPROTO_IGMP = 2 |
|
19 IPPROTO_GGP = 3 |
|
20 IPPROTO_TCP = 6 |
|
21 IPPROTO_EGP = 8 |
|
22 IPPROTO_PUP = 12 |
|
23 IPPROTO_UDP = 17 |
|
24 IPPROTO_IDP = 22 |
|
25 IPPROTO_TP = 29 |
|
26 IPPROTO_EON = 80 |
|
27 IPPROTO_RAW = 255 |
|
28 IPPROTO_MAX = 256 |
|
29 IPPORT_RESERVED = 1024 |
|
30 IPPORT_USERRESERVED = 5000 |
|
31 def IN_CLASSA(i): return (((long)(i) & 0x80000000) == 0) |
|
32 |
|
33 IN_CLASSA_NET = 0xff000000 |
|
34 IN_CLASSA_NSHIFT = 24 |
|
35 IN_CLASSA_HOST = 0x00ffffff |
|
36 IN_CLASSA_MAX = 128 |
|
37 def IN_CLASSB(i): return (((long)(i) & 0xc0000000) == 0x80000000) |
|
38 |
|
39 IN_CLASSB_NET = 0xffff0000 |
|
40 IN_CLASSB_NSHIFT = 16 |
|
41 IN_CLASSB_HOST = 0x0000ffff |
|
42 IN_CLASSB_MAX = 65536 |
|
43 def IN_CLASSC(i): return (((long)(i) & 0xe0000000) == 0xc0000000) |
|
44 |
|
45 IN_CLASSC_NET = 0xffffff00 |
|
46 IN_CLASSC_NSHIFT = 8 |
|
47 IN_CLASSC_HOST = 0x000000ff |
|
48 def IN_CLASSD(i): return (((long)(i) & 0xf0000000) == 0xe0000000) |
|
49 |
|
50 IN_CLASSD_NET = 0xf0000000 |
|
51 IN_CLASSD_NSHIFT = 28 |
|
52 IN_CLASSD_HOST = 0x0fffffff |
|
53 def IN_MULTICAST(i): return IN_CLASSD(i) |
|
54 |
|
55 def IN_EXPERIMENTAL(i): return (((long)(i) & 0xe0000000) == 0xe0000000) |
|
56 |
|
57 def IN_BADCLASS(i): return (((long)(i) & 0xf0000000) == 0xf0000000) |
|
58 |
|
59 INADDR_ANY = 0x00000000 |
|
60 INADDR_LOOPBACK = 0x7f000001 |
|
61 INADDR_BROADCAST = 0xffffffff |
|
62 INADDR_NONE = 0xffffffff |
|
63 INADDR_UNSPEC_GROUP = 0xe0000000 |
|
64 INADDR_ALLHOSTS_GROUP = 0xe0000001 |
|
65 INADDR_MAX_LOCAL_GROUP = 0xe00000ff |
|
66 IN_LOOPBACKNET = 127 |
|
67 IP_OPTIONS = 1 |
|
68 IP_MULTICAST_IF = 2 |
|
69 IP_MULTICAST_TTL = 3 |
|
70 IP_MULTICAST_LOOP = 4 |
|
71 IP_ADD_MEMBERSHIP = 5 |
|
72 IP_DROP_MEMBERSHIP = 6 |
|
73 IP_HDRINCL = 2 |
|
74 IP_TOS = 3 |
|
75 IP_TTL = 4 |
|
76 IP_RECVOPTS = 5 |
|
77 IP_RECVRETOPTS = 6 |
|
78 IP_RECVDSTADDR = 7 |
|
79 IP_RETOPTS = 8 |
|
80 IP_DEFAULT_MULTICAST_TTL = 1 |
|
81 IP_DEFAULT_MULTICAST_LOOP = 1 |
|
82 IP_MAX_MEMBERSHIPS = 20 |