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