golang.org/x/net@v0.25.1-0.20240516223405-c87a5b62e243/route/defs_netbsd.go (about) 1 // Copyright 2016 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 package route 8 9 /* 10 #include <sys/socket.h> 11 #include <sys/sysctl.h> 12 13 #include <net/if.h> 14 #include <net/if_dl.h> 15 #include <net/route.h> 16 17 #include <netinet/in.h> 18 */ 19 import "C" 20 21 const ( 22 sizeofIfMsghdrNetBSD7 = C.sizeof_struct_if_msghdr 23 sizeofIfaMsghdrNetBSD7 = C.sizeof_struct_ifa_msghdr 24 sizeofIfAnnouncemsghdrNetBSD7 = C.sizeof_struct_if_announcemsghdr 25 26 sizeofRtMsghdrNetBSD7 = C.sizeof_struct_rt_msghdr 27 sizeofRtMetricsNetBSD7 = C.sizeof_struct_rt_metrics 28 29 sizeofSockaddrStorage = C.sizeof_struct_sockaddr_storage 30 sizeofSockaddrInet = C.sizeof_struct_sockaddr_in 31 sizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6 32 )