1 # Generated by h2py from f:/emx/include/netinet/in.h
3 # Included from sys/param.h
8 def htonl(X
): return _swapl(X
)
10 def ntohl(X
): return _swapl(X
)
12 def htons(X
): return _swaps(X
)
14 def ntohs(X
): return _swaps(X
)
29 IPPORT_RESERVED
= 1024
30 IPPORT_USERRESERVED
= 5000
31 def IN_CLASSA(i
): return (((long)(i
) & 0x80000000) == 0)
33 IN_CLASSA_NET
= 0xff000000
35 IN_CLASSA_HOST
= 0x00ffffff
37 def IN_CLASSB(i
): return (((long)(i
) & 0xc0000000) == 0x80000000)
39 IN_CLASSB_NET
= 0xffff0000
41 IN_CLASSB_HOST
= 0x0000ffff
43 def IN_CLASSC(i
): return (((long)(i
) & 0xe0000000) == 0xc0000000)
45 IN_CLASSC_NET
= 0xffffff00
47 IN_CLASSC_HOST
= 0x000000ff
48 def IN_CLASSD(i
): return (((long)(i
) & 0xf0000000) == 0xe0000000)
50 IN_CLASSD_NET
= 0xf0000000
52 IN_CLASSD_HOST
= 0x0fffffff
53 def IN_MULTICAST(i
): return IN_CLASSD(i
)
55 def IN_EXPERIMENTAL(i
): return (((long)(i
) & 0xe0000000) == 0xe0000000)
57 def IN_BADCLASS(i
): return (((long)(i
) & 0xf0000000) == 0xf0000000)
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
72 IP_DROP_MEMBERSHIP
= 6
80 IP_DEFAULT_MULTICAST_TTL
= 1
81 IP_DEFAULT_MULTICAST_LOOP
= 1
82 IP_MAX_MEMBERSHIPS
= 20