Files
lenz-web/.gocache/d3/d3d90634f3eea961bcc4c78f65e802494ead32acb7c5c9ef3e5ed60c6474c724-d
Simon Martens 4f4288905d Restart Init
2026-02-18 13:41:44 +01:00

36 lines
998 B
Plaintext

// Code generated by cmd/cgo; DO NOT EDIT.
//line /usr/lib/go/src/net/cgo_socknew.go:1:1
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build cgo && !netgo && (android || linux || solaris)
package net
/*
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
*/
import _ "unsafe"
import (
"syscall"
"unsafe"
)
func cgoSockaddrInet4(ip IP) * /*line :22:31*/_Ctype_struct_sockaddr /*line :22:48*/ {
sa := syscall.RawSockaddrInet4{Family: syscall.AF_INET}
copy(sa.Addr[:], ip)
return (* /*line :25:11*/_Ctype_struct_sockaddr /*line :25:28*/)(unsafe.Pointer(&sa))
}
func cgoSockaddrInet6(ip IP, zone int) * /*line :28:41*/_Ctype_struct_sockaddr /*line :28:58*/ {
sa := syscall.RawSockaddrInet6{Family: syscall.AF_INET6, Scope_id: uint32(zone)}
copy(sa.Addr[:], ip)
return (* /*line :31:11*/_Ctype_struct_sockaddr /*line :31:28*/)(unsafe.Pointer(&sa))
}