• Home
  • Raw
  • Download

Lines Matching refs:ag

240 	AuthGroup *ag;  in AuthGroupForName()  local
241 for (ag = r->rrauth_hash[slot]; ag; ag=ag->next) in AuthGroupForName()
242 if (ag->namehash == namehash && SameDomainName(ag->name, name)) in AuthGroupForName()
244 return(ag); in AuthGroupForName()
255 AuthGroup *ag = (AuthGroup*)GetAuthEntity(r, mDNSNULL); in GetAuthGroup() local
256 …if (!ag) { LogMsg("GetAuthGroup: Failed to allocate memory for %##s", rr->name->c); return(mDNSNUL… in GetAuthGroup()
257 ag->next = r->rrauth_hash[slot]; in GetAuthGroup()
258 ag->namehash = rr->namehash; in GetAuthGroup()
259 ag->members = mDNSNULL; in GetAuthGroup()
260 ag->rrauth_tail = &ag->members; in GetAuthGroup()
261 ag->name = (domainname*)ag->namestorage; in GetAuthGroup()
262 ag->NewLocalOnlyRecords = mDNSNULL; in GetAuthGroup()
263 if (namelen > InlineCacheGroupNameSize) ag->name = mDNSPlatformMemAllocate(namelen); in GetAuthGroup()
264 if (!ag->name) in GetAuthGroup()
267 ReleaseAuthEntity(r, (AuthEntity*)ag); in GetAuthGroup()
270 AssignDomainName(ag->name, rr->name); in GetAuthGroup()
273 r->rrauth_hash[slot] = ag; in GetAuthGroup()
274 …if (AuthGroupForRecord(r, slot, rr) != ag) LogMsg("GetAuthGroup: Not finding AuthGroup for %##s", … in GetAuthGroup()
276 return(ag); in GetAuthGroup()
282 AuthGroup *ag; in InsertAuthRecord() local
284 ag = AuthGroupForRecord(r, slot, &rr->resrec); in InsertAuthRecord()
285 …if (!ag) ag = GetAuthGroup(r, slot, &rr->resrec); // If we don't have a AuthGroup for this name, m… in InsertAuthRecord()
286 if (ag) in InsertAuthRecord()
289 *(ag->rrauth_tail) = rr; // Append this record to tail of cache slot list in InsertAuthRecord()
290 ag->rrauth_tail = &(rr->next); // Advance tail pointer in InsertAuthRecord()
292 return ag; in InsertAuthRecord()
298 AuthGroup **ag = &a; in RemoveAuthRecord() local
304 rp = &(*ag)->members; in RemoveAuthRecord()
318 (*ag)->rrauth_tail = rp; in RemoveAuthRecord()
954 AuthGroup **ag = &a; in CheckAuthIdenticalRecord() local
960 rp = &(*ag)->members; in CheckAuthIdenticalRecord()
981 AuthGroup **ag = &a; in CheckAuthRecordConflict() local
987 rp = &(*ag)->members; in CheckAuthRecordConflict()
1004 AuthGroup **ag = &a; in CheckAuthSameRecord() local
1010 rp = &(*ag)->members; in CheckAuthSameRecord()
1297 AuthGroup *ag; in mDNS_Register_internal() local
1298 ag = InsertAuthRecord(m, &m->rrauth, rr); in mDNS_Register_internal()
1299 if (ag && !ag->NewLocalOnlyRecords) { in mDNS_Register_internal()
1301 ag->NewLocalOnlyRecords = rr; in mDNS_Register_internal()
1370 AuthGroup **ag = &a; in mDNS_Deregister_internal() local
1376 rp = &(*ag)->members; in mDNS_Deregister_internal()
1538 AuthGroup *ag = RemoveAuthRecord(m, &m->rrauth, rr); in mDNS_Deregister_internal() local
1539 if (ag->NewLocalOnlyRecords == rr) ag->NewLocalOnlyRecords = rr->next; in mDNS_Deregister_internal()
3790 AuthGroup *ag; in AnswerNewQuestion() local
3842 ag = AuthGroupForName(&m->rrauth, slot, q->qnamehash, &q->qname); in AnswerNewQuestion()
3843 if (ag) in AnswerNewQuestion()
3845 m->CurrentRecord = ag->members; in AnswerNewQuestion()
3846 while (m->CurrentRecord && m->CurrentRecord != ag->NewLocalOnlyRecords) in AnswerNewQuestion()
3882 if (ag) in AnswerNewQuestion()
3884 lr = ag->NewLocalOnlyRecords; in AnswerNewQuestion()
3979 AuthGroup *ag; in AnswerNewLocalOnlyQuestion() local
3997 ag = AuthGroupForName(&m->rrauth, slot, q->qnamehash, &q->qname); in AnswerNewLocalOnlyQuestion()
3998 if (ag) in AnswerNewLocalOnlyQuestion()
4000 m->CurrentRecord = ag->members; in AnswerNewLocalOnlyQuestion()
4001 while (m->CurrentRecord && m->CurrentRecord != ag->NewLocalOnlyRecords) in AnswerNewLocalOnlyQuestion()
4298 AuthGroup *ag; in mDNS_Execute() local
4382 for (ag = m->rrauth.rrauth_hash[slot]; ag; ag = ag->next) in mDNS_Execute()
4384 m->CurrentRecord = ag->members; in mDNS_Execute()
4449 for (ag = m->rrauth.rrauth_hash[slot]; ag; ag = ag->next) in mDNS_Execute()
4451 for (i=0; i<100 && ag->NewLocalOnlyRecords; i++) in mDNS_Execute()
4453 AuthRecord *rr = ag->NewLocalOnlyRecords; in mDNS_Execute()
4454 ag->NewLocalOnlyRecords = ag->NewLocalOnlyRecords->next; in mDNS_Execute()
4560 AuthGroup *ag; in QuestionHasLocalAnswers() local
4563 ag = AuthGroupForName(&m->rrauth, slot, q->qnamehash, &q->qname); in QuestionHasLocalAnswers()
4564 if (ag) in QuestionHasLocalAnswers()
4566 for (rr = ag->members; rr; rr=rr->next) in QuestionHasLocalAnswers()
8160 AuthGroup *ag; in LocalRecordRmvEventsForQuestion() local
8173 ag = AuthGroupForName(&m->rrauth, slot, q->qnamehash, &q->qname); in LocalRecordRmvEventsForQuestion()
8174 if (ag) in LocalRecordRmvEventsForQuestion()
8176 for (rr = ag->members; rr; rr=rr->next) in LocalRecordRmvEventsForQuestion()