Home
last modified time | relevance | path

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

/external/libpcap/
Dpcap-linux.c419 static int has_wext(int sock_fd, const char *device, char *ebuf);
421 static int enter_rfmon_mode(pcap_t *handle, int sock_fd,
669 add_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, argument
676 ifindex = iface_get_id(sock_fd, device, handle->errbuf);
765 del_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, argument
772 ifindex = iface_get_id(sock_fd, mondevice, handle->errbuf);
819 enter_rfmon_mode_mac80211(pcap_t *handle, int sock_fd, const char *device) argument
857 ret = add_mon_if(handle, sock_fd, &nlstate, device, mondevice);
905 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifr) == -1) {
909 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/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_interceptors.inc1999 INTERCEPTOR(int, getsockname, int sock_fd, void *addr, int *addrlen) {
2001 COMMON_INTERCEPTOR_ENTER(ctx, getsockname, sock_fd, addr, addrlen);
2007 int res = REAL(getsockname)(sock_fd, addr, addrlen);