golang.org/x/net@v0.25.1-0.20240516223405-c87a5b62e243/ipv6/defs_openbsd.go (about) 1 // Copyright 2014 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build ignore 6 7 // +godefs map struct_in6_addr [16]byte /* in6_addr */ 8 9 package ipv6 10 11 /* 12 #include <sys/param.h> 13 #include <sys/socket.h> 14 15 #include <netinet/in.h> 16 #include <netinet/icmp6.h> 17 */ 18 import "C" 19 20 const ( 21 sizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6 22 sizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo 23 sizeofIPv6Mtuinfo = C.sizeof_struct_ip6_mtuinfo 24 25 sizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq 26 27 sizeofICMPv6Filter = C.sizeof_struct_icmp6_filter 28 ) 29 30 type sockaddrInet6 C.struct_sockaddr_in6 31 32 type inet6Pktinfo C.struct_in6_pktinfo 33 34 type ipv6Mtuinfo C.struct_ip6_mtuinfo 35 36 type ipv6Mreq C.struct_ipv6_mreq 37 38 type icmpv6Filter C.struct_icmp6_filter