Lines Matching defs:zd

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