Home | History | Annotate | Download | only in src

Lines Matching full:sock

54 	int sock;
61 sock = socket(AF_INET, SOCK_DGRAM, 0);
62 if (sock<0)
68 ret = ioctl(sock, SIOCGIFFLAGS, &ifr);
70 close(sock);
75 close(sock);
83 ioctl(sock, SIOCETHTOOL, &ifr);
86 ioctl(sock, SIOCETHTOOL, &ifr);
88 close(sock);
95 int sock;
102 sock = socket(AF_INET, SOCK_DGRAM, 0);
103 if (sock<0)
109 ret = ioctl(sock, SIOCGIFFLAGS, &ifr);
111 close(sock);
116 close(sock);
124 ioctl(sock, SIOCETHTOOL, &ifr);
136 close(sock);