net_bsd.go 523 Bytes
Newer Older
Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
// +build darwin dragonfly freebsd netbsd openbsd

package sockaddrnet

import (
	"syscall"
)

const (
	AF_INET   = syscall.AF_INET
	AF_INET6  = syscall.AF_INET6
	AF_UNIX   = syscall.AF_UNIX
	AF_UNSPEC = syscall.AF_UNSPEC

	IPPROTO_IP   = syscall.IPPROTO_IP
	IPPROTO_IPV4 = syscall.IPPROTO_IPV4
	IPPROTO_IPV6 = syscall.IPPROTO_IPV6
	IPPROTO_TCP  = syscall.IPPROTO_TCP
	IPPROTO_UDP  = syscall.IPPROTO_UDP

	SOCK_DGRAM     = syscall.SOCK_DGRAM
	SOCK_STREAM    = syscall.SOCK_STREAM
	SOCK_SEQPACKET = syscall.SOCK_SEQPACKET
)