Guido van Rossum | 70f1418 | 1993-12-29 16:35:41 +0000 | [diff] [blame^] | 1 | # Symbolic constants from <netinet/in.h>. |
| 2 | # These constants are SGI specific! |
| 3 | # See demo/scripts/h2py.py for a tool to help generate a version for |
| 4 | # your system. |
| 5 | |
| 6 | IPPROTO_IP = 0 |
| 7 | IPPROTO_ICMP = 1 |
| 8 | IPPROTO_IGMP = 2 |
| 9 | IPPROTO_GGP = 3 |
| 10 | IPPROTO_TCP = 6 |
| 11 | IPPROTO_EGP = 8 |
| 12 | IPPROTO_PUP = 12 |
| 13 | IPPROTO_UDP = 17 |
| 14 | IPPROTO_IDP = 22 |
| 15 | IPPROTO_TP = 29 |
| 16 | IPPROTO_XTP = 36 |
| 17 | IPPROTO_EON = 80 |
| 18 | IPPROTO_RAW = 255 |
| 19 | IPPROTO_MAX = 256 |
| 20 | IPPORT_RESERVED = 1024 |
| 21 | IPPORT_USERRESERVED = 5000 |
| 22 | IN_CLASSA_NET = 0xff000000 |
| 23 | IN_CLASSA_NSHIFT = 24 |
| 24 | IN_CLASSA_HOST = 0x00ffffff |
| 25 | IN_CLASSA_MAX = 128 |
| 26 | IN_CLASSB_NET = 0xffff0000 |
| 27 | IN_CLASSB_NSHIFT = 16 |
| 28 | IN_CLASSB_HOST = 0x0000ffff |
| 29 | IN_CLASSB_MAX = 65536 |
| 30 | IN_CLASSC_NET = 0xffffff00 |
| 31 | IN_CLASSC_NSHIFT = 8 |
| 32 | IN_CLASSC_HOST = 0x000000ff |
| 33 | IN_CLASSD_NET = 0xf0000000 |
| 34 | IN_CLASSD_NSHIFT = 28 |
| 35 | IN_CLASSD_HOST = 0x0fffffff |
| 36 | INADDR_ANY = 0x00000000 |
| 37 | INADDR_BROADCAST = 0xffffffff |
| 38 | INADDR_LOOPBACK = 0x7F000001 |
| 39 | INADDR_UNSPEC_GROUP = 0xe0000000 |
| 40 | INADDR_ALLHOSTS_GROUP = 0xe0000001 |
| 41 | INADDR_MAX_LOCAL_GROUP = 0xe00000ff |
| 42 | INADDR_NONE = 0xffffffff |
| 43 | IN_LOOPBACKNET = 127 |
| 44 | IP_OPTIONS = 1 |
| 45 | IP_HDRINCL = 7 |
| 46 | IP_TOS = 8 |
| 47 | IP_TTL = 9 |
| 48 | IP_RECVOPTS = 10 |
| 49 | IP_RECVRETOPTS = 11 |
| 50 | IP_RECVDSTADDR = 12 |
| 51 | IP_RETOPTS = 13 |
| 52 | IP_MULTICAST_IF = 2 |
| 53 | IP_MULTICAST_TTL = 3 |
| 54 | IP_MULTICAST_LOOP = 4 |
| 55 | IP_ADD_MEMBERSHIP = 5 |
| 56 | IP_DROP_MEMBERSHIP = 6 |
| 57 | IP_DEFAULT_MULTICAST_TTL = 1 |
| 58 | IP_DEFAULT_MULTICAST_LOOP = 1 |
| 59 | IP_MAX_MEMBERSHIPS = 20 |