// Code generated by cmd/cgo; DO NOT EDIT.

//line /usr/local/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 _ 

import (
	
	
)

func ( IP) * /*line :22:31*/_Ctype_struct_sockaddr /*line :22:48*/ {
	 := syscall.RawSockaddrInet4{Family: syscall.AF_INET}
	copy(.Addr[:], )
	return (* /*line :25:11*/_Ctype_struct_sockaddr /*line :25:28*/)(unsafe.Pointer(&))
}

func ( IP,  int) * /*line :28:41*/_Ctype_struct_sockaddr /*line :28:58*/ {
	 := syscall.RawSockaddrInet6{Family: syscall.AF_INET6, Scope_id: uint32()}
	copy(.Addr[:], )
	return (* /*line :31:11*/_Ctype_struct_sockaddr /*line :31:28*/)(unsafe.Pointer(&))
}