• Home
  • Raw
  • Download

Lines Matching refs:zd

1459 mDNSlocal mStatus GetZoneData_StartQuery(mDNS *const m, ZoneData *zd, mDNSu16 qtype);
1464 ZoneData *zd = (ZoneData*)question->QuestionContext; in GetZoneData_QuestionCallback() local
1480 AssignDomainName(&zd->ZoneName, answer->name); in GetZoneData_QuestionCallback()
1481 zd->ZoneClass = answer->rrclass; in GetZoneData_QuestionCallback()
1482 AssignDomainName(&zd->question.qname, &zd->ZoneName); in GetZoneData_QuestionCallback()
1483 GetZoneData_StartQuery(m, zd, kDNSType_SRV); in GetZoneData_QuestionCallback()
1485 else if (zd->CurrentSOA->c[0]) in GetZoneData_QuestionCallback()
1487 DomainAuthInfo *AuthInfo = GetAuthInfoForName(m, zd->CurrentSOA); in GetZoneData_QuestionCallback()
1492 LogInfo("GetZoneData_QuestionCallback: not chopping labels for %##s", zd->CurrentSOA->c); in GetZoneData_QuestionCallback()
1493 zd->ZoneDataCallback(m, mStatus_NoSuchNameErr, zd); in GetZoneData_QuestionCallback()
1497 zd->CurrentSOA = (domainname *)(zd->CurrentSOA->c + zd->CurrentSOA->c[0]+1); in GetZoneData_QuestionCallback()
1498 AssignDomainName(&zd->question.qname, zd->CurrentSOA); in GetZoneData_QuestionCallback()
1499 GetZoneData_StartQuery(m, zd, kDNSType_SOA); in GetZoneData_QuestionCallback()
1504 LogInfo("GetZoneData recursed to root label of %##s without finding SOA", zd->ChildName.c); in GetZoneData_QuestionCallback()
1505 zd->ZoneDataCallback(m, mStatus_NoSuchNameErr, zd); in GetZoneData_QuestionCallback()
1518 if (!answer->rdlength && zd->ZonePrivate && zd->ZoneService != ZoneServiceQuery) in GetZoneData_QuestionCallback()
1520zd->ZonePrivate = mDNSfalse; // Causes ZoneDataSRV() to yield a different SRV name when building t… in GetZoneData_QuestionCallback()
1521 GetZoneData_StartQuery(m, zd, kDNSType_SRV); // Try again, non-private this time in GetZoneData_QuestionCallback()
1528 AssignDomainName(&zd->Host, &answer->rdata->u.srv.target); in GetZoneData_QuestionCallback()
1529 zd->Port = answer->rdata->u.srv.port; in GetZoneData_QuestionCallback()
1530 AssignDomainName(&zd->question.qname, &zd->Host); in GetZoneData_QuestionCallback()
1531 GetZoneData_StartQuery(m, zd, kDNSType_A); in GetZoneData_QuestionCallback()
1535 zd->ZonePrivate = mDNSfalse; in GetZoneData_QuestionCallback()
1536 zd->Host.c[0] = 0; in GetZoneData_QuestionCallback()
1537 zd->Port = zeroIPPort; in GetZoneData_QuestionCallback()
1538 zd->Addr = zeroAddr; in GetZoneData_QuestionCallback()
1539 zd->ZoneDataCallback(m, mStatus_NoError, zd); in GetZoneData_QuestionCallback()
1549 zd->Addr.type = mDNSAddrType_IPv4; in GetZoneData_QuestionCallback()
1550 zd->Addr.ip.v4 = (answer->rdlength == 4) ? answer->rdata->u.ipv4 : zerov4Addr; in GetZoneData_QuestionCallback()
1556 zd->Addr.ip.v4.b[0] = 127; in GetZoneData_QuestionCallback()
1557 zd->Addr.ip.v4.b[1] = 0; in GetZoneData_QuestionCallback()
1558 zd->Addr.ip.v4.b[2] = 0; in GetZoneData_QuestionCallback()
1559 zd->Addr.ip.v4.b[3] = 1; in GetZoneData_QuestionCallback()
1562 zd->ZoneDataCallback(m, mStatus_NoError, zd); in GetZoneData_QuestionCallback()
1567 mDNSlocal mStatus GetZoneData_StartQuery(mDNS *const m, ZoneData *zd, mDNSu16 qtype) in GetZoneData_StartQuery() argument
1571 AssignDomainName(&zd->question.qname, ZoneDataSRV(zd)); in GetZoneData_StartQuery()
1572 AppendDomainName(&zd->question.qname, &zd->ZoneName); in GetZoneData_StartQuery()
1573 debugf("lookupDNSPort %##s", zd->question.qname.c); in GetZoneData_StartQuery()
1579 zd->question.ThisQInterval = -1; in GetZoneData_StartQuery()
1580 zd->question.InterfaceID = mDNSInterface_Any; in GetZoneData_StartQuery()
1581 zd->question.Target = zeroAddr; in GetZoneData_StartQuery()
1583 zd->question.qtype = qtype; in GetZoneData_StartQuery()
1584 zd->question.qclass = kDNSClass_IN; in GetZoneData_StartQuery()
1585 zd->question.LongLived = mDNSfalse; in GetZoneData_StartQuery()
1586 zd->question.ExpectUnique = mDNStrue; in GetZoneData_StartQuery()
1587 zd->question.ForceMCast = mDNSfalse; in GetZoneData_StartQuery()
1588 zd->question.ReturnIntermed = mDNStrue; in GetZoneData_StartQuery()
1589 zd->question.SuppressUnusable = mDNSfalse; in GetZoneData_StartQuery()
1590 zd->question.SearchListIndex = 0; in GetZoneData_StartQuery()
1591 zd->question.AppendSearchDomains = 0; in GetZoneData_StartQuery()
1592 zd->question.RetryWithSearchDomains = mDNSfalse; in GetZoneData_StartQuery()
1593 zd->question.TimeoutQuestion = 0; in GetZoneData_StartQuery()
1594 zd->question.WakeOnResolve = 0; in GetZoneData_StartQuery()
1595 zd->question.qnameOrig = mDNSNULL; in GetZoneData_StartQuery()
1596 zd->question.QuestionCallback = GetZoneData_QuestionCallback; in GetZoneData_StartQuery()
1597 zd->question.QuestionContext = zd; in GetZoneData_StartQuery()
1600 return(mDNS_StartQuery(m, &zd->question)); in GetZoneData_StartQuery()
1608 ZoneData *zd = (ZoneData*)mDNSPlatformMemAllocate(sizeof(ZoneData)); in StartGetZoneData() local
1609 if (!zd) { LogMsg("ERROR: StartGetZoneData - mDNSPlatformMemAllocate failed"); return mDNSNULL; } in StartGetZoneData()
1610 mDNSPlatformMemZero(zd, sizeof(ZoneData)); in StartGetZoneData()
1611 AssignDomainName(&zd->ChildName, name); in StartGetZoneData()
1612 zd->ZoneService = target; in StartGetZoneData()
1613 zd->CurrentSOA = (domainname *)(&zd->ChildName.c[initialskip]); in StartGetZoneData()
1614 zd->ZoneName.c[0] = 0; in StartGetZoneData()
1615 zd->ZoneClass = 0; in StartGetZoneData()
1616 zd->Host.c[0] = 0; in StartGetZoneData()
1617 zd->Port = zeroIPPort; in StartGetZoneData()
1618 zd->Addr = zeroAddr; in StartGetZoneData()
1619 zd->ZonePrivate = AuthInfo && AuthInfo->AutoTunnel ? mDNStrue : mDNSfalse; in StartGetZoneData()
1620 zd->ZoneDataCallback = callback; in StartGetZoneData()
1621 zd->ZoneDataContext = ZoneDataContext; in StartGetZoneData()
1623 zd->question.QuestionContext = zd; in StartGetZoneData()
1638 AssignDomainName(&zd->ZoneName, &AuthInfo->domain); in StartGetZoneData()
1639 zd->ZoneClass = kDNSClass_IN; in StartGetZoneData()
1640 AssignDomainName(&zd->Host, &AuthInfo->hostname); in StartGetZoneData()
1641 zd->Port = AuthInfo->port; in StartGetZoneData()
1642 AssignDomainName(&zd->question.qname, &zd->Host); in StartGetZoneData()
1643 GetZoneData_StartQuery(m, zd, kDNSType_A); in StartGetZoneData()
1648 AssignDomainName(&zd->question.qname, zd->CurrentSOA); in StartGetZoneData()
1649 GetZoneData_StartQuery(m, zd, kDNSType_SOA); in StartGetZoneData()
1653 return zd; in StartGetZoneData()