Lines Matching defs:sock
82 int set_ioctl(int sock, struct ifreq *req)
84 if (ioctl(sock, ZDAPIOCTL, req) < 0) {
94 int read_reg(int sock, struct ifreq *req)
98 if (!set_ioctl(sock, req))
110 int read_mem(int sock, struct ifreq *req)
115 if (!set_ioctl(sock, req))
137 int sock;
182 sock = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
183 if (sock < 0) {
361 set_ioctl(sock, &req);