Searched refs:sktPtr (Results 1 – 1 of 1) sorted by relevance
/external/mdnsresponder/mDNSPosix/ |
D | mDNSPosix.c | 625 …Slocal int SetupSocket(struct sockaddr *intfAddr, mDNSIPPort port, int interfaceIndex, int *sktPtr) in SetupSocket() argument 635 assert(sktPtr != NULL); in SetupSocket() 636 assert(*sktPtr == -1); in SetupSocket() 639 if (intfAddr->sa_family == AF_INET) *sktPtr = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); in SetupSocket() 641 else if (intfAddr->sa_family == AF_INET6) *sktPtr = socket(PF_INET6, SOCK_DGRAM, IPPROTO_UDP); in SetupSocket() 645 …if (*sktPtr < 0) { err = errno; perror((intfAddr->sa_family == AF_INET) ? "socket AF_INET" : "sock… in SetupSocket() 651 err = setsockopt(*sktPtr, SOL_SOCKET, SO_REUSEPORT, &kOn, sizeof(kOn)); in SetupSocket() 653 err = setsockopt(*sktPtr, SOL_SOCKET, SO_REUSEADDR, &kOn, sizeof(kOn)); in SetupSocket() 668 err = setsockopt(*sktPtr, IPPROTO_IP, IP_PKTINFO, &kOn, sizeof(kOn)); in SetupSocket() 672 err = setsockopt(*sktPtr, IPPROTO_IP, IP_RECVDSTADDR, &kOn, sizeof(kOn)); in SetupSocket() [all …]
|