golang.org/x/net@v0.25.1-0.20240516223405-c87a5b62e243/lif/defs_solaris.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 // +godefs map struct_in_addr [4]byte /* in_addr */ 8 // +godefs map struct_in6_addr [16]byte /* in6_addr */ 9 10 package lif 11 12 /* 13 #include <sys/socket.h> 14 #include <sys/sockio.h> 15 16 #include <net/if.h> 17 #include <net/if_types.h> 18 */ 19 import "C" 20 21 type sockaddrStorage C.struct_sockaddr_storage 22 23 const ( 24 sysLIFC_NOXMIT = C.LIFC_NOXMIT 25 sysLIFC_EXTERNAL_SOURCE = C.LIFC_EXTERNAL_SOURCE 26 sysLIFC_TEMPORARY = C.LIFC_TEMPORARY 27 sysLIFC_ALLZONES = C.LIFC_ALLZONES 28 sysLIFC_UNDER_IPMP = C.LIFC_UNDER_IPMP 29 sysLIFC_ENABLED = C.LIFC_ENABLED 30 ) 31 32 const ( 33 sizeofLifnum = C.sizeof_struct_lifnum 34 sizeofLifreq = C.sizeof_struct_lifreq 35 sizeofLifconf = C.sizeof_struct_lifconf 36 sizeofLifIfinfoReq = C.sizeof_struct_lif_ifinfo_req 37 ) 38 39 type lifnum C.struct_lifnum 40 41 type lifreq C.struct_lifreq 42 43 type lifconf C.struct_lifconf 44 45 type lifIfinfoReq C.struct_lif_ifinfo_req