Lines Matching defs:ka
767 // CacheRecord *ka is the CacheRecord from the known answer list in the query.
774 mDNSlocal mDNSBool ShouldSuppressKnownAnswer(const CacheRecord *const ka, const AuthRecord *const rr)
777 if (!IdenticalResourceRecord(&ka->resrec, &rr->resrec)) return(mDNSfalse);
788 return (mDNSBool)(ka->resrec.rroriginalttl >= rr->resrec.rroriginalttl / 2);
2951 CacheRecord **ka = *kalistptrptr; // Make a working copy of the pointer we're going to update
2956 rr->NextInKAList == mDNSNULL && ka != &rr->NextInKAList && // which is not already in the known answer list
2968 *ka = rr; // Link this record into our known answer chain
2969 ka = &rr->NextInKAList;
2979 ka = *kalistptrptr; // Go back to where we started and retract these answer records
2980 while (*ka) { CacheRecord *c = *ka; *ka = mDNSNULL; ka = &c->NextInKAList; }
2988 *kalistptrptr = ka; // Update the known answer list pointer
2993 rr->NextInKAList == mDNSNULL && ka != &rr->NextInKAList && // which is not in the known answer list
3631 CacheRecord *ka = KnownAnswerList;
3632 mDNSu32 SecsSinceRcvd = ((mDNSu32)(m->timenow - ka->TimeRcvd)) / mDNSPlatformOneSecond;
3633 mDNSu8 *newptr = PutResourceRecordTTLWithLimit(&m->omsg, queryptr, &m->omsg.h.numAnswers, &ka->resrec, ka->resrec.rroriginalttl - SecsSinceRcvd,
3638 ka->resrec.name->c, DNSTypeName(ka->resrec.rrtype), queryptr - m->omsg.data, newptr - m->omsg.data);
3640 KnownAnswerList = ka->NextInKAList;
3641 ka->NextInKAList = mDNSNULL;