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

/external/ppp/pppd/
H A Dsys-linux.c177 static int sock_fd = -1; /* socket for doing interface ioctls */ variable
313 sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
314 if (sock_fd < 0)
362 if (sock_fd >= 0)
363 close(sock_fd);
1166 if (ifunit >= 0 && ioctl(sock_fd, SIOCSIFMTU, (caddr_t) &ifr) < 0)
1181 if (ifunit >= 0 && ioctl(sock_fd, SIOCGIFMTU, (caddr_t) &ifr) < 0) {
1349 if (ioctl(sock_fd, SIOCGPPPSTATS, &req) < 0) {
1617 if (ioctl(sock_fd, SIOCADDRT, &rt) < 0) {
1650 if (ioctl(sock_fd, SIOCDELR
1839 int ret, sock_fd; local
[all...]
/external/libpcap/
H A Dpcap-linux.c1392 int sock_fd = -1, arptype; local
1405 sock_fd = device ?
1409 if (sock_fd == -1) {
1429 handle->md.lo_ifindex = iface_get_id(sock_fd, "lo", ebuf);
1446 arptype = iface_get_arptype(sock_fd, device, ebuf);
1468 if (close(sock_fd) == -1) {
1473 sock_fd = socket(PF_PACKET, SOCK_DGRAM,
1475 if (sock_fd == -1) {
1514 handle->md.ifindex = iface_get_id(sock_fd, device, ebuf);
1518 if ((err = iface_bind(sock_fd, handl
[all...]

Completed in 19 milliseconds