Lines Matching defs:ar

374 mDNSlocal void LogMcastService(mDNS *const m, const AuthRecord *const ar, request_state *req, reg_state status)
376 if (!AuthRecord_uDNS(ar)) // Check for Mcast Service
388 LogMcast("%s: %##s (%s) (%s) Client(%d)[%s]", status ? "+Service" : "-Service", ar->resrec.name->c, DNSTypeName(ar->resrec.rrtype),
389 ar->resrec.InterfaceID == mDNSInterface_LocalOnly ? "lo" : ar->resrec.InterfaceID == mDNSInterface_P2P ? "p2p" :
390 ar->resrec.InterfaceID == mDNSInterface_Any ? "all" : InterfaceNameForID(m, ar->resrec.InterfaceID),
2365 while (*ptr && &(*ptr)->ar != rr) ptr = &(*ptr)->next;
2386 mDNS_SetupResourceRecord(&ptr->ar, mDNSNULL, mDNSInterface_LocalOnly, kDNSType_PTR, 7200, kDNSRecordTypeShared, AuthRecordLocalOnly, FreeARElemCallback, ptr);
2387 MakeDomainNameFromDNSNameString(&ptr->ar.namestorage, mDNS_DomainTypeNames[type]);
2388 AppendDNSNameString (&ptr->ar.namestorage, "local");
2389 AssignDomainName(&ptr->ar.resrec.rdata->u.name, d);
2390 err = mDNS_Register(m, &ptr->ar);
2418 if (SameDomainName(&(*ptr)->ar.resrec.rdata->u.name, d) && SameDomainName((*ptr)->ar.resrec.name, &lhs))
2422 mDNS_Deregister(m, &rem->ar);
5255 mDNS_Deregister(&mDNSStorage, &rem->ar);
5504 const AuthRecord *ar;
5515 for (ar = ag->members; ar; ar = ar->next)
5517 if (ar->RecordCallback != FreeEtcHosts) continue;
5522 if (ar->ARType == AuthRecordLocalOnly)
5524 if (ar->resrec.InterfaceID == mDNSInterface_LocalOnly)
5525 LogMsgNoIdent(" %s LO %s", RecordTypeName(ar->resrec.RecordType), ARDisplayString(m, ar));
5528 mDNSu32 scopeid = (mDNSu32)(uintptr_t)ar->resrec.InterfaceID;
5529 LogMsgNoIdent(" %s %u %s", RecordTypeName(ar->resrec.RecordType), scopeid, ARDisplayString(m, ar));
5542 const AuthRecord *ar;
5549 for (ar = ag->members; ar; ar = ar->next)
5551 if (ar->RecordCallback == FreeEtcHosts) continue;
5555 if (ar->ARType == AuthRecordLocalOnly)
5556 LogMsgNoIdent(" %s LO %s", RecordTypeName(ar->resrec.RecordType), ARDisplayString(m, ar));
5557 else if (ar->ARType == AuthRecordP2P)
5558 LogMsgNoIdent(" %s PP %s", RecordTypeName(ar->resrec.RecordType), ARDisplayString(m, ar));
5575 mDNSlocal void LogOneAuthRecord(mDNS *const m, const AuthRecord *ar, mDNSs32 now, const char *const ifname)
5578 if (AuthRecord_uDNS(ar))
5581 ar->ThisAPInterval / mDNSPlatformOneSecond,
5582 (ar->LastAPTime + ar->ThisAPInterval - now) / mDNSPlatformOneSecond,
5583 ar->expire ? (ar->expire - now) / mDNSPlatformOneSecond : 0,
5584 ar->state,
5585 ar->AllowRemoteQuery ? "☠" : " ",
5586 ARDisplayString(m, ar));
5591 ar->ThisAPInterval / mDNSPlatformOneSecond,
5592 ar->AnnounceCount ? (ar->LastAPTime + ar->ThisAPInterval - now) / mDNSPlatformOneSecond : 0,
5593 ar->TimeExpire ? (ar->TimeExpire - now) / mDNSPlatformOneSecond : 0,
5595 ar->AllowRemoteQuery ? "☠" : " ",
5596 ARDisplayString(m, ar), AnonInfoToString(ar->resrec.AnonInfo, anstr, sizeof(anstr)));
5603 const AuthRecord *ar;
5605 for (ar = ResourceRecords; ar; ar=ar->next)
5607 const char *const ifname = InterfaceNameForID(m, ar->resrec.InterfaceID);
5608 if ((ar->WakeUp.HMAC.l[0] != 0) == (proxy != mDNSNULL))
5612 if (!mDNSPlatformMemSame(&owner, &ar->WakeUp, sizeof(owner)))
5614 owner = ar->WakeUp;
5622 if (AuthRecord_uDNS(ar))
5624 LogOneAuthRecord(m, ar, now, ifname);
5626 else if (ar->ARType == AuthRecordLocalOnly)
5628 LogMsgNoIdent(" LO %s", ARDisplayString(m, ar));
5630 else if (ar->ARType == AuthRecordP2P)
5632 LogMsgNoIdent(" PP %s", ARDisplayString(m, ar));
5636 LogOneAuthRecord(m, ar, now, ifname);
5637 if (ar->resrec.AnonInfo)
5639 ResourceRecord *nsec3 = ar->resrec.AnonInfo->nsec3RR;
5643 ar->ThisAPInterval / mDNSPlatformOneSecond,
5644 ar->AnnounceCount ? (ar->LastAPTime + ar->ThisAPInterval - now) / mDNSPlatformOneSecond : 0,
5645 ar->TimeExpire ? (ar->TimeExpire - now) / mDNSPlatformOneSecond : 0,
6137 if (b->next == (ARListElem *)~0 || b->ar.resrec.name->c[0] > 63)
6138 LogMemCorruption("LocalDomainEnumRecords: %p is garbage (%d)", b, b->ar.resrec.name->c[0]);