Lines Matching refs:ag
257 AuthGroup *ag; in AuthGroupForName() local
258 for (ag = r->rrauth_hash[slot]; ag; ag=ag->next) in AuthGroupForName()
259 if (ag->namehash == namehash && SameDomainName(ag->name, name)) in AuthGroupForName()
261 return(ag); in AuthGroupForName()
272 AuthGroup *ag = (AuthGroup*)GetAuthEntity(r, mDNSNULL); in GetAuthGroup() local
273 …if (!ag) { LogMsg("GetAuthGroup: Failed to allocate memory for %##s", rr->name->c); return(mDNSNUL… in GetAuthGroup()
274 ag->next = r->rrauth_hash[slot]; in GetAuthGroup()
275 ag->namehash = rr->namehash; in GetAuthGroup()
276 ag->members = mDNSNULL; in GetAuthGroup()
277 ag->rrauth_tail = &ag->members; in GetAuthGroup()
278 ag->NewLocalOnlyRecords = mDNSNULL; in GetAuthGroup()
279 if (namelen > sizeof(ag->namestorage)) in GetAuthGroup()
280 ag->name = mDNSPlatformMemAllocate(namelen); in GetAuthGroup()
282 ag->name = (domainname*)ag->namestorage; in GetAuthGroup()
283 if (!ag->name) in GetAuthGroup()
286 ReleaseAuthEntity(r, (AuthEntity*)ag); in GetAuthGroup()
289 AssignDomainName(ag->name, rr->name); in GetAuthGroup()
292 r->rrauth_hash[slot] = ag; in GetAuthGroup()
293 …if (AuthGroupForRecord(r, slot, rr) != ag) LogMsg("GetAuthGroup: Not finding AuthGroup for %##s", … in GetAuthGroup()
295 return(ag); in GetAuthGroup()
301 AuthGroup *ag; in InsertAuthRecord() local
303 ag = AuthGroupForRecord(r, slot, &rr->resrec); in InsertAuthRecord()
304 …if (!ag) ag = GetAuthGroup(r, slot, &rr->resrec); // If we don't have a AuthGroup for this name,… in InsertAuthRecord()
305 if (ag) in InsertAuthRecord()
308 *(ag->rrauth_tail) = rr; // Append this record to tail of cache slot list in InsertAuthRecord()
309 ag->rrauth_tail = &(rr->next); // Advance tail pointer in InsertAuthRecord()
311 return ag; in InsertAuthRecord()
317 AuthGroup **ag = &a; in RemoveAuthRecord() local
323 rp = &(*ag)->members; in RemoveAuthRecord()
337 (*ag)->rrauth_tail = rp; in RemoveAuthRecord()
1064 AuthGroup **ag = &a; in CheckAuthIdenticalRecord() local
1070 rp = &(*ag)->members; in CheckAuthIdenticalRecord()
1091 AuthGroup **ag = &a; in CheckAuthRecordConflict() local
1097 rp = &(*ag)->members; in CheckAuthRecordConflict()
1114 AuthGroup **ag = &a; in CheckAuthSameRecord() local
1120 rp = &(*ag)->members; in CheckAuthSameRecord()
1444 AuthGroup *ag; in mDNS_Register_internal() local
1445 ag = InsertAuthRecord(m, &m->rrauth, rr); in mDNS_Register_internal()
1446 if (ag && !ag->NewLocalOnlyRecords) { in mDNS_Register_internal()
1448 ag->NewLocalOnlyRecords = rr; in mDNS_Register_internal()
1534 AuthGroup **ag = &a; in mDNS_Deregister_internal() local
1540 rp = &(*ag)->members; in mDNS_Deregister_internal()
1715 AuthGroup *ag = RemoveAuthRecord(m, &m->rrauth, rr); in mDNS_Deregister_internal() local
1716 if (ag->NewLocalOnlyRecords == rr) ag->NewLocalOnlyRecords = rr->next; in mDNS_Deregister_internal()
4436 AuthGroup *ag; in AnswerQuestionWithLORecord() local
4442 ag = AuthGroupForName(&m->rrauth, slot, q->qnamehash, &q->qname); in AnswerQuestionWithLORecord()
4443 if (ag) in AnswerQuestionWithLORecord()
4445 m->CurrentRecord = ag->members; in AnswerQuestionWithLORecord()
4446 while (m->CurrentRecord && m->CurrentRecord != ag->NewLocalOnlyRecords) in AnswerQuestionWithLORecord()
4494 if (ag) in AnswerQuestionWithLORecord()
4496 lr = ag->NewLocalOnlyRecords; in AnswerQuestionWithLORecord()
4683 AuthGroup *ag; in AnswerNewLocalOnlyQuestion() local
4701 ag = AuthGroupForName(&m->rrauth, slot, q->qnamehash, &q->qname); in AnswerNewLocalOnlyQuestion()
4702 if (ag) in AnswerNewLocalOnlyQuestion()
4704 m->CurrentRecord = ag->members; in AnswerNewLocalOnlyQuestion()
4705 while (m->CurrentRecord && m->CurrentRecord != ag->NewLocalOnlyRecords) in AnswerNewLocalOnlyQuestion()
5022 AuthGroup *ag; in mDNS_Execute() local
5117 for (ag = m->rrauth.rrauth_hash[slot]; ag; ag = ag->next) in mDNS_Execute()
5119 m->CurrentRecord = ag->members; in mDNS_Execute()
5184 for (ag = m->rrauth.rrauth_hash[slot]; ag; ag = ag->next) in mDNS_Execute()
5186 for (i=0; i<100 && ag->NewLocalOnlyRecords; i++) in mDNS_Execute()
5188 AuthRecord *rr = ag->NewLocalOnlyRecords; in mDNS_Execute()
5189 ag->NewLocalOnlyRecords = ag->NewLocalOnlyRecords->next; in mDNS_Execute()
5294 AuthGroup *ag; in QuestionHasLocalAnswers() local
5297 ag = AuthGroupForName(&m->rrauth, slot, q->qnamehash, &q->qname); in QuestionHasLocalAnswers()
5298 if (ag) in QuestionHasLocalAnswers()
5300 for (rr = ag->members; rr; rr=rr->next) in QuestionHasLocalAnswers()
11128 AuthGroup *ag; in LocalRecordRmvEventsForQuestion() local
11141 ag = AuthGroupForName(&m->rrauth, slot, q->qnamehash, &q->qname); in LocalRecordRmvEventsForQuestion()
11142 if (ag) in LocalRecordRmvEventsForQuestion()
11144 for (rr = ag->members; rr; rr=rr->next) in LocalRecordRmvEventsForQuestion()