Lines Matching defs:sockfd
73 static int sockfd;
113 if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
192 close(sockfd);
716 if (ioctl(sockfd, SIOCSIFMTU, &ifr) < 0) {
885 if (ioctl(sockfd, SIOCGIFFLAGS, &ifr) < 0) {
890 if (ioctl(sockfd, SIOCSIFFLAGS, &ifr) < 0) {
908 if (ioctl(sockfd, SIOCGIFFLAGS, &ifr) < 0) {
914 if (ioctl(sockfd, SIOCSIFFLAGS, &ifr) < 0) {
959 if (ioctl(sockfd, SIOCSIFNETMASK, &ifr) < 0) {
964 if (ioctl(sockfd, SIOCSIFADDR, &ifr) < 0) {
969 if (ioctl(sockfd, SIOCSIFDSTADDR, &ifr) < 0) {
995 if (ioctl(sockfd, SIOCDELRT, &rt) < 0)
1018 if (ioctl(sockfd, SIOCADDRT, &rt) < 0) {
1044 if (ioctl(sockfd, SIOCDELRT, &rt) < 0) {
1070 if (ioctl(sockfd, SIOCSARP, (caddr_t) &arpreq) < 0) {
1092 if (ioctl(sockfd, SIOCDARP, (caddr_t)&arpreq) < 0) {
1121 if (ioctl(sockfd, SIOCGIFCONF, &ifc) < 0) {
1140 if (ioctl(sockfd, SIOCGIFFLAGS, &ifreq) < 0)
1150 if (ioctl(sockfd, SIOCGIFNETMASK, &ifreq) < 0)
1255 if (ioctl(sockfd, SIOCGIFCONF, &ifc) < 0) {
1273 if (ioctl(sockfd, SIOCGIFFLAGS, &ifreq) < 0)
1281 if (ioctl(sockfd, SIOCGIFNETMASK, &ifreq) < 0)