Jeremy Hylton | 34bef26 | 2000-08-31 02:42:11 +0000 | [diff] [blame] | 1 | # Generated by h2py from /usr/include/netinet/in.h |
| 2 | IPPROTO_IP = 0 |
| 3 | IPPROTO_HOPOPTS = 0 |
| 4 | IPPROTO_ICMP = 1 |
| 5 | IPPROTO_IGMP = 2 |
| 6 | IPPROTO_GGP = 3 |
| 7 | IPPROTO_IPV4 = 4 |
| 8 | IPPROTO_IPIP = IPPROTO_IPV4 |
| 9 | IPPROTO_TCP = 6 |
| 10 | IPPROTO_ST = 7 |
| 11 | IPPROTO_EGP = 8 |
| 12 | IPPROTO_PIGP = 9 |
| 13 | IPPROTO_RCCMON = 10 |
| 14 | IPPROTO_NVPII = 11 |
| 15 | IPPROTO_PUP = 12 |
| 16 | IPPROTO_ARGUS = 13 |
| 17 | IPPROTO_EMCON = 14 |
| 18 | IPPROTO_XNET = 15 |
| 19 | IPPROTO_CHAOS = 16 |
| 20 | IPPROTO_UDP = 17 |
| 21 | IPPROTO_MUX = 18 |
| 22 | IPPROTO_MEAS = 19 |
| 23 | IPPROTO_HMP = 20 |
| 24 | IPPROTO_PRM = 21 |
| 25 | IPPROTO_IDP = 22 |
| 26 | IPPROTO_TRUNK1 = 23 |
| 27 | IPPROTO_TRUNK2 = 24 |
| 28 | IPPROTO_LEAF1 = 25 |
| 29 | IPPROTO_LEAF2 = 26 |
| 30 | IPPROTO_RDP = 27 |
| 31 | IPPROTO_IRTP = 28 |
| 32 | IPPROTO_TP = 29 |
| 33 | IPPROTO_BLT = 30 |
| 34 | IPPROTO_NSP = 31 |
| 35 | IPPROTO_INP = 32 |
| 36 | IPPROTO_SEP = 33 |
| 37 | IPPROTO_3PC = 34 |
| 38 | IPPROTO_IDPR = 35 |
| 39 | IPPROTO_XTP = 36 |
| 40 | IPPROTO_DDP = 37 |
| 41 | IPPROTO_CMTP = 38 |
| 42 | IPPROTO_TPXX = 39 |
| 43 | IPPROTO_IL = 40 |
| 44 | IPPROTO_IPV6 = 41 |
| 45 | IPPROTO_SDRP = 42 |
| 46 | IPPROTO_ROUTING = 43 |
| 47 | IPPROTO_FRAGMENT = 44 |
| 48 | IPPROTO_IDRP = 45 |
| 49 | IPPROTO_RSVP = 46 |
| 50 | IPPROTO_GRE = 47 |
| 51 | IPPROTO_MHRP = 48 |
| 52 | IPPROTO_BHA = 49 |
| 53 | IPPROTO_ESP = 50 |
| 54 | IPPROTO_AH = 51 |
| 55 | IPPROTO_INLSP = 52 |
| 56 | IPPROTO_SWIPE = 53 |
| 57 | IPPROTO_NHRP = 54 |
| 58 | IPPROTO_ICMPV6 = 58 |
| 59 | IPPROTO_NONE = 59 |
| 60 | IPPROTO_DSTOPTS = 60 |
| 61 | IPPROTO_AHIP = 61 |
| 62 | IPPROTO_CFTP = 62 |
| 63 | IPPROTO_HELLO = 63 |
| 64 | IPPROTO_SATEXPAK = 64 |
| 65 | IPPROTO_KRYPTOLAN = 65 |
| 66 | IPPROTO_RVD = 66 |
| 67 | IPPROTO_IPPC = 67 |
| 68 | IPPROTO_ADFS = 68 |
| 69 | IPPROTO_SATMON = 69 |
| 70 | IPPROTO_VISA = 70 |
| 71 | IPPROTO_IPCV = 71 |
| 72 | IPPROTO_CPNX = 72 |
| 73 | IPPROTO_CPHB = 73 |
| 74 | IPPROTO_WSN = 74 |
| 75 | IPPROTO_PVP = 75 |
| 76 | IPPROTO_BRSATMON = 76 |
| 77 | IPPROTO_ND = 77 |
| 78 | IPPROTO_WBMON = 78 |
| 79 | IPPROTO_WBEXPAK = 79 |
| 80 | IPPROTO_EON = 80 |
| 81 | IPPROTO_VMTP = 81 |
| 82 | IPPROTO_SVMTP = 82 |
| 83 | IPPROTO_VINES = 83 |
| 84 | IPPROTO_TTP = 84 |
| 85 | IPPROTO_IGP = 85 |
| 86 | IPPROTO_DGP = 86 |
| 87 | IPPROTO_TCF = 87 |
| 88 | IPPROTO_IGRP = 88 |
| 89 | IPPROTO_OSPFIGP = 89 |
| 90 | IPPROTO_SRPC = 90 |
| 91 | IPPROTO_LARP = 91 |
| 92 | IPPROTO_MTP = 92 |
| 93 | IPPROTO_AX25 = 93 |
| 94 | IPPROTO_IPEIP = 94 |
| 95 | IPPROTO_MICP = 95 |
| 96 | IPPROTO_SCCSP = 96 |
| 97 | IPPROTO_ETHERIP = 97 |
| 98 | IPPROTO_ENCAP = 98 |
| 99 | IPPROTO_APES = 99 |
| 100 | IPPROTO_GMTP = 100 |
| 101 | IPPROTO_IPCOMP = 108 |
| 102 | IPPROTO_PIM = 103 |
| 103 | IPPROTO_PGM = 113 |
| 104 | IPPROTO_DIVERT = 254 |
| 105 | IPPROTO_RAW = 255 |
| 106 | IPPROTO_MAX = 256 |
| 107 | IPPROTO_DONE = 257 |
| 108 | IPPORT_RESERVED = 1024 |
| 109 | IPPORT_USERRESERVED = 5000 |
| 110 | IPPORT_HIFIRSTAUTO = 49152 |
| 111 | IPPORT_HILASTAUTO = 65535 |
| 112 | IPPORT_RESERVEDSTART = 600 |
| 113 | def IN_CLASSA(i): return (((u_int32_t)(i) & 0x80000000) == 0) |
| 114 | |
| 115 | IN_CLASSA_NET = 0xff000000 |
| 116 | IN_CLASSA_NSHIFT = 24 |
| 117 | IN_CLASSA_HOST = 0x00ffffff |
| 118 | IN_CLASSA_MAX = 128 |
| 119 | def IN_CLASSB(i): return (((u_int32_t)(i) & 0xc0000000) == 0x80000000) |
| 120 | |
| 121 | IN_CLASSB_NET = 0xffff0000 |
| 122 | IN_CLASSB_NSHIFT = 16 |
| 123 | IN_CLASSB_HOST = 0x0000ffff |
| 124 | IN_CLASSB_MAX = 65536 |
| 125 | def IN_CLASSC(i): return (((u_int32_t)(i) & 0xe0000000) == 0xc0000000) |
| 126 | |
| 127 | IN_CLASSC_NET = 0xffffff00 |
| 128 | IN_CLASSC_NSHIFT = 8 |
| 129 | IN_CLASSC_HOST = 0x000000ff |
| 130 | def IN_CLASSD(i): return (((u_int32_t)(i) & 0xf0000000) == 0xe0000000) |
| 131 | |
| 132 | IN_CLASSD_NET = 0xf0000000 |
| 133 | IN_CLASSD_NSHIFT = 28 |
| 134 | IN_CLASSD_HOST = 0x0fffffff |
| 135 | def IN_MULTICAST(i): return IN_CLASSD(i) |
| 136 | |
| 137 | def IN_EXPERIMENTAL(i): return (((u_int32_t)(i) & 0xf0000000) == 0xf0000000) |
| 138 | |
| 139 | def IN_BADCLASS(i): return (((u_int32_t)(i) & 0xf0000000) == 0xf0000000) |
| 140 | |
| 141 | INADDR_NONE = 0xffffffff |
| 142 | IN_LOOPBACKNET = 127 |
| 143 | INET_ADDRSTRLEN = 16 |
| 144 | IP_OPTIONS = 1 |
| 145 | IP_HDRINCL = 2 |
| 146 | IP_TOS = 3 |
| 147 | IP_TTL = 4 |
| 148 | IP_RECVOPTS = 5 |
| 149 | IP_RECVRETOPTS = 6 |
| 150 | IP_RECVDSTADDR = 7 |
| 151 | IP_RETOPTS = 8 |
| 152 | IP_MULTICAST_IF = 9 |
| 153 | IP_MULTICAST_TTL = 10 |
| 154 | IP_MULTICAST_LOOP = 11 |
| 155 | IP_ADD_MEMBERSHIP = 12 |
| 156 | IP_DROP_MEMBERSHIP = 13 |
| 157 | IP_MULTICAST_VIF = 14 |
| 158 | IP_RSVP_ON = 15 |
| 159 | IP_RSVP_OFF = 16 |
| 160 | IP_RSVP_VIF_ON = 17 |
| 161 | IP_RSVP_VIF_OFF = 18 |
| 162 | IP_PORTRANGE = 19 |
| 163 | IP_RECVIF = 20 |
| 164 | IP_IPSEC_POLICY = 21 |
| 165 | IP_FAITH = 22 |
| 166 | IP_FW_ADD = 50 |
| 167 | IP_FW_DEL = 51 |
| 168 | IP_FW_FLUSH = 52 |
| 169 | IP_FW_ZERO = 53 |
| 170 | IP_FW_GET = 54 |
| 171 | IP_FW_RESETLOG = 55 |
| 172 | IP_DUMMYNET_CONFIGURE = 60 |
| 173 | IP_DUMMYNET_DEL = 61 |
| 174 | IP_DUMMYNET_FLUSH = 62 |
| 175 | IP_DUMMYNET_GET = 64 |
| 176 | IP_DEFAULT_MULTICAST_TTL = 1 |
| 177 | IP_DEFAULT_MULTICAST_LOOP = 1 |
| 178 | IP_MAX_MEMBERSHIPS = 20 |
| 179 | IP_PORTRANGE_DEFAULT = 0 |
| 180 | IP_PORTRANGE_HIGH = 1 |
| 181 | IP_PORTRANGE_LOW = 2 |
| 182 | IPPROTO_MAXID = (IPPROTO_AH + 1) |
| 183 | IPCTL_FORWARDING = 1 |
| 184 | IPCTL_SENDREDIRECTS = 2 |
| 185 | IPCTL_DEFTTL = 3 |
| 186 | IPCTL_DEFMTU = 4 |
| 187 | IPCTL_RTEXPIRE = 5 |
| 188 | IPCTL_RTMINEXPIRE = 6 |
| 189 | IPCTL_RTMAXCACHE = 7 |
| 190 | IPCTL_SOURCEROUTE = 8 |
| 191 | IPCTL_DIRECTEDBROADCAST = 9 |
| 192 | IPCTL_INTRQMAXLEN = 10 |
| 193 | IPCTL_INTRQDROPS = 11 |
| 194 | IPCTL_STATS = 12 |
| 195 | IPCTL_ACCEPTSOURCEROUTE = 13 |
| 196 | IPCTL_FASTFORWARDING = 14 |
| 197 | IPCTL_KEEPFAITH = 15 |
| 198 | IPCTL_GIF_TTL = 16 |
| 199 | IPCTL_MAXID = 17 |
| 200 | |
| 201 | # Included from netinet6/in6.h |
| 202 | |
| 203 | # Included from sys/queue.h |
| 204 | def SLIST_HEAD_INITIALIZER(head): return \ |
| 205 | |
| 206 | def SLIST_ENTRY(type): return \ |
| 207 | |
| 208 | def STAILQ_HEAD_INITIALIZER(head): return \ |
| 209 | |
| 210 | def STAILQ_ENTRY(type): return \ |
| 211 | |
| 212 | def LIST_HEAD_INITIALIZER(head): return \ |
| 213 | |
| 214 | def LIST_ENTRY(type): return \ |
| 215 | |
| 216 | def TAILQ_HEAD_INITIALIZER(head): return \ |
| 217 | |
| 218 | def TAILQ_ENTRY(type): return \ |
| 219 | |
| 220 | def CIRCLEQ_ENTRY(type): return \ |
| 221 | |
| 222 | __KAME_VERSION = "20000701/FreeBSD-current" |
| 223 | IPV6PORT_RESERVED = 1024 |
| 224 | IPV6PORT_ANONMIN = 49152 |
| 225 | IPV6PORT_ANONMAX = 65535 |
| 226 | IPV6PORT_RESERVEDMIN = 600 |
| 227 | IPV6PORT_RESERVEDMAX = (IPV6PORT_RESERVED-1) |
| 228 | INET6_ADDRSTRLEN = 46 |
| 229 | IPV6_ADDR_INT32_ONE = 1 |
| 230 | IPV6_ADDR_INT32_TWO = 2 |
| 231 | IPV6_ADDR_INT32_MNL = 0xff010000 |
| 232 | IPV6_ADDR_INT32_MLL = 0xff020000 |
| 233 | IPV6_ADDR_INT32_SMP = 0x0000ffff |
| 234 | IPV6_ADDR_INT16_ULL = 0xfe80 |
| 235 | IPV6_ADDR_INT16_USL = 0xfec0 |
| 236 | IPV6_ADDR_INT16_MLL = 0xff02 |
| 237 | IPV6_ADDR_INT32_ONE = 0x01000000 |
| 238 | IPV6_ADDR_INT32_TWO = 0x02000000 |
| 239 | IPV6_ADDR_INT32_MNL = 0x000001ff |
| 240 | IPV6_ADDR_INT32_MLL = 0x000002ff |
| 241 | IPV6_ADDR_INT32_SMP = 0xffff0000 |
| 242 | IPV6_ADDR_INT16_ULL = 0x80fe |
| 243 | IPV6_ADDR_INT16_USL = 0xc0fe |
| 244 | IPV6_ADDR_INT16_MLL = 0x02ff |
| 245 | def IN6_IS_ADDR_UNSPECIFIED(a): return \ |
| 246 | |
| 247 | def IN6_IS_ADDR_LOOPBACK(a): return \ |
| 248 | |
| 249 | def IN6_IS_ADDR_V4COMPAT(a): return \ |
| 250 | |
| 251 | def IN6_IS_ADDR_V4MAPPED(a): return \ |
| 252 | |
| 253 | IPV6_ADDR_SCOPE_NODELOCAL = 0x01 |
| 254 | IPV6_ADDR_SCOPE_LINKLOCAL = 0x02 |
| 255 | IPV6_ADDR_SCOPE_SITELOCAL = 0x05 |
| 256 | IPV6_ADDR_SCOPE_ORGLOCAL = 0x08 |
| 257 | IPV6_ADDR_SCOPE_GLOBAL = 0x0e |
| 258 | __IPV6_ADDR_SCOPE_NODELOCAL = 0x01 |
| 259 | __IPV6_ADDR_SCOPE_LINKLOCAL = 0x02 |
| 260 | __IPV6_ADDR_SCOPE_SITELOCAL = 0x05 |
| 261 | __IPV6_ADDR_SCOPE_ORGLOCAL = 0x08 |
| 262 | __IPV6_ADDR_SCOPE_GLOBAL = 0x0e |
| 263 | def IN6_IS_ADDR_LINKLOCAL(a): return \ |
| 264 | |
| 265 | def IN6_IS_ADDR_SITELOCAL(a): return \ |
| 266 | |
| 267 | def IN6_IS_ADDR_MC_NODELOCAL(a): return \ |
| 268 | |
| 269 | def IN6_IS_ADDR_MC_LINKLOCAL(a): return \ |
| 270 | |
| 271 | def IN6_IS_ADDR_MC_SITELOCAL(a): return \ |
| 272 | |
| 273 | def IN6_IS_ADDR_MC_ORGLOCAL(a): return \ |
| 274 | |
| 275 | def IN6_IS_ADDR_MC_GLOBAL(a): return \ |
| 276 | |
| 277 | def IN6_IS_ADDR_MC_NODELOCAL(a): return \ |
| 278 | |
| 279 | def IN6_IS_ADDR_MC_LINKLOCAL(a): return \ |
| 280 | |
| 281 | def IN6_IS_ADDR_MC_SITELOCAL(a): return \ |
| 282 | |
| 283 | def IN6_IS_ADDR_MC_ORGLOCAL(a): return \ |
| 284 | |
| 285 | def IN6_IS_ADDR_MC_GLOBAL(a): return \ |
| 286 | |
| 287 | def IN6_IS_SCOPE_LINKLOCAL(a): return \ |
| 288 | |
| 289 | IPV6_OPTIONS = 1 |
| 290 | IPV6_RECVOPTS = 5 |
| 291 | IPV6_RECVRETOPTS = 6 |
| 292 | IPV6_RECVDSTADDR = 7 |
| 293 | IPV6_RETOPTS = 8 |
| 294 | IPV6_SOCKOPT_RESERVED1 = 3 |
| 295 | IPV6_UNICAST_HOPS = 4 |
| 296 | IPV6_MULTICAST_IF = 9 |
| 297 | IPV6_MULTICAST_HOPS = 10 |
| 298 | IPV6_MULTICAST_LOOP = 11 |
| 299 | IPV6_JOIN_GROUP = 12 |
| 300 | IPV6_LEAVE_GROUP = 13 |
| 301 | IPV6_PORTRANGE = 14 |
| 302 | ICMP6_FILTER = 18 |
| 303 | IPV6_PKTINFO = 19 |
| 304 | IPV6_HOPLIMIT = 20 |
| 305 | IPV6_NEXTHOP = 21 |
| 306 | IPV6_HOPOPTS = 22 |
| 307 | IPV6_DSTOPTS = 23 |
| 308 | IPV6_RTHDR = 24 |
| 309 | IPV6_PKTOPTIONS = 25 |
| 310 | IPV6_CHECKSUM = 26 |
| 311 | IPV6_BINDV6ONLY = 27 |
| 312 | IPV6_IPSEC_POLICY = 28 |
| 313 | IPV6_FAITH = 29 |
| 314 | IPV6_FW_ADD = 30 |
| 315 | IPV6_FW_DEL = 31 |
| 316 | IPV6_FW_FLUSH = 32 |
| 317 | IPV6_FW_ZERO = 33 |
| 318 | IPV6_FW_GET = 34 |
| 319 | IPV6_RTHDR_LOOSE = 0 |
| 320 | IPV6_RTHDR_STRICT = 1 |
| 321 | IPV6_RTHDR_TYPE_0 = 0 |
| 322 | IPV6_DEFAULT_MULTICAST_HOPS = 1 |
| 323 | IPV6_DEFAULT_MULTICAST_LOOP = 1 |
| 324 | IPV6_PORTRANGE_DEFAULT = 0 |
| 325 | IPV6_PORTRANGE_HIGH = 1 |
| 326 | IPV6_PORTRANGE_LOW = 2 |
| 327 | IPV6PROTO_MAXID = (IPPROTO_PIM + 1) |
| 328 | IPV6CTL_FORWARDING = 1 |
| 329 | IPV6CTL_SENDREDIRECTS = 2 |
| 330 | IPV6CTL_DEFHLIM = 3 |
| 331 | IPV6CTL_DEFMTU = 4 |
| 332 | IPV6CTL_FORWSRCRT = 5 |
| 333 | IPV6CTL_STATS = 6 |
| 334 | IPV6CTL_MRTSTATS = 7 |
| 335 | IPV6CTL_MRTPROTO = 8 |
| 336 | IPV6CTL_MAXFRAGPACKETS = 9 |
| 337 | IPV6CTL_SOURCECHECK = 10 |
| 338 | IPV6CTL_SOURCECHECK_LOGINT = 11 |
| 339 | IPV6CTL_ACCEPT_RTADV = 12 |
| 340 | IPV6CTL_KEEPFAITH = 13 |
| 341 | IPV6CTL_LOG_INTERVAL = 14 |
| 342 | IPV6CTL_HDRNESTLIMIT = 15 |
| 343 | IPV6CTL_DAD_COUNT = 16 |
| 344 | IPV6CTL_AUTO_FLOWLABEL = 17 |
| 345 | IPV6CTL_DEFMCASTHLIM = 18 |
| 346 | IPV6CTL_GIF_HLIM = 19 |
| 347 | IPV6CTL_KAME_VERSION = 20 |
| 348 | IPV6CTL_USE_DEPRECATED = 21 |
| 349 | IPV6CTL_RR_PRUNE = 22 |
| 350 | IPV6CTL_MAPPED_ADDR = 23 |
| 351 | IPV6CTL_BINDV6ONLY = 24 |
| 352 | IPV6CTL_RTEXPIRE = 25 |
| 353 | IPV6CTL_RTMINEXPIRE = 26 |
| 354 | IPV6CTL_RTMAXCACHE = 27 |
| 355 | IPV6CTL_MAXID = 28 |