Home
last modified time | relevance | path

Searched refs:intfAddr (Results 1 – 1 of 1) sorted by relevance

/external/mdnsresponder/mDNSPosix/
DmDNSPosix.c625 mDNSlocal int SetupSocket(struct sockaddr *intfAddr, mDNSIPPort port, int interfaceIndex, int *sktP… in SetupSocket() argument
634 assert(intfAddr != NULL); 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()
661 if (intfAddr->sa_family == AF_INET) in SetupSocket()
697 imr.imr_interface = ((struct sockaddr_in*)intfAddr)->sin_addr; in SetupSocket()
705 …err = setsockopt(*sktPtr, IPPROTO_IP, IP_MULTICAST_IF, &((struct sockaddr_in*)intfAddr)->sin_addr,… in SetupSocket()
738 else if (intfAddr->sa_family == AF_INET6) in SetupSocket()
850 mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct sockaddr *intfMask… in SetupOneInterface() argument
[all …]