Lines Matching defs:sockfd
18 int res, sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
22 if (sockfd < 0)
27 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req_version, &size);
34 return sockfd;
42 int res, sockfd;
44 sockfd = get_version(&req.version);
47 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req, &size);
48 close(sockfd);
71 int res, sockfd;
73 sockfd = get_version(&req.version);
77 res = getsockopt(sockfd, SOL_IP, SO_IP_SET, &req, &size);
78 close(sockfd);