github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/ipv6/zsys_openbsd.go (about) 1 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 // cgo -godefs defs_openbsd.go 3 4 package ipv6 5 6 const ( 7 sysIPV6_UNICAST_HOPS = 0x4 8 sysIPV6_MULTICAST_IF = 0x9 9 sysIPV6_MULTICAST_HOPS = 0xa 10 sysIPV6_MULTICAST_LOOP = 0xb 11 sysIPV6_JOIN_GROUP = 0xc 12 sysIPV6_LEAVE_GROUP = 0xd 13 sysIPV6_PORTRANGE = 0xe 14 sysICMP6_FILTER = 0x12 15 16 sysIPV6_CHECKSUM = 0x1a 17 sysIPV6_V6ONLY = 0x1b 18 19 sysIPV6_RTHDRDSTOPTS = 0x23 20 21 sysIPV6_RECVPKTINFO = 0x24 22 sysIPV6_RECVHOPLIMIT = 0x25 23 sysIPV6_RECVRTHDR = 0x26 24 sysIPV6_RECVHOPOPTS = 0x27 25 sysIPV6_RECVDSTOPTS = 0x28 26 27 sysIPV6_USE_MIN_MTU = 0x2a 28 sysIPV6_RECVPATHMTU = 0x2b 29 30 sysIPV6_PATHMTU = 0x2c 31 32 sysIPV6_PKTINFO = 0x2e 33 sysIPV6_HOPLIMIT = 0x2f 34 sysIPV6_NEXTHOP = 0x30 35 sysIPV6_HOPOPTS = 0x31 36 sysIPV6_DSTOPTS = 0x32 37 sysIPV6_RTHDR = 0x33 38 39 sysIPV6_AUTH_LEVEL = 0x35 40 sysIPV6_ESP_TRANS_LEVEL = 0x36 41 sysIPV6_ESP_NETWORK_LEVEL = 0x37 42 sysIPSEC6_OUTSA = 0x38 43 sysIPV6_RECVTCLASS = 0x39 44 45 sysIPV6_AUTOFLOWLABEL = 0x3b 46 sysIPV6_IPCOMP_LEVEL = 0x3c 47 48 sysIPV6_TCLASS = 0x3d 49 sysIPV6_DONTFRAG = 0x3e 50 sysIPV6_PIPEX = 0x3f 51 52 sysIPV6_RTABLE = 0x1021 53 54 sysIPV6_PORTRANGE_DEFAULT = 0x0 55 sysIPV6_PORTRANGE_HIGH = 0x1 56 sysIPV6_PORTRANGE_LOW = 0x2 57 58 sizeofSockaddrInet6 = 0x1c 59 sizeofInet6Pktinfo = 0x14 60 sizeofIPv6Mtuinfo = 0x20 61 62 sizeofIPv6Mreq = 0x14 63 64 sizeofICMPv6Filter = 0x20 65 ) 66 67 type sockaddrInet6 struct { 68 Len uint8 69 Family uint8 70 Port uint16 71 Flowinfo uint32 72 Addr [16]byte /* in6_addr */ 73 Scope_id uint32 74 } 75 76 type inet6Pktinfo struct { 77 Addr [16]byte /* in6_addr */ 78 Ifindex uint32 79 } 80 81 type ipv6Mtuinfo struct { 82 Addr sockaddrInet6 83 Mtu uint32 84 } 85 86 type ipv6Mreq struct { 87 Multiaddr [16]byte /* in6_addr */ 88 Interface uint32 89 } 90 91 type icmpv6Filter struct { 92 Filt [8]uint32 93 }