Lines Matching refs:mDNSu32
204 mDNSu32 oldtotalused = r->rrauth_totalused;
205 mDNSu32 slot;
238 mDNSexport AuthGroup *AuthGroupForName(AuthHash *r, const mDNSu32 slot, const mDNSu32 namehash, const domainname *const name)
247 mDNSexport AuthGroup *AuthGroupForRecord(AuthHash *r, const mDNSu32 slot, const ResourceRecord *const rr)
252 mDNSlocal AuthGroup *GetAuthGroup(AuthHash *r, const mDNSu32 slot, const ResourceRecord *const rr)
283 const mDNSu32 slot = AuthHashSlot(rr->resrec.name);
300 const mDNSu32 slot = AuthHashSlot(rr->resrec.name);
322 mDNSexport CacheGroup *CacheGroupForName(const mDNS *const m, const mDNSu32 slot, const mDNSu32 namehash, const domainname *const name)
331 mDNSlocal CacheGroup *CacheGroupForRecord(const mDNS *const m, const mDNSu32 slot, const ResourceRecord *const rr)
401 const mDNSu32 c = q->CNAMEReferrals + 1; // Stash a copy of the new q->CNAMEReferrals value
956 const mDNSu32 slot = AuthHashSlot(rr->resrec.name);
983 const mDNSu32 slot = AuthHashSlot(rr->resrec.name);
1006 const mDNSu32 slot = AuthHashSlot(rr->resrec.name);
1372 const mDNSu32 slot = AuthHashSlot(rr->resrec.name);
1892 mDNSlocal mDNSu16 CheckSum(const void *const data, mDNSs32 length, mDNSu32 sum)
1901 mDNSlocal mDNSu16 IPv6CheckSum(const mDNSv6Addr *const src, const mDNSv6Addr *const dst, const mDNSu8 protocol, const void *const data, const mDNSu32 length)
2500 mDNSexport void ScheduleNextCacheCheckTime(mDNS *const m, const mDNSu32 slot, const mDNSs32 event)
2522 rr->NextRequiredQuery += mDNSRandom((mDNSu32)TicksTTL(rr)/50);
2530 #define kMinimumReconfirmTime ((mDNSu32)mDNSPlatformOneSecond * 5)
2531 #define kDefaultReconfirmTimeForWake ((mDNSu32)mDNSPlatformOneSecond * 5)
2532 #define kDefaultReconfirmTimeForNoAnswer ((mDNSu32)mDNSPlatformOneSecond * 5)
2533 #define kDefaultReconfirmTimeForFlappingInterface ((mDNSu32)mDNSPlatformOneSecond * 30)
2535 mDNSlocal mStatus mDNS_Reconfirm_internal(mDNS *const m, CacheRecord *const rr, mDNSu32 interval)
2565 CacheRecord ***kalistptrptr, mDNSu32 *answerforecast)
2578 mDNSu32 forecast = *answerforecast;
2579 const mDNSu32 slot = HashSlot(&q->qname);
2648 mDNSlocal void ReconfirmAntecedents(mDNS *const m, const domainname *const name, const mDNSu32 namehash, const int depth)
2650 mDNSu32 slot;
2670 mDNSlocal const CacheRecord *CacheHasAddressTypeForName(mDNS *const m, const domainname *const name, const mDNSu32 namehash)
2682 mDNSu32 bestmetric = 1000000;
2689 mDNSu32 metric = SPSMetric(cr->resrec.rdata->u.name.c);
2817 mDNSu32 forecast = (mDNSu32)DomainNameLength(&q->qname) + 4;
2818 const mDNSu32 slot = HashSlot(&q->qname);
2851 mDNSu32 slot;
3088 mDNSu32 answerforecast = OwnerRecordSpace; // We start by assuming we'll need at least enough space to put the Owner Option
3121 mDNSu32 forecast = answerforecast + 12 + ar->resrec.rdestimate;
3139 mDNSu32 SecsSinceRcvd = ((mDNSu32)(m->timenow - ka->TimeRcvd)) / mDNSPlatformOneSecond;
3414 mDNSu32 slot;
3486 mDNSlocal mDNSs32 CheckForSoonToExpireRecords(mDNS *const m, const domainname *const name, const mDNSu32 namehash, const mDNSu32 slot)
3533 q->LastQTime = m->timenow - InitialQuestionInterval + (mDNSs32)mDNSRandom((mDNSu32)mDNSPlatformOneSecond*4);
3711 mDNSlocal void CheckCacheExpiration(mDNS *const m, const mDNSu32 slot, CacheGroup *const cg)
3787 mDNSu32 slot = HashSlot(&q->qname);
3908 mDNSu32 SecsSinceRcvd = ((mDNSu32)(m->timenow - rr->TimeRcvd)) / mDNSPlatformOneSecond;
3978 mDNSu32 slot;
4067 mDNSu32 oldtotalused = m->rrcache_totalused;
4068 mDNSu32 slot;
4134 mDNSlocal CacheGroup *GetCacheGroup(mDNS *const m, const mDNSu32 slot, const ResourceRecord *const rr)
4297 mDNSu32 slot;
4318 mDNSu32 numchecked = 0;
4559 mDNSu32 slot;
5181 mDNSu32 slot;
5424 mDNSu32 maxttl = 0x70000000;
5651 mDNSu32 slot = HashSlot(pktrr->name);
5871 const mDNSu32 slot = HashSlot(&pktq.qname);
6107 m->SuppressSending = m->timenow + (delayresponse + (mDNSs32)mDNSRandom((mDNSu32)mDNSPlatformOneSecond*5) + 49) / 50;
6181 mDNSu32 remain = (mDNSu32)(RRExpireTime(cr) - m->timenow) / 4;
6182 if (remain > 240 * (mDNSu32)mDNSPlatformOneSecond)
6183 remain = 240 * (mDNSu32)mDNSPlatformOneSecond;
6190 if (remain <= 60 * (mDNSu32)mDNSPlatformOneSecond)
6332 if (SrcLocal && q->ExpectUnicastResp && (mDNSu32)(m->timenow - q->ExpectUnicastResp) < (mDNSu32)(mDNSPlatformOneSecond*2))
6356 mDNSexport CacheRecord *CreateNewCacheEntry(mDNS *const m, const mDNSu32 slot, CacheGroup *cg, mDNSs32 delay)
6394 mDNSlocal void RefreshCacheRecord(mDNS *const m, CacheRecord *rr, mDNSu32 ttl)
6407 mDNSexport void GrantCacheExtensions(mDNS *const m, DNSQuestion *q, mDNSu32 lease)
6410 const mDNSu32 slot = HashSlot(&q->qname);
6420 mDNSlocal mDNSu32 GetEffectiveTTL(const uDNS_LLQType LLQType, mDNSu32 ttl) // TTL in seconds
6550 const mDNSu32 slot = HashSlot(&q.qname);
6813 const mDNSu32 slot = HashSlot(m->rec.r.resrec.name);
6946 const mDNSu32 slot = HashSlot(r1->resrec.name);
7057 mDNSu32 slot = HashSlot(&q.qname);
7096 mDNSu32 negttl = 60;
7099 mDNSu32 hash = q.qnamehash;
7116 mDNSu32 ttl_s = soa->min;
7242 mDNSu32 updatelease = 0;
7384 mDNSu32 updatelease = 60 * 60; // If SPS fails to indicate lease time, assume one hour
7434 mDNSu32 namehash, const mDNSu16 rrtype, const mDNSu16 rrclass, mDNSu32 ttl_seconds, mDNSInterfaceID InterfaceID, DNSServer *dnsserver)
7708 mDNSexport McastResolver *mDNS_AddMcastResolver(mDNS *const m, const domainname *d, const mDNSInterfaceID interface, mDNSu32 timeout)
7807 mDNSlocal mDNSu32 GetTimeoutForMcastQuestion(mDNS *m, DNSQuestion *question)
7831 mDNSexport mDNSu32 SetValidDNSServers(mDNS *m, DNSQuestion *question)
7838 mDNSu32 timeout = 0;
8098 mDNSu32 slot;
8159 mDNSu32 slot;
8466 mDNSu32 timeout = SetValidDNSServers(m, question);
8541 const mDNSu32 slot = HashSlot(&question->qname);
8704 const mDNSu32 slot = HashSlot(&question->qname);
9080 mDNSexport mStatus mDNS_Update(mDNS *const m, AuthRecord *const rr, mDNSu32 newttl,
9131 mDNSu32 delay = 6 - rr->UpdateCredits; // Delay 1 second, then 2, then 3, etc. up to 6 seconds maximum
9225 mDNSPlatformMemCopy(p, &m->HIHardware, 1 + (mDNSu32)m->HIHardware.c[0]);
9227 mDNSPlatformMemCopy(p, &m->HISoftware, 1 + (mDNSu32)m->HISoftware.c[0]);
9505 if (!m->SuppressSending) m->SuppressSending = m->timenow + (mDNSs32)mDNSRandom((mDNSu32)InitialQuestionInterval);
9616 mDNSu32 slot;
9678 mDNSu32 slot;
9724 mDNSu32 i;
9771 AuthRecord *SubTypes, mDNSu32 NumSubTypes,
9772 mDNSInterfaceID InterfaceID, mDNSServiceCallback Callback, void *Context, mDNSu32 flags)
9775 mDNSu32 i;
9776 mDNSu32 hostTTL;
9905 ExtraResourceRecord *extra, RData *rdata, mDNSu32 ttl, mDNSu32 includeP2P)
10042 mDNSu32 i;
10590 mDNSlocal void mDNS_GrowCache_internal(mDNS *const m, CacheEntity *storage, mDNSu32 numrecords)
10594 mDNSu32 i;
10603 mDNSexport void mDNS_GrowCache(mDNS *const m, CacheEntity *storage, mDNSu32 numrecords)
10611 CacheEntity *rrcachestorage, mDNSu32 rrcachesize,
10614 mDNSu32 slot;
10848 const mDNSu32 slot = HashSlot(&q->qname);
10864 const mDNSu32 slot = HashSlot(&q->qname);
11029 mDNSu32 slot;
11433 mDNSu32 rrcache_active = 0;
11434 mDNSu32 rrcache_totalused = 0;
11435 mDNSu32 slot;