• Home
  • Raw
  • Download

Lines Matching refs:intfAddr

625 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()
698 imr.imr_interface = ((struct sockaddr_in*)intfAddr)->sin_addr; in SetupSocket()
706 …err = setsockopt(*sktPtr, IPPROTO_IP, IP_MULTICAST_IF, &((struct sockaddr_in*)intfAddr)->sin_addr,… in SetupSocket()
739 else if (intfAddr->sa_family == AF_INET6) in SetupSocket()
851 mDNSlocal int SetupOneInterface(mDNS *const m, struct sockaddr *intfAddr, struct sockaddr *intfMask… in SetupOneInterface() argument
858 assert(intfAddr != NULL); in SetupOneInterface()
876 SockAddrTomDNSAddr(intfAddr, &intf->coreIntf.ip, NULL); in SetupOneInterface()
903 if (alias->multicastSocket4 == -1 && intfAddr->sa_family == AF_INET) in SetupOneInterface()
904 err = SetupSocket(intfAddr, MulticastDNSPort, intf->index, &alias->multicastSocket4); in SetupOneInterface()
906 else if (alias->multicastSocket6 == -1 && intfAddr->sa_family == AF_INET6) in SetupOneInterface()
907 err = SetupSocket(intfAddr, MulticastDNSPort, intf->index, &alias->multicastSocket6); in SetupOneInterface()