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