Home | History | Annotate | Download | only in mDNSPosix

Lines Matching defs:sockfd

95 	int sockfd = -1;
104 sockfd = socket(AF_INET6, SOCK_DGRAM, 0);
105 if (sockfd < 0) {
174 if (ioctl(sockfd, SIOCGIFFLAGS, &ifr) < 0) {
207 if (sockfd != -1) {
209 int sockfd_closed = close(sockfd);
225 int sockfd, sockf6, len, lastlen, flags, myflags;
242 sockfd = -1;
247 sockfd = socket(AF_INET, SOCK_DGRAM, 0);
248 if (sockfd < 0) {
261 if (ioctl(sockfd, SIOCGIFCONF, &ifc) < 0) {
304 if (ioctl(sockfd, SIOCGIFFLAGS, &ifrcopy) < 0) {
328 if ( 0 >= ioctl(sockfd, SIOCGIFINDEX, &ifrcopy))
349 if (ioctl(sockfd, SIOCGIFNETMASK, &ifrcopy) < 0) {
379 if (ioctl(sockfd, SIOCGIFBRDADDR, &ifrcopy) < 0) {
398 if (ioctl(sockfd, SIOCGIFDSTADDR, &ifrcopy) < 0) {
482 if (sockfd != -1) {
483 junk = close(sockfd);