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

/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/samba-3.0.13/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-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/arch/um/drivers/
H A Dport_user.c155 int sock_fd; member in struct:port_pre_exec_data
163 dup2(data->sock_fd, 0);
164 dup2(data->sock_fd, 1);
165 dup2(data->sock_fd, 2);
166 os_close_file(data->sock_fd);
188 { .sock_fd = new,
/netgear-WNDR4500-V1.0.1.40_1.0.68/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-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/ppp/pppoecd/
H A Dsys-linux.c84 static int sock_fd = -1; /* socket for doing interface ioctls */ variable
213 sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
214 if (sock_fd < 0)
247 if (sock_fd >= 0)
248 close(sock_fd);
616 if (ifunit >= 0 && ioctl(sock_fd, SIOCSIFMTU, (caddr_t) &ifr) < 0)
683 if (ioctl(sock_fd, SIOCGPPPSTATS, &req) < 0) {
739 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) < 0) {
759 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifreq) < 0)
767 if (ioctl(sock_fd, SIOCGIFNETMAS
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/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-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/ppp/pppd/
H A Dsys-linux.c124 static int sock_fd = -1; /* socket for doing interface ioctls */ variable
278 sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
279 if (sock_fd < 0)
327 if (sock_fd >= 0)
328 close(sock_fd);
1085 if (ifunit >= 0 && ioctl(sock_fd, SIOCSIFMTU, (caddr_t) &ifr) < 0)
1260 if (ioctl(sock_fd, SIOCGPPPSTATS, &req) < 0) {
1520 if (ioctl(sock_fd, SIOCADDRT, &rt) < 0) {
1553 if (ioctl(sock_fd, SIOCDELRT, &rt) < 0 && errno != ESRCH) {
1591 if (ioctl(sock_fd, SIOCSAR
1749 int ret, sock_fd; local
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/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-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/IGMP-PROXY/src/
H A Digmpv3.c1830 int sock_fd, ret; local
1839 sock_fd = socket(PF_NETLINK, SOCK_RAW, NETLINK_EMFC);
1841 if (sock_fd < 0)
1852 bind(sock_fd, (struct sockaddr *)&src_addr, sizeof(src_addr));
1866 close(sock_fd); /* Foxconn added, zacker, 06/20/2009 */
1888 ret = sendmsg(sock_fd, &msg, 0);
1892 close(sock_fd); /* Foxconn added, zacker, 06/20/2009 */
1900 ret = recvmsg(sock_fd, &msg, 0);
1904 close(sock_fd); /* Foxconn added, zacker, 06/20/2009 */
1916 close(sock_fd);
[all...]

Completed in 180 milliseconds