Lines Matching refs:inIFA
94 mDNSlocal mStatus SetupInterface( mDNS * const inMDNS, const struct ifaddrs *inIFA, mDNSInterface…
2728 mDNSlocal mStatus SetupInterface( mDNS * const inMDNS, const struct ifaddrs *inIFA, mDNSInterfaceDa… in SetupInterface() argument
2738 check( inIFA ); in SetupInterface()
2739 check( inIFA->ifa_addr ); in SetupInterface()
2751 ifd->index = inIFA->ifa_extra.index; in SetupInterface()
2752 ifd->scopeID = inIFA->ifa_extra.index; in SetupInterface()
2753 check( strlen( inIFA->ifa_name ) < sizeof( ifd->name ) ); in SetupInterface()
2754 strncpy( ifd->name, inIFA->ifa_name, sizeof( ifd->name ) - 1 ); in SetupInterface()
2757 strncpy(ifd->interfaceInfo.ifname, inIFA->ifa_name, sizeof(ifd->interfaceInfo.ifname)); in SetupInterface()
2767 …ifd->interfaceInfo.McastTxRx = ( ( inIFA->ifa_flags & IFF_MULTICAST ) && !( inIFA->ifa_flags & I… in SetupInterface()
2779 if ( ( inIFA->ifa_addr->sa_family != AF_INET ) && in SetupInterface()
2801 err = SetupSocket( inMDNS, inIFA->ifa_addr, MulticastDNSPort, &ifd->sock.fd ); in SetupInterface()
2803 …ifd->sock.addr = ( inIFA->ifa_addr->sa_family == AF_INET6 ) ? AllDNSLinkGroup_v6 : AllDNSLinkGroup… in SetupInterface()
2816 if ( inIFA->ifa_dhcpEnabled && ( inIFA->ifa_dhcpLeaseExpires < inMDNS->p->nextDHCPLeaseExpires ) ) in SetupInterface()
2818 inMDNS->p->nextDHCPLeaseExpires = inIFA->ifa_dhcpLeaseExpires; in SetupInterface()
2821 ifd->interfaceInfo.NetWake = inIFA->ifa_womp; in SetupInterface()
2825 err = SockAddrToMDNSAddr( inIFA->ifa_addr, &ifd->interfaceInfo.ip, NULL ); in SetupInterface()
2828 err = SockAddrToMDNSAddr( inIFA->ifa_netmask, &ifd->interfaceInfo.mask, NULL ); in SetupInterface()
2831 memcpy( ifd->interfaceInfo.MAC.b, inIFA->ifa_physaddr, sizeof( ifd->interfaceInfo.MAC.b ) ); in SetupInterface()
2845 dlog( kDebugLevelInfo, DEBUG_NAME "Registered interface %##a with mDNS\n", inIFA->ifa_addr ); in SetupInterface()