Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 1 | # Generated by h2py from /usr/include/netinet/in.h |
| 2 | |
| 3 | # Included from sys/cdefs.h |
| 4 | __GNUCLIKE_ASM = 3 |
| 5 | __GNUCLIKE_ASM = 2 |
| 6 | __GNUCLIKE___TYPEOF = 1 |
| 7 | __GNUCLIKE___OFFSETOF = 1 |
| 8 | __GNUCLIKE___SECTION = 1 |
| 9 | __GNUCLIKE_ATTRIBUTE_MODE_DI = 1 |
| 10 | __GNUCLIKE_CTOR_SECTION_HANDLING = 1 |
| 11 | __GNUCLIKE_BUILTIN_CONSTANT_P = 1 |
| 12 | __GNUCLIKE_BUILTIN_VARARGS = 1 |
Guido van Rossum | 8ce8a78 | 2007-11-01 19:42:39 +0000 | [diff] [blame] | 13 | __GNUCLIKE_BUILTIN_STDARG = 1 |
Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 14 | __GNUCLIKE_BUILTIN_VAALIST = 1 |
| 15 | __GNUC_VA_LIST_COMPATIBILITY = 1 |
Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 16 | __GNUCLIKE_BUILTIN_NEXT_ARG = 1 |
| 17 | __GNUCLIKE_BUILTIN_MEMCPY = 1 |
| 18 | __CC_SUPPORTS_INLINE = 1 |
| 19 | __CC_SUPPORTS___INLINE = 1 |
| 20 | __CC_SUPPORTS___INLINE__ = 1 |
| 21 | __CC_SUPPORTS___FUNC__ = 1 |
| 22 | __CC_SUPPORTS_WARNING = 1 |
| 23 | __CC_SUPPORTS_VARADIC_XXX = 1 |
| 24 | __CC_SUPPORTS_DYNAMIC_ARRAY_INIT = 1 |
| 25 | __CC_INT_IS_32BIT = 1 |
Tim Peters | f5f32b4 | 2005-07-17 23:16:17 +0000 | [diff] [blame] | 26 | def __P(protos): return protos |
Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 27 | |
Tim Peters | f5f32b4 | 2005-07-17 23:16:17 +0000 | [diff] [blame] | 28 | def __STRING(x): return #x |
Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 29 | |
Tim Peters | f5f32b4 | 2005-07-17 23:16:17 +0000 | [diff] [blame] | 30 | def __XSTRING(x): return __STRING(x) |
Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 31 | |
Tim Peters | f5f32b4 | 2005-07-17 23:16:17 +0000 | [diff] [blame] | 32 | def __P(protos): return () |
Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 33 | |
| 34 | def __STRING(x): return "x" |
| 35 | |
| 36 | def __aligned(x): return __attribute__((__aligned__(x))) |
| 37 | |
| 38 | def __section(x): return __attribute__((__section__(x))) |
| 39 | |
| 40 | def __aligned(x): return __attribute__((__aligned__(x))) |
| 41 | |
| 42 | def __section(x): return __attribute__((__section__(x))) |
| 43 | |
| 44 | def __nonnull(x): return __attribute__((__nonnull__(x))) |
| 45 | |
| 46 | def __predict_true(exp): return __builtin_expect((exp), 1) |
| 47 | |
| 48 | def __predict_false(exp): return __builtin_expect((exp), 0) |
| 49 | |
| 50 | def __predict_true(exp): return (exp) |
| 51 | |
| 52 | def __predict_false(exp): return (exp) |
| 53 | |
Guido van Rossum | 8ce8a78 | 2007-11-01 19:42:39 +0000 | [diff] [blame] | 54 | def __format_arg(fmtarg): return __attribute__((__format_arg__ (fmtarg))) |
| 55 | |
Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 56 | def __FBSDID(s): return __IDSTRING(__CONCAT(__rcsid_,__LINE__),s) |
| 57 | |
| 58 | def __RCSID(s): return __IDSTRING(__CONCAT(__rcsid_,__LINE__),s) |
| 59 | |
| 60 | def __RCSID_SOURCE(s): return __IDSTRING(__CONCAT(__rcsid_source_,__LINE__),s) |
| 61 | |
| 62 | def __SCCSID(s): return __IDSTRING(__CONCAT(__sccsid_,__LINE__),s) |
| 63 | |
| 64 | def __COPYRIGHT(s): return __IDSTRING(__CONCAT(__copyright_,__LINE__),s) |
| 65 | |
| 66 | _POSIX_C_SOURCE = 199009 |
| 67 | _POSIX_C_SOURCE = 199209 |
| 68 | __XSI_VISIBLE = 600 |
| 69 | _POSIX_C_SOURCE = 200112 |
| 70 | __XSI_VISIBLE = 500 |
| 71 | _POSIX_C_SOURCE = 199506 |
| 72 | _POSIX_C_SOURCE = 198808 |
| 73 | __POSIX_VISIBLE = 200112 |
| 74 | __ISO_C_VISIBLE = 1999 |
| 75 | __POSIX_VISIBLE = 199506 |
| 76 | __ISO_C_VISIBLE = 1990 |
| 77 | __POSIX_VISIBLE = 199309 |
| 78 | __ISO_C_VISIBLE = 1990 |
| 79 | __POSIX_VISIBLE = 199209 |
| 80 | __ISO_C_VISIBLE = 1990 |
| 81 | __POSIX_VISIBLE = 199009 |
| 82 | __ISO_C_VISIBLE = 1990 |
| 83 | __POSIX_VISIBLE = 198808 |
| 84 | __ISO_C_VISIBLE = 0 |
| 85 | __POSIX_VISIBLE = 0 |
| 86 | __XSI_VISIBLE = 0 |
| 87 | __BSD_VISIBLE = 0 |
| 88 | __ISO_C_VISIBLE = 1990 |
| 89 | __POSIX_VISIBLE = 0 |
| 90 | __XSI_VISIBLE = 0 |
| 91 | __BSD_VISIBLE = 0 |
| 92 | __ISO_C_VISIBLE = 1999 |
| 93 | __POSIX_VISIBLE = 200112 |
| 94 | __XSI_VISIBLE = 600 |
| 95 | __BSD_VISIBLE = 1 |
| 96 | __ISO_C_VISIBLE = 1999 |
| 97 | |
| 98 | # Included from sys/_types.h |
| 99 | |
| 100 | # Included from machine/_types.h |
| 101 | |
| 102 | # Included from machine/endian.h |
| 103 | _QUAD_HIGHWORD = 1 |
| 104 | _QUAD_LOWWORD = 0 |
| 105 | _LITTLE_ENDIAN = 1234 |
| 106 | _BIG_ENDIAN = 4321 |
| 107 | _PDP_ENDIAN = 3412 |
| 108 | _BYTE_ORDER = _LITTLE_ENDIAN |
| 109 | LITTLE_ENDIAN = _LITTLE_ENDIAN |
| 110 | BIG_ENDIAN = _BIG_ENDIAN |
| 111 | PDP_ENDIAN = _PDP_ENDIAN |
| 112 | BYTE_ORDER = _BYTE_ORDER |
| 113 | def __word_swap_int_var(x): return \ |
| 114 | |
| 115 | def __word_swap_int_const(x): return \ |
| 116 | |
| 117 | def __word_swap_int(x): return __word_swap_int_var(x) |
| 118 | |
| 119 | def __byte_swap_int_var(x): return \ |
| 120 | |
| 121 | def __byte_swap_int_const(x): return \ |
| 122 | |
| 123 | def __byte_swap_int(x): return __byte_swap_int_var(x) |
| 124 | |
| 125 | def __byte_swap_word_var(x): return \ |
| 126 | |
| 127 | def __byte_swap_word_const(x): return \ |
| 128 | |
| 129 | def __byte_swap_word(x): return __byte_swap_word_var(x) |
| 130 | |
| 131 | def __htonl(x): return __bswap32(x) |
| 132 | |
| 133 | def __htons(x): return __bswap16(x) |
| 134 | |
| 135 | def __ntohl(x): return __bswap32(x) |
| 136 | |
| 137 | def __ntohs(x): return __bswap16(x) |
| 138 | |
| 139 | IPPROTO_IP = 0 |
| 140 | IPPROTO_ICMP = 1 |
| 141 | IPPROTO_TCP = 6 |
| 142 | IPPROTO_UDP = 17 |
| 143 | def htonl(x): return __htonl(x) |
| 144 | |
| 145 | def htons(x): return __htons(x) |
| 146 | |
| 147 | def ntohl(x): return __ntohl(x) |
| 148 | |
| 149 | def ntohs(x): return __ntohs(x) |
| 150 | |
| 151 | IPPROTO_RAW = 255 |
| 152 | INET_ADDRSTRLEN = 16 |
| 153 | IPPROTO_HOPOPTS = 0 |
| 154 | IPPROTO_IGMP = 2 |
| 155 | IPPROTO_GGP = 3 |
| 156 | IPPROTO_IPV4 = 4 |
| 157 | IPPROTO_IPIP = IPPROTO_IPV4 |
| 158 | IPPROTO_ST = 7 |
| 159 | IPPROTO_EGP = 8 |
| 160 | IPPROTO_PIGP = 9 |
| 161 | IPPROTO_RCCMON = 10 |
| 162 | IPPROTO_NVPII = 11 |
| 163 | IPPROTO_PUP = 12 |
| 164 | IPPROTO_ARGUS = 13 |
| 165 | IPPROTO_EMCON = 14 |
| 166 | IPPROTO_XNET = 15 |
| 167 | IPPROTO_CHAOS = 16 |
| 168 | IPPROTO_MUX = 18 |
| 169 | IPPROTO_MEAS = 19 |
| 170 | IPPROTO_HMP = 20 |
| 171 | IPPROTO_PRM = 21 |
| 172 | IPPROTO_IDP = 22 |
| 173 | IPPROTO_TRUNK1 = 23 |
| 174 | IPPROTO_TRUNK2 = 24 |
| 175 | IPPROTO_LEAF1 = 25 |
| 176 | IPPROTO_LEAF2 = 26 |
| 177 | IPPROTO_RDP = 27 |
| 178 | IPPROTO_IRTP = 28 |
| 179 | IPPROTO_TP = 29 |
| 180 | IPPROTO_BLT = 30 |
| 181 | IPPROTO_NSP = 31 |
| 182 | IPPROTO_INP = 32 |
| 183 | IPPROTO_SEP = 33 |
| 184 | IPPROTO_3PC = 34 |
| 185 | IPPROTO_IDPR = 35 |
| 186 | IPPROTO_XTP = 36 |
| 187 | IPPROTO_DDP = 37 |
| 188 | IPPROTO_CMTP = 38 |
| 189 | IPPROTO_TPXX = 39 |
| 190 | IPPROTO_IL = 40 |
| 191 | IPPROTO_IPV6 = 41 |
| 192 | IPPROTO_SDRP = 42 |
| 193 | IPPROTO_ROUTING = 43 |
| 194 | IPPROTO_FRAGMENT = 44 |
| 195 | IPPROTO_IDRP = 45 |
| 196 | IPPROTO_RSVP = 46 |
| 197 | IPPROTO_GRE = 47 |
| 198 | IPPROTO_MHRP = 48 |
| 199 | IPPROTO_BHA = 49 |
| 200 | IPPROTO_ESP = 50 |
| 201 | IPPROTO_AH = 51 |
| 202 | IPPROTO_INLSP = 52 |
| 203 | IPPROTO_SWIPE = 53 |
| 204 | IPPROTO_NHRP = 54 |
| 205 | IPPROTO_MOBILE = 55 |
| 206 | IPPROTO_TLSP = 56 |
| 207 | IPPROTO_SKIP = 57 |
| 208 | IPPROTO_ICMPV6 = 58 |
| 209 | IPPROTO_NONE = 59 |
| 210 | IPPROTO_DSTOPTS = 60 |
| 211 | IPPROTO_AHIP = 61 |
| 212 | IPPROTO_CFTP = 62 |
| 213 | IPPROTO_HELLO = 63 |
| 214 | IPPROTO_SATEXPAK = 64 |
| 215 | IPPROTO_KRYPTOLAN = 65 |
| 216 | IPPROTO_RVD = 66 |
| 217 | IPPROTO_IPPC = 67 |
| 218 | IPPROTO_ADFS = 68 |
| 219 | IPPROTO_SATMON = 69 |
| 220 | IPPROTO_VISA = 70 |
| 221 | IPPROTO_IPCV = 71 |
| 222 | IPPROTO_CPNX = 72 |
| 223 | IPPROTO_CPHB = 73 |
| 224 | IPPROTO_WSN = 74 |
| 225 | IPPROTO_PVP = 75 |
| 226 | IPPROTO_BRSATMON = 76 |
| 227 | IPPROTO_ND = 77 |
| 228 | IPPROTO_WBMON = 78 |
| 229 | IPPROTO_WBEXPAK = 79 |
| 230 | IPPROTO_EON = 80 |
| 231 | IPPROTO_VMTP = 81 |
| 232 | IPPROTO_SVMTP = 82 |
| 233 | IPPROTO_VINES = 83 |
| 234 | IPPROTO_TTP = 84 |
| 235 | IPPROTO_IGP = 85 |
| 236 | IPPROTO_DGP = 86 |
| 237 | IPPROTO_TCF = 87 |
| 238 | IPPROTO_IGRP = 88 |
| 239 | IPPROTO_OSPFIGP = 89 |
| 240 | IPPROTO_SRPC = 90 |
| 241 | IPPROTO_LARP = 91 |
| 242 | IPPROTO_MTP = 92 |
| 243 | IPPROTO_AX25 = 93 |
| 244 | IPPROTO_IPEIP = 94 |
| 245 | IPPROTO_MICP = 95 |
| 246 | IPPROTO_SCCSP = 96 |
| 247 | IPPROTO_ETHERIP = 97 |
| 248 | IPPROTO_ENCAP = 98 |
| 249 | IPPROTO_APES = 99 |
| 250 | IPPROTO_GMTP = 100 |
| 251 | IPPROTO_IPCOMP = 108 |
Guido van Rossum | 8ce8a78 | 2007-11-01 19:42:39 +0000 | [diff] [blame] | 252 | IPPROTO_SCTP = 132 |
Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 253 | IPPROTO_PIM = 103 |
| 254 | IPPROTO_CARP = 112 |
| 255 | IPPROTO_PGM = 113 |
| 256 | IPPROTO_PFSYNC = 240 |
| 257 | IPPROTO_OLD_DIVERT = 254 |
| 258 | IPPROTO_MAX = 256 |
| 259 | IPPROTO_DONE = 257 |
| 260 | IPPROTO_DIVERT = 258 |
| 261 | IPPROTO_SPACER = 32767 |
| 262 | IPPORT_RESERVED = 1024 |
| 263 | IPPORT_HIFIRSTAUTO = 49152 |
| 264 | IPPORT_HILASTAUTO = 65535 |
| 265 | IPPORT_RESERVEDSTART = 600 |
| 266 | IPPORT_MAX = 65535 |
| 267 | def IN_CLASSA(i): return (((u_int32_t)(i) & (-2147483648)) == 0) |
| 268 | |
| 269 | IN_CLASSA_NET = (-16777216) |
| 270 | IN_CLASSA_NSHIFT = 24 |
| 271 | IN_CLASSA_HOST = 0x00ffffff |
| 272 | IN_CLASSA_MAX = 128 |
| 273 | def IN_CLASSB(i): return (((u_int32_t)(i) & (-1073741824)) == (-2147483648)) |
| 274 | |
| 275 | IN_CLASSB_NET = (-65536) |
| 276 | IN_CLASSB_NSHIFT = 16 |
| 277 | IN_CLASSB_HOST = 0x0000ffff |
| 278 | IN_CLASSB_MAX = 65536 |
| 279 | def IN_CLASSC(i): return (((u_int32_t)(i) & (-536870912)) == (-1073741824)) |
| 280 | |
| 281 | IN_CLASSC_NET = (-256) |
| 282 | IN_CLASSC_NSHIFT = 8 |
| 283 | IN_CLASSC_HOST = 0x000000ff |
| 284 | def IN_CLASSD(i): return (((u_int32_t)(i) & (-268435456)) == (-536870912)) |
| 285 | |
| 286 | IN_CLASSD_NET = (-268435456) |
| 287 | IN_CLASSD_NSHIFT = 28 |
| 288 | IN_CLASSD_HOST = 0x0fffffff |
| 289 | def IN_MULTICAST(i): return IN_CLASSD(i) |
| 290 | |
| 291 | def IN_EXPERIMENTAL(i): return (((u_int32_t)(i) & (-268435456)) == (-268435456)) |
| 292 | |
| 293 | def IN_BADCLASS(i): return (((u_int32_t)(i) & (-268435456)) == (-268435456)) |
| 294 | |
Guido van Rossum | 8ce8a78 | 2007-11-01 19:42:39 +0000 | [diff] [blame] | 295 | def IN_LINKLOCAL(i): return (((u_int32_t)(i) & (-65536)) == (-1442971648)) |
| 296 | |
| 297 | def IN_LOCAL_GROUP(i): return (((u_int32_t)(i) & (-256)) == (-536870912)) |
| 298 | |
Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 299 | INADDR_NONE = (-1) |
| 300 | IN_LOOPBACKNET = 127 |
| 301 | IP_OPTIONS = 1 |
| 302 | IP_HDRINCL = 2 |
| 303 | IP_TOS = 3 |
| 304 | IP_TTL = 4 |
| 305 | IP_RECVOPTS = 5 |
| 306 | IP_RECVRETOPTS = 6 |
| 307 | IP_RECVDSTADDR = 7 |
| 308 | IP_SENDSRCADDR = IP_RECVDSTADDR |
| 309 | IP_RETOPTS = 8 |
| 310 | IP_MULTICAST_IF = 9 |
| 311 | IP_MULTICAST_TTL = 10 |
| 312 | IP_MULTICAST_LOOP = 11 |
| 313 | IP_ADD_MEMBERSHIP = 12 |
| 314 | IP_DROP_MEMBERSHIP = 13 |
| 315 | IP_MULTICAST_VIF = 14 |
| 316 | IP_RSVP_ON = 15 |
| 317 | IP_RSVP_OFF = 16 |
| 318 | IP_RSVP_VIF_ON = 17 |
| 319 | IP_RSVP_VIF_OFF = 18 |
| 320 | IP_PORTRANGE = 19 |
| 321 | IP_RECVIF = 20 |
| 322 | IP_IPSEC_POLICY = 21 |
| 323 | IP_FAITH = 22 |
| 324 | IP_ONESBCAST = 23 |
| 325 | IP_FW_TABLE_ADD = 40 |
| 326 | IP_FW_TABLE_DEL = 41 |
| 327 | IP_FW_TABLE_FLUSH = 42 |
| 328 | IP_FW_TABLE_GETSIZE = 43 |
| 329 | IP_FW_TABLE_LIST = 44 |
| 330 | IP_FW_ADD = 50 |
| 331 | IP_FW_DEL = 51 |
| 332 | IP_FW_FLUSH = 52 |
| 333 | IP_FW_ZERO = 53 |
| 334 | IP_FW_GET = 54 |
| 335 | IP_FW_RESETLOG = 55 |
Guido van Rossum | 8ce8a78 | 2007-11-01 19:42:39 +0000 | [diff] [blame] | 336 | IP_FW_NAT_CFG = 56 |
| 337 | IP_FW_NAT_DEL = 57 |
| 338 | IP_FW_NAT_GET_CONFIG = 58 |
| 339 | IP_FW_NAT_GET_LOG = 59 |
Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 340 | IP_DUMMYNET_CONFIGURE = 60 |
| 341 | IP_DUMMYNET_DEL = 61 |
| 342 | IP_DUMMYNET_FLUSH = 62 |
| 343 | IP_DUMMYNET_GET = 64 |
| 344 | IP_RECVTTL = 65 |
Guido van Rossum | 8ce8a78 | 2007-11-01 19:42:39 +0000 | [diff] [blame] | 345 | IP_MINTTL = 66 |
| 346 | IP_DONTFRAG = 67 |
| 347 | IP_ADD_SOURCE_MEMBERSHIP = 70 |
| 348 | IP_DROP_SOURCE_MEMBERSHIP = 71 |
| 349 | IP_BLOCK_SOURCE = 72 |
| 350 | IP_UNBLOCK_SOURCE = 73 |
| 351 | IP_MSFILTER = 74 |
| 352 | MCAST_JOIN_GROUP = 80 |
| 353 | MCAST_LEAVE_GROUP = 81 |
| 354 | MCAST_JOIN_SOURCE_GROUP = 82 |
| 355 | MCAST_LEAVE_SOURCE_GROUP = 83 |
| 356 | MCAST_BLOCK_SOURCE = 84 |
| 357 | MCAST_UNBLOCK_SOURCE = 85 |
Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 358 | IP_DEFAULT_MULTICAST_TTL = 1 |
| 359 | IP_DEFAULT_MULTICAST_LOOP = 1 |
Guido van Rossum | 8ce8a78 | 2007-11-01 19:42:39 +0000 | [diff] [blame] | 360 | IP_MIN_MEMBERSHIPS = 31 |
| 361 | IP_MAX_MEMBERSHIPS = 4095 |
| 362 | IP_MAX_SOURCE_FILTER = 1024 |
| 363 | MCAST_INCLUDE = 1 |
| 364 | MCAST_EXCLUDE = 2 |
Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 365 | IP_PORTRANGE_DEFAULT = 0 |
| 366 | IP_PORTRANGE_HIGH = 1 |
| 367 | IP_PORTRANGE_LOW = 2 |
| 368 | IPPROTO_MAXID = (IPPROTO_AH + 1) |
| 369 | IPCTL_FORWARDING = 1 |
| 370 | IPCTL_SENDREDIRECTS = 2 |
| 371 | IPCTL_DEFTTL = 3 |
| 372 | IPCTL_DEFMTU = 4 |
| 373 | IPCTL_RTEXPIRE = 5 |
| 374 | IPCTL_RTMINEXPIRE = 6 |
| 375 | IPCTL_RTMAXCACHE = 7 |
| 376 | IPCTL_SOURCEROUTE = 8 |
| 377 | IPCTL_DIRECTEDBROADCAST = 9 |
| 378 | IPCTL_INTRQMAXLEN = 10 |
| 379 | IPCTL_INTRQDROPS = 11 |
| 380 | IPCTL_STATS = 12 |
| 381 | IPCTL_ACCEPTSOURCEROUTE = 13 |
| 382 | IPCTL_FASTFORWARDING = 14 |
| 383 | IPCTL_KEEPFAITH = 15 |
| 384 | IPCTL_GIF_TTL = 16 |
| 385 | IPCTL_MAXID = 17 |
| 386 | def in_nullhost(x): return ((x).s_addr == INADDR_ANY) |
| 387 | |
| 388 | |
| 389 | # Included from netinet6/in6.h |
Guido van Rossum | 8ce8a78 | 2007-11-01 19:42:39 +0000 | [diff] [blame] | 390 | __KAME_VERSION = "FreeBSD" |
Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 391 | IPV6PORT_RESERVED = 1024 |
| 392 | IPV6PORT_ANONMIN = 49152 |
| 393 | IPV6PORT_ANONMAX = 65535 |
| 394 | IPV6PORT_RESERVEDMIN = 600 |
| 395 | IPV6PORT_RESERVEDMAX = (IPV6PORT_RESERVED-1) |
| 396 | INET6_ADDRSTRLEN = 46 |
| 397 | IPV6_ADDR_INT32_ONE = 1 |
| 398 | IPV6_ADDR_INT32_TWO = 2 |
| 399 | IPV6_ADDR_INT32_MNL = (-16711680) |
| 400 | IPV6_ADDR_INT32_MLL = (-16646144) |
| 401 | IPV6_ADDR_INT32_SMP = 0x0000ffff |
| 402 | IPV6_ADDR_INT16_ULL = 0xfe80 |
| 403 | IPV6_ADDR_INT16_USL = 0xfec0 |
| 404 | IPV6_ADDR_INT16_MLL = 0xff02 |
| 405 | IPV6_ADDR_INT32_ONE = 0x01000000 |
| 406 | IPV6_ADDR_INT32_TWO = 0x02000000 |
| 407 | IPV6_ADDR_INT32_MNL = 0x000001ff |
| 408 | IPV6_ADDR_INT32_MLL = 0x000002ff |
| 409 | IPV6_ADDR_INT32_SMP = (-65536) |
| 410 | IPV6_ADDR_INT16_ULL = 0x80fe |
| 411 | IPV6_ADDR_INT16_USL = 0xc0fe |
| 412 | IPV6_ADDR_INT16_MLL = 0x02ff |
| 413 | def IN6_IS_ADDR_UNSPECIFIED(a): return \ |
| 414 | |
| 415 | def IN6_IS_ADDR_LOOPBACK(a): return \ |
| 416 | |
| 417 | def IN6_IS_ADDR_V4COMPAT(a): return \ |
| 418 | |
| 419 | def IN6_IS_ADDR_V4MAPPED(a): return \ |
| 420 | |
| 421 | IPV6_ADDR_SCOPE_NODELOCAL = 0x01 |
| 422 | IPV6_ADDR_SCOPE_INTFACELOCAL = 0x01 |
| 423 | IPV6_ADDR_SCOPE_LINKLOCAL = 0x02 |
| 424 | IPV6_ADDR_SCOPE_SITELOCAL = 0x05 |
| 425 | IPV6_ADDR_SCOPE_ORGLOCAL = 0x08 |
| 426 | IPV6_ADDR_SCOPE_GLOBAL = 0x0e |
| 427 | __IPV6_ADDR_SCOPE_NODELOCAL = 0x01 |
| 428 | __IPV6_ADDR_SCOPE_INTFACELOCAL = 0x01 |
| 429 | __IPV6_ADDR_SCOPE_LINKLOCAL = 0x02 |
| 430 | __IPV6_ADDR_SCOPE_SITELOCAL = 0x05 |
| 431 | __IPV6_ADDR_SCOPE_ORGLOCAL = 0x08 |
| 432 | __IPV6_ADDR_SCOPE_GLOBAL = 0x0e |
| 433 | def IN6_IS_ADDR_LINKLOCAL(a): return \ |
| 434 | |
| 435 | def IN6_IS_ADDR_SITELOCAL(a): return \ |
| 436 | |
| 437 | def IN6_IS_ADDR_MC_NODELOCAL(a): return \ |
| 438 | |
| 439 | def IN6_IS_ADDR_MC_INTFACELOCAL(a): return \ |
| 440 | |
| 441 | def IN6_IS_ADDR_MC_LINKLOCAL(a): return \ |
| 442 | |
| 443 | def IN6_IS_ADDR_MC_SITELOCAL(a): return \ |
| 444 | |
| 445 | def IN6_IS_ADDR_MC_ORGLOCAL(a): return \ |
| 446 | |
| 447 | def IN6_IS_ADDR_MC_GLOBAL(a): return \ |
| 448 | |
| 449 | def IN6_IS_ADDR_MC_NODELOCAL(a): return \ |
| 450 | |
| 451 | def IN6_IS_ADDR_MC_LINKLOCAL(a): return \ |
| 452 | |
| 453 | def IN6_IS_ADDR_MC_SITELOCAL(a): return \ |
| 454 | |
| 455 | def IN6_IS_ADDR_MC_ORGLOCAL(a): return \ |
| 456 | |
| 457 | def IN6_IS_ADDR_MC_GLOBAL(a): return \ |
| 458 | |
| 459 | def IN6_IS_SCOPE_LINKLOCAL(a): return \ |
| 460 | |
Guido van Rossum | 8ce8a78 | 2007-11-01 19:42:39 +0000 | [diff] [blame] | 461 | def IN6_IS_SCOPE_EMBED(a): return \ |
| 462 | |
Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 463 | def IFA6_IS_DEPRECATED(a): return \ |
| 464 | |
| 465 | def IFA6_IS_INVALID(a): return \ |
| 466 | |
| 467 | IPV6_OPTIONS = 1 |
| 468 | IPV6_RECVOPTS = 5 |
| 469 | IPV6_RECVRETOPTS = 6 |
| 470 | IPV6_RECVDSTADDR = 7 |
| 471 | IPV6_RETOPTS = 8 |
| 472 | IPV6_SOCKOPT_RESERVED1 = 3 |
| 473 | IPV6_UNICAST_HOPS = 4 |
| 474 | IPV6_MULTICAST_IF = 9 |
| 475 | IPV6_MULTICAST_HOPS = 10 |
| 476 | IPV6_MULTICAST_LOOP = 11 |
| 477 | IPV6_JOIN_GROUP = 12 |
| 478 | IPV6_LEAVE_GROUP = 13 |
| 479 | IPV6_PORTRANGE = 14 |
| 480 | ICMP6_FILTER = 18 |
| 481 | IPV6_2292PKTINFO = 19 |
| 482 | IPV6_2292HOPLIMIT = 20 |
| 483 | IPV6_2292NEXTHOP = 21 |
| 484 | IPV6_2292HOPOPTS = 22 |
| 485 | IPV6_2292DSTOPTS = 23 |
| 486 | IPV6_2292RTHDR = 24 |
| 487 | IPV6_2292PKTOPTIONS = 25 |
| 488 | IPV6_CHECKSUM = 26 |
| 489 | IPV6_V6ONLY = 27 |
| 490 | IPV6_BINDV6ONLY = IPV6_V6ONLY |
| 491 | IPV6_IPSEC_POLICY = 28 |
| 492 | IPV6_FAITH = 29 |
| 493 | IPV6_FW_ADD = 30 |
| 494 | IPV6_FW_DEL = 31 |
| 495 | IPV6_FW_FLUSH = 32 |
| 496 | IPV6_FW_ZERO = 33 |
| 497 | IPV6_FW_GET = 34 |
| 498 | IPV6_RTHDRDSTOPTS = 35 |
| 499 | IPV6_RECVPKTINFO = 36 |
| 500 | IPV6_RECVHOPLIMIT = 37 |
| 501 | IPV6_RECVRTHDR = 38 |
| 502 | IPV6_RECVHOPOPTS = 39 |
| 503 | IPV6_RECVDSTOPTS = 40 |
| 504 | IPV6_RECVRTHDRDSTOPTS = 41 |
| 505 | IPV6_USE_MIN_MTU = 42 |
| 506 | IPV6_RECVPATHMTU = 43 |
| 507 | IPV6_PATHMTU = 44 |
| 508 | IPV6_REACHCONF = 45 |
| 509 | IPV6_PKTINFO = 46 |
| 510 | IPV6_HOPLIMIT = 47 |
| 511 | IPV6_NEXTHOP = 48 |
| 512 | IPV6_HOPOPTS = 49 |
| 513 | IPV6_DSTOPTS = 50 |
| 514 | IPV6_RTHDR = 51 |
| 515 | IPV6_PKTOPTIONS = 52 |
| 516 | IPV6_RECVTCLASS = 57 |
| 517 | IPV6_AUTOFLOWLABEL = 59 |
| 518 | IPV6_TCLASS = 61 |
| 519 | IPV6_DONTFRAG = 62 |
| 520 | IPV6_PREFER_TEMPADDR = 63 |
Guido van Rossum | 8ce8a78 | 2007-11-01 19:42:39 +0000 | [diff] [blame] | 521 | IPV6_MSFILTER = 74 |
Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 522 | IPV6_RTHDR_LOOSE = 0 |
| 523 | IPV6_RTHDR_STRICT = 1 |
| 524 | IPV6_RTHDR_TYPE_0 = 0 |
| 525 | IPV6_DEFAULT_MULTICAST_HOPS = 1 |
| 526 | IPV6_DEFAULT_MULTICAST_LOOP = 1 |
| 527 | IPV6_PORTRANGE_DEFAULT = 0 |
| 528 | IPV6_PORTRANGE_HIGH = 1 |
| 529 | IPV6_PORTRANGE_LOW = 2 |
| 530 | IPV6PROTO_MAXID = (IPPROTO_PIM + 1) |
| 531 | IPV6CTL_FORWARDING = 1 |
| 532 | IPV6CTL_SENDREDIRECTS = 2 |
| 533 | IPV6CTL_DEFHLIM = 3 |
| 534 | IPV6CTL_DEFMTU = 4 |
| 535 | IPV6CTL_FORWSRCRT = 5 |
| 536 | IPV6CTL_STATS = 6 |
| 537 | IPV6CTL_MRTSTATS = 7 |
| 538 | IPV6CTL_MRTPROTO = 8 |
| 539 | IPV6CTL_MAXFRAGPACKETS = 9 |
| 540 | IPV6CTL_SOURCECHECK = 10 |
| 541 | IPV6CTL_SOURCECHECK_LOGINT = 11 |
| 542 | IPV6CTL_ACCEPT_RTADV = 12 |
| 543 | IPV6CTL_KEEPFAITH = 13 |
| 544 | IPV6CTL_LOG_INTERVAL = 14 |
| 545 | IPV6CTL_HDRNESTLIMIT = 15 |
| 546 | IPV6CTL_DAD_COUNT = 16 |
| 547 | IPV6CTL_AUTO_FLOWLABEL = 17 |
| 548 | IPV6CTL_DEFMCASTHLIM = 18 |
| 549 | IPV6CTL_GIF_HLIM = 19 |
| 550 | IPV6CTL_KAME_VERSION = 20 |
| 551 | IPV6CTL_USE_DEPRECATED = 21 |
| 552 | IPV6CTL_RR_PRUNE = 22 |
| 553 | IPV6CTL_MAPPED_ADDR = 23 |
| 554 | IPV6CTL_V6ONLY = 24 |
| 555 | IPV6CTL_RTEXPIRE = 25 |
| 556 | IPV6CTL_RTMINEXPIRE = 26 |
| 557 | IPV6CTL_RTMAXCACHE = 27 |
| 558 | IPV6CTL_USETEMPADDR = 32 |
| 559 | IPV6CTL_TEMPPLTIME = 33 |
| 560 | IPV6CTL_TEMPVLTIME = 34 |
| 561 | IPV6CTL_AUTO_LINKLOCAL = 35 |
| 562 | IPV6CTL_RIP6STATS = 36 |
| 563 | IPV6CTL_PREFER_TEMPADDR = 37 |
| 564 | IPV6CTL_ADDRCTLPOLICY = 38 |
Guido van Rossum | 8ce8a78 | 2007-11-01 19:42:39 +0000 | [diff] [blame] | 565 | IPV6CTL_USE_DEFAULTZONE = 39 |
Hye-Shik Chang | 4e42281 | 2005-07-17 02:36:59 +0000 | [diff] [blame] | 566 | IPV6CTL_MAXFRAGS = 41 |
Guido van Rossum | 8ce8a78 | 2007-11-01 19:42:39 +0000 | [diff] [blame] | 567 | IPV6CTL_IFQ = 42 |
| 568 | IPV6CTL_ISATAPRTR = 43 |
| 569 | IPV6CTL_MCAST_PMTU = 44 |
| 570 | IPV6CTL_STEALTH = 45 |
| 571 | IPV6CTL_MAXID = 46 |