• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/router/ppp/pppd/

Lines Matching defs:sock_fd

124 static int sock_fd = -1;	/* socket for doing interface ioctls */
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, SIOCSARP, (caddr_t)&arpreq) < 0) {
1632 if (ioctl(sock_fd, SIOCDARP, (caddr_t)&arpreq) < 0) {
1660 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) < 0) {
1683 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifreq) < 0)
1691 if (ioctl(sock_fd, SIOCGIFNETMASK, &ifreq) < 0)
1719 if (ioctl (sock_fd, SIOCGIFHWADDR, &ifreq) < 0) {
1749 int ret, sock_fd;
1751 sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
1752 if (sock_fd < 0)
1756 ret = ioctl(sock_fd, SIOCGIFHWADDR, &ifreq);
1757 close(sock_fd);
1806 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) < 0) {
1826 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifreq) < 0)
1834 if (ioctl(sock_fd, SIOCGIFNETMASK, &ifreq) < 0)
2148 if (ioctl(sock_fd, SIOCGIFFLAGS, (caddr_t) &ifr) < 0) {
2155 if (ioctl(sock_fd, SIOCSIFFLAGS, (caddr_t) &ifr) < 0) {
2180 if (ioctl(sock_fd, SIOCGIFFLAGS, (caddr_t) &ifr) < 0) {
2188 if (ioctl(sock_fd, SIOCSIFFLAGS, (caddr_t) &ifr) < 0) {
2219 if (ioctl(sock_fd, SIOCSIFADDR, (caddr_t) &ifr) < 0) {
2233 if (ioctl(sock_fd, SIOCSIFDSTADDR, (caddr_t) &ifr) < 0) {
2246 if (ioctl(sock_fd, SIOCSIFNETMASK, (caddr_t) &ifr) < 0) {
2269 if (ioctl(sock_fd, SIOCADDRT, &rt) < 0) {
2326 if (ioctl(sock_fd, SIOCDELRT, &rt) < 0 && errno != ESRCH) {
2338 if (ioctl(sock_fd, SIOCSIFADDR, (caddr_t) &ifr) < 0) {