golang.org/x/net@v0.25.1-0.20240516223405-c87a5b62e243/route/defs_openbsd.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 sizeofRtMsghdr = C.sizeof_struct_rt_msghdr 23 24 sizeofSockaddrStorage = C.sizeof_struct_sockaddr_storage 25 sizeofSockaddrInet = C.sizeof_struct_sockaddr_in 26 sizeofSockaddrInet6 = C.sizeof_struct_sockaddr_in6 27 )