github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/ipv6/zsys_netbsd.go (about) 1 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 // cgo -godefs defs_netbsd.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_IPSEC_POLICY = 0x1c 20 21 sysIPV6_RTHDRDSTOPTS = 0x23 22 23 sysIPV6_RECVPKTINFO = 0x24 24 sysIPV6_RECVHOPLIMIT = 0x25 25 sysIPV6_RECVRTHDR = 0x26 26 sysIPV6_RECVHOPOPTS = 0x27 27 sysIPV6_RECVDSTOPTS = 0x28 28 29 sysIPV6_USE_MIN_MTU = 0x2a 30 sysIPV6_RECVPATHMTU = 0x2b 31 sysIPV6_PATHMTU = 0x2c 32 33 sysIPV6_PKTINFO = 0x2e 34 sysIPV6_HOPLIMIT = 0x2f 35 sysIPV6_NEXTHOP = 0x30 36 sysIPV6_HOPOPTS = 0x31 37 sysIPV6_DSTOPTS = 0x32 38 sysIPV6_RTHDR = 0x33 39 40 sysIPV6_RECVTCLASS = 0x39 41 42 sysIPV6_TCLASS = 0x3d 43 sysIPV6_DONTFRAG = 0x3e 44 45 sysIPV6_PORTRANGE_DEFAULT = 0x0 46 sysIPV6_PORTRANGE_HIGH = 0x1 47 sysIPV6_PORTRANGE_LOW = 0x2 48 49 sizeofSockaddrInet6 = 0x1c 50 sizeofInet6Pktinfo = 0x14 51 sizeofIPv6Mtuinfo = 0x20 52 53 sizeofIPv6Mreq = 0x14 54 55 sizeofICMPv6Filter = 0x20 56 ) 57 58 type sockaddrInet6 struct { 59 Len uint8 60 Family uint8 61 Port uint16 62 Flowinfo uint32 63 Addr [16]byte /* in6_addr */ 64 Scope_id uint32 65 } 66 67 type inet6Pktinfo struct { 68 Addr [16]byte /* in6_addr */ 69 Ifindex uint32 70 } 71 72 type ipv6Mtuinfo struct { 73 Addr sockaddrInet6 74 Mtu uint32 75 } 76 77 type ipv6Mreq struct { 78 Multiaddr [16]byte /* in6_addr */ 79 Interface uint32 80 } 81 82 type icmpv6Filter struct { 83 Filt [8]uint32 84 }