Lines Matching full:syscall
13 "syscall"
19 for _, facility := range []int{syscall.NET_RT_DUMP, syscall.NET_RT_IFLIST} {
20 for _, param := range []int{syscall.AF_UNSPEC, syscall.AF_INET, syscall.AF_INET6} {
26 b, err = syscall.RouteRIB(facility, param)
37 msgs, err := syscall.ParseRoutingMessage(b)
54 if flags&(syscall.RTA_DST|syscall.RTA_IFA) != 0 {
55 sa := sas[syscall.RTAX_DST]
57 sa = sas[syscall.RTAX_IFA]
60 case *syscall.SockaddrInet4:
64 case *syscall.SockaddrInet6:
72 if param == syscall.AF_UNSPEC && len(msgs) > 0 && !ipv4loopback && !ipv6loopback {
85 s, err := syscall.Socket(syscall.AF_ROUTE, syscall.SOCK_RAW, syscall.AF_UNSPEC)
89 defer syscall.Close(s)
95 n, err := syscall.Read(s, b)
99 msgs, err := syscall.ParseRoutingMessage(b[:n])
126 case syscall.AF_UNSPEC:
128 case syscall.AF_LINK:
130 case syscall.AF_INET:
132 case syscall.AF_INET6:
171 type sockaddrs []syscall.Sockaddr
183 case *syscall.SockaddrDatalink:
185 case *syscall.SockaddrInet4:
187 case *syscall.SockaddrInet6:
199 family := syscall.AF_UNSPEC
205 case *syscall.SockaddrInet4:
206 if family == syscall.AF_UNSPEC {
207 family = syscall.AF_INET
209 if family != syscall.AF_INET {
212 case *syscall.SockaddrInet6:
213 if family == syscall.AF_UNSPEC {
214 family = syscall.AF_INET6
216 if family != syscall.AF_INET6 {