Home | History | Annotate | Download | only in net

Lines Matching full:syscall

9 	"syscall"
12 func setDefaultSockopts(s syscall.Handle, family, sotype int, ipv6only bool) error {
13 if family == syscall.AF_INET6 && sotype != syscall.SOCK_RAW {
17 syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, boolint(ipv6only))
20 syscall.SetsockoptInt(s, syscall.SOL_SOCKET, syscall.SO_BROADCAST, 1)
24 func setDefaultListenerSockopts(s syscall.Handle) error {
34 func setDefaultMulticastSockopts(s syscall.Handle) error {
37 return os.NewSyscallError("setsockopt", syscall.SetsockoptInt(s, syscall.SOL_SOCKET, syscall.SO_REUSEADDR, 1))