Home | History | Annotate | Download | only in net

Lines Matching full:syscall

13 	"syscall"
25 s, err := socketFunc(syscall.AF_INET, syscall.SOCK_STREAM, syscall.IPPROTO_TCP)
27 case syscall.EAFNOSUPPORT, syscall.EPROTONOSUPPORT:
76 s, err := socketFunc(syscall.AF_INET6, syscall.SOCK_STREAM, syscall.IPPROTO_TCP)
81 syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, probes[i].value)
82 sa, err := probes[i].laddr.sockaddr(syscall.AF_INET6)
86 if err := syscall.Bind(s, sa); err != nil {
134 return syscall.AF_INET, false
136 return syscall.AF_INET6, true
141 return syscall.AF_INET6, false
144 return syscall.AF_INET, false
149 if (laddr == nil || laddr.family() == syscall.AF_INET) &&
150 (raddr == nil || raddr.family() == syscall.AF_INET) {
151 return syscall.AF_INET, false
153 return syscall.AF_INET6, false
163 func ipToSockaddr(family int, ip IP, port int, zone string) (syscall.Sockaddr, error) {
165 case syscall.AF_INET:
172 sa := new(syscall.SockaddrInet4)
178 case syscall.AF_INET6:
191 sa := new(syscall.SockaddrInet6)