Home
last modified time | relevance | path

Searched refs:sock_fd (Results 1 – 4 of 4) sorted by relevance

/external/libpcap/
Dpcap-linux.c385 static int has_wext(int sock_fd, const char *device, char *ebuf);
387 static int enter_rfmon_mode(pcap_t *handle, int sock_fd,
639 add_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, argument
646 ifindex = iface_get_id(sock_fd, device, handle->errbuf);
735 del_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, argument
742 ifindex = iface_get_id(sock_fd, mondevice, handle->errbuf);
789 enter_rfmon_mode_mac80211(pcap_t *handle, int sock_fd, const char *device) argument
827 ret = add_mon_if(handle, sock_fd, &nlstate, device, mondevice);
875 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifr) == -1) {
879 del_mon_if(handle, sock_fd, &nlstate, device,
[all …]
/external/ppp/pppd/
Dsys-linux.c179 static int sock_fd = -1; /* socket for doing interface ioctls */ variable
317 sock_fd = socket(AF_INET, SOCK_DGRAM, 0); in sys_init()
318 if (sock_fd < 0) in sys_init()
369 if (sock_fd >= 0) in sys_close()
370 close(sock_fd); in sys_close()
1200 if (ifunit >= 0 && ioctl(sock_fd, SIOCSIFMTU, (caddr_t) &ifr) < 0) in netif_set_mtu()
1215 if (ifunit >= 0 && ioctl(sock_fd, SIOCGIFMTU, (caddr_t) &ifr) < 0) { in netif_get_mtu()
1383 if (ioctl(sock_fd, SIOCGPPPSTATS, &req) < 0) {
1649 if (ioctl(sock_fd, SIOCADDRT, &rt) < 0) { in sifdefaultroute()
1682 if (ioctl(sock_fd, SIOCDELRT, &rt) < 0 && errno != ESRCH) { in cifdefaultroute()
[all …]
/external/dhcpcd/
Dif-linux.c66 static int sock_fd; variable
135 sock_fd = _open_link_socket(&sock_nl); in init_sockets()
136 set_cloexec(sock_fd); in init_sockets()
137 return sock_fd; in init_sockets()
429 if (sendmsg(sock_fd, &msg, 0) != -1) in send_netlink()
430 r = get_netlink(sock_fd, 0, &err_netlink); in send_netlink()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_interceptors.inc1823 INTERCEPTOR(int, getsockname, int sock_fd, void *addr, int *addrlen) {
1825 COMMON_INTERCEPTOR_ENTER(ctx, getsockname, sock_fd, addr, addrlen);
1831 int res = REAL(getsockname)(sock_fd, addr, addrlen);