Searched refs:sock_fd (Results 1 - 3 of 3) sorted by relevance
/netbsd-6-1-5-RELEASE/external/bsd/libpcap/dist/ |
H A D | pcap-linux.c | 340 static int has_wext(int sock_fd, const char *device, char *ebuf); 342 static int enter_rfmon_mode(pcap_t *handle, int sock_fd, 558 add_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, argument 565 ifindex = iface_get_id(sock_fd, device, handle->errbuf); 640 del_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, argument 647 ifindex = iface_get_id(sock_fd, mondevice, handle->errbuf); 720 enter_rfmon_mode_mac80211(pcap_t *handle, int sock_fd, const char *device) argument 757 ret = add_mon_if(handle, sock_fd, &nlstate, device, mondevice); 793 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifr) == -1) { 797 del_mon_if(handle, sock_fd, 841 int sock_fd; local 2673 int sock_fd = -1, arptype; local 3704 has_wext(int sock_fd, const char *device, char *ebuf) argument 3750 enter_rfmon_mode_wext(pcap_t *handle, int sock_fd, const char *device) argument 4313 enter_rfmon_mode(pcap_t *handle, int sock_fd, const char *device) argument [all...] |
/netbsd-6-1-5-RELEASE/usr.sbin/apmd/ |
H A D | apmd.c | 71 static enum apm_state handle_client(int sock_fd, int ctl_fd); 179 handle_client(int sock_fd, int ctl_fd) argument 188 cli_fd = accept(sock_fd, (struct sockaddr *)&from, &fromlen); 302 int ctl_fd, sock_fd, ch, ready; local 419 sock_fd = bind_socket(sockname, mode, uid, gid); 423 set[1].fd = sock_fd; 509 switch (handle_client(sock_fd, ctl_fd)) {
|
/netbsd-6-1-5-RELEASE/usr.sbin/pppd/pppd/ |
H A D | sys-bsd.c | 182 static int sock_fd; /* socket for doing interface ioctls */ variable 239 if ((sock_fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) 266 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifr) >= 0 269 ioctl(sock_fd, SIOCSIFFLAGS, &ifr); 287 if (sock_fd >= 0) 288 close(sock_fd); 1170 if (ifunit >= 0 && ioctl(sock_fd, SIOCSIFMTU, (caddr_t) &ifr) < 0) 1185 if (ifunit >= 0 && ioctl(sock_fd, SIOCGIFMTU, (caddr_t) &ifr) < 0) { 1311 if (ioctl(sock_fd, SIOCGPPPSTATS, &req) < 0) { 1393 if (ioctl(sock_fd, SIOCGIFFLAG [all...] |
Completed in 103 milliseconds