golang.org/x/net@v0.25.1-0.20240516223405-c87a5b62e243/ipv6/defs_linux.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 <linux/in.h> 13 #include <linux/in6.h> 14 #include <linux/ipv6.h> 15 #include <linux/icmpv6.h> 16 #include <linux/filter.h> 17 #include <sys/socket.h> 18 */ 19 import "C" 20 21 const ( 22 sizeofKernelSockaddrStorage = C.sizeof_struct___kernel_sockaddr_storage 23 sizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6 24 sizeofInet6Pktinfo = C.sizeof_struct_in6_pktinfo 25 sizeofIPv6Mtuinfo = C.sizeof_struct_ip6_mtuinfo 26 sizeofIPv6FlowlabelReq = C.sizeof_struct_in6_flowlabel_req 27 28 sizeofIPv6Mreq = C.sizeof_struct_ipv6_mreq 29 sizeofGroupReq = C.sizeof_struct_group_req 30 sizeofGroupSourceReq = C.sizeof_struct_group_source_req 31 32 sizeofICMPv6Filter = C.sizeof_struct_icmp6_filter 33 ) 34 35 type kernelSockaddrStorage C.struct___kernel_sockaddr_storage 36 37 type sockaddrInet6 C.struct_sockaddr_in6 38 39 type inet6Pktinfo C.struct_in6_pktinfo 40 41 type ipv6Mtuinfo C.struct_ip6_mtuinfo 42 43 type ipv6FlowlabelReq C.struct_in6_flowlabel_req 44 45 type ipv6Mreq C.struct_ipv6_mreq 46 47 type groupReq C.struct_group_req 48 49 type groupSourceReq C.struct_group_source_req 50 51 type icmpv6Filter C.struct_icmp6_filter