Lines Matching refs:nsec
2293 // (i.e. typically A, AAAA, SRV, TXT and reverse-mapping PTR), set the flag to add an NSEC too.
2333 // (i.e. typically A, AAAA, SRV, TXT and reverse-mapping PTR), set the flag to add an NSEC too.
2356 // Third Pass. Add NSEC records, if there's space.
2357 // When we're generating an NSEC record in response to a specify query for that type
2358 // (recognized by rr->SendNSECNow == intf->InterfaceID) we should really put the NSEC in the Answer Section,
2363 AuthRecord nsec;
2364 mDNS_SetupResourceRecord(&nsec, mDNSNULL, mDNSInterface_Any, kDNSType_NSEC, rr->resrec.rroriginalttl, kDNSRecordTypeUnique, AuthRecordAny, mDNSNULL, mDNSNULL);
2365 nsec.resrec.rrclass |= kDNSClass_UniqueRRSet;
2366 AssignDomainName(&nsec.namestorage, rr->resrec.name);
2367 mDNSPlatformMemZero(nsec.rdatastorage.u.nsec.bitmap, sizeof(nsec.rdatastorage.u.nsec.bitmap));
2371 if (r2->resrec.rrtype >= kDNSQType_ANY) { LogMsg("Can't create NSEC for record %s", ARDisplayString(m, r2)); break; }
2372 else nsec.rdatastorage.u.nsec.bitmap[r2->resrec.rrtype >> 3] |= 128 >> (r2->resrec.rrtype & 7);
2375 if (!r2) // If we successfully built our NSEC record, add it to the packet now
2377 newptr = PutRR_OS(responseptr, &m->omsg.h.numAdditionals, &nsec.resrec);
2381 // If we successfully put the NSEC record, clear the SendNSECNow flag
2382 // If we consider this NSEC optional, then we unconditionally clear the SendNSECNow flag, even if we fail to put this additional record
2386 // Run through remainder of list clearing SendNSECNow flag for all other records which would generate the same NSEC
2436 pktcount = 0; // When we move to a new interface, reset packet count back to zero -- NSEC generation logic uses it
5843 // then we'll want to mark it to generate an NSEC record on this interface
6343 // In addition, NSEC currently requires less space for in-memory storage than its in-packet representation.