Searched refs:sock_fd (Results 1 - 9 of 9) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/tests/
H A Dunixsock.c44 int sock_fd; local
49 if ((sock_fd = socket(PF_LOCAL, SOCK_STREAM, 0)) < 0) {
68 if (bind(sock_fd, (struct sockaddr *) &name, size) < 0) {
73 return sock_fd;
79 int sock_fd; local
86 if ((sock_fd = bind_socket(filename)) < 0)
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/um/drivers/
H A Dport_user.c152 int sock_fd; member in struct:port_pre_exec_data
160 dup2(data->sock_fd, 0);
161 dup2(data->sock_fd, 1);
162 dup2(data->sock_fd, 2);
163 close(data->sock_fd);
185 { .sock_fd = new,
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/networking/libiproute/
H A Dll_map.c137 int sock_fd; local
172 sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
173 if (sock_fd) {
179 tmp = ioctl(sock_fd, SIOCGIFINDEX, &ifr);
180 close(sock_fd);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/libpcap-1.4.0/
H A Dpcap-linux.c338 static int has_wext(int sock_fd, const char *device, char *ebuf);
340 static int enter_rfmon_mode(pcap_t *handle, int sock_fd,
571 add_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, argument
578 ifindex = iface_get_id(sock_fd, device, handle->errbuf);
667 del_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, argument
674 ifindex = iface_get_id(sock_fd, mondevice, handle->errbuf);
721 enter_rfmon_mode_mac80211(pcap_t *handle, int sock_fd, const char *device) argument
758 ret = add_mon_if(handle, sock_fd, &nlstate, device, mondevice);
806 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifr) == -1) {
810 del_mon_if(handle, sock_fd,
854 int sock_fd; local
2791 int sock_fd = -1, arptype; local
4136 has_wext(int sock_fd, const char *device, char *ebuf) argument
4182 enter_rfmon_mode_wext(pcap_t *handle, int sock_fd, const char *device) argument
4811 enter_rfmon_mode(pcap_t *handle, int sock_fd, const char *device) argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/src/router/ppp/pppoecd/
H A Dsys-linux.c84 static int sock_fd = -1; /* socket for doing interface ioctls */ variable
215 sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
216 if (sock_fd < 0)
249 if (sock_fd >= 0)
250 close(sock_fd);
618 if (ifunit >= 0 && ioctl(sock_fd, SIOCSIFMTU, (caddr_t) &ifr) < 0)
685 if (ioctl(sock_fd, SIOCGPPPSTATS, &req) < 0) {
741 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) < 0) {
761 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifreq) < 0)
769 if (ioctl(sock_fd, SIOCGIFNETMAS
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/ppp-2.4.4/pppd/
H A Dsys-linux.c175 static int sock_fd = -1; /* socket for doing interface ioctls */ variable
311 sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
312 if (sock_fd < 0)
360 if (sock_fd >= 0)
361 close(sock_fd);
1163 if (ifunit >= 0 && ioctl(sock_fd, SIOCSIFMTU, (caddr_t) &ifr) < 0)
1178 if (ifunit >= 0 && ioctl(sock_fd, SIOCGIFMTU, (caddr_t) &ifr) < 0) {
1346 if (ioctl(sock_fd, SIOCGPPPSTATS, &req) < 0) {
1612 if (ioctl(sock_fd, SIOCADDRT, &rt) < 0) {
1649 if (ioctl(sock_fd, SIOCDELR
1838 int ret, sock_fd; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/src/router/ppp/pppd/
H A Dsys-linux.c123 static int sock_fd = -1; /* socket for doing interface ioctls */ variable
277 sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
278 if (sock_fd < 0)
326 if (sock_fd >= 0)
327 close(sock_fd);
1084 if (ifunit >= 0 && ioctl(sock_fd, SIOCSIFMTU, (caddr_t) &ifr) < 0)
1259 if (ioctl(sock_fd, SIOCGPPPSTATS, &req) < 0) {
1519 if (ioctl(sock_fd, SIOCADDRT, &rt) < 0) {
1552 if (ioctl(sock_fd, SIOCDELRT, &rt) < 0 && errno != ESRCH) {
1590 if (ioctl(sock_fd, SIOCSAR
1748 int ret, sock_fd; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/sysklogd/
H A Dsyslogd.c474 int sock_fd; local
515 sock_fd = xsocket(AF_UNIX, SOCK_DGRAM, 0);
516 xbind(sock_fd, (struct sockaddr *) &sunx, sizeof(sunx));
530 FD_SET(sock_fd, &fds);
532 if (select(sock_fd + 1, &fds, NULL, NULL, NULL) < 0) {
540 if (FD_ISSET(sock_fd, &fds)) {
542 i = recv(sock_fd, G.recvbuf, MAX_READ - 1, 0);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/IGMP-PROXY/src/
H A Digmpv3.c2005 int sock_fd, ret; local
2014 sock_fd = socket(PF_NETLINK, SOCK_RAW, NETLINK_EMFC);
2016 if (sock_fd < 0)
2027 bind(sock_fd, (struct sockaddr *)&src_addr, sizeof(src_addr));
2041 close(sock_fd); /* Foxconn added, zacker, 06/20/2009 */
2063 ret = sendmsg(sock_fd, &msg, 0);
2067 close(sock_fd); /* Foxconn added, zacker, 06/20/2009 */
2075 ret = recvmsg(sock_fd, &msg, 0);
2079 close(sock_fd); /* Foxconn added, zacker, 06/20/2009 */
2091 close(sock_fd);
[all...]

Completed in 218 milliseconds