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

Lines Matching defs:sock_fd

180 static int sock_fd = -1;	/* socket for doing interface ioctls */
317 sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
318 if (sock_fd < 0)
366 if (sock_fd >= 0)
367 close(sock_fd);
1158 if (ifunit >= 0 && ioctl(sock_fd, SIOCSIFMTU, (caddr_t) &ifr) < 0)
1173 if (ifunit >= 0 && ioctl(sock_fd, SIOCGIFMTU, (caddr_t) &ifr) < 0) {
1344 if (ioctl(sock_fd, SIOCGPPPSTATS, &req) < 0) {
1612 if (ioctl(sock_fd, SIOCADDRT, &rt) < 0) {
1645 if (ioctl(sock_fd, SIOCDELRT, &rt) < 0 && errno != ESRCH) {
1683 if (ioctl(sock_fd, SIOCSARP, (caddr_t)&arpreq) < 0) {
1724 if (ioctl(sock_fd, SIOCDARP, (caddr_t)&arpreq) < 0) {
1755 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) < 0) {
1778 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifreq) < 0)
1786 if (ioctl(sock_fd, SIOCGIFNETMASK, &ifreq) < 0)
1820 if (ioctl (sock_fd, SIOCGIFHWADDR, &bestifreq) < 0) {
1850 int ret, sock_fd;
1852 sock_fd = socket(AF_INET, SOCK_DGRAM, 0);
1853 if (sock_fd < 0)
1857 ret = ioctl(sock_fd, SIOCGIFHWADDR, &ifreq);
1858 close(sock_fd);
1907 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) < 0) {
1927 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifreq) < 0)
1935 if (ioctl(sock_fd, SIOCGIFNETMASK, &ifreq) < 0)
2259 if (ioctl(sock_fd, SIOCGIFFLAGS, (caddr_t) &ifr) < 0) {
2266 if (ioctl(sock_fd, SIOCSIFFLAGS, (caddr_t) &ifr) < 0) {
2291 if (ioctl(sock_fd, SIOCGIFFLAGS, (caddr_t) &ifr) < 0) {
2299 if (ioctl(sock_fd, SIOCSIFFLAGS, (caddr_t) &ifr) < 0) {
2330 if (ioctl(sock_fd, SIOCSIFADDR, (caddr_t) &ifr) < 0) {
2344 if (ioctl(sock_fd, SIOCSIFDSTADDR, (caddr_t) &ifr) < 0) {
2357 if (ioctl(sock_fd, SIOCSIFNETMASK, (caddr_t) &ifr) < 0) {
2380 if (ioctl(sock_fd, SIOCADDRT, &rt) < 0) {
2437 if (ioctl(sock_fd, SIOCDELRT, &rt) < 0 && errno != ESRCH) {
2449 if (ioctl(sock_fd, SIOCSIFADDR, (caddr_t) &ifr) < 0) {