Lines Matching refs:aSection

414 void Core::UpdateCacheFlushFlagIn(ResourceRecord &aResourceRecord, Section aSection, bool aIsLegacy…  in UpdateCacheFlushFlagIn()  argument
420 if (aSection != kAuthoritySection && !aIsLegacyUnicast) in UpdateCacheFlushFlagIn()
850 void Core::RecordInfo::MarkAsAppended(TxMessage &aTxMessage, Section aSection) in MarkAsAppended() argument
852 mAppendSection = aSection; in MarkAsAppended()
861 if ((aSection == kAnswerSection) || (aSection == kAdditionalDataSection)) in MarkAsAppended()
1380 void Core::Entry::AppendKeyRecordTo(TxMessage &aTxMessage, Section aSection, NameAppender aNameAppe… in AppendKeyRecordTo() argument
1387 mKeyRecord.MarkAsAppended(aTxMessage, aSection); in AppendKeyRecordTo()
1389 message = &aTxMessage.SelectMessageFor(aSection); in AppendKeyRecordTo()
1394 aNameAppender(*this, aTxMessage, aSection); in AppendKeyRecordTo()
1399 UpdateCacheFlushFlagIn(record, aSection, isLegacyUnicast); in AppendKeyRecordTo()
1404 aTxMessage.IncrementRecordCount(aSection); in AppendKeyRecordTo()
1411 Section aSection, in AppendNsecRecordTo() argument
1415 Message &message = aTxMessage.SelectMessageFor(aSection); in AppendNsecRecordTo()
1423 UpdateCacheFlushFlagIn(nsec, aSection, isLegacyUnicast); in AppendNsecRecordTo()
1432 aNameAppender(*this, aTxMessage, aSection); in AppendNsecRecordTo()
1438 aNameAppender(*this, aTxMessage, aSection); in AppendNsecRecordTo()
1443 aTxMessage.IncrementRecordCount(aSection); in AppendNsecRecordTo()
1744 void Core::HostEntry::AppendAddressRecordsTo(TxMessage &aTxMessage, Section aSection) in AppendAddressRecordsTo() argument
1750 mAddrRecord.MarkAsAppended(aTxMessage, aSection); in AppendAddressRecordsTo()
1752 message = &aTxMessage.SelectMessageFor(aSection); in AppendAddressRecordsTo()
1761 UpdateCacheFlushFlagIn(aaaaRecord, aSection, isLegacyUnicast); in AppendAddressRecordsTo()
1763 AppendNameTo(aTxMessage, aSection); in AppendAddressRecordsTo()
1766 aTxMessage.IncrementRecordCount(aSection); in AppendAddressRecordsTo()
1773 void Core::HostEntry::AppendKeyRecordTo(TxMessage &aTxMessage, Section aSection) in AppendKeyRecordTo() argument
1775 Entry::AppendKeyRecordTo(aTxMessage, aSection, &AppendEntryName); in AppendKeyRecordTo()
1778 void Core::HostEntry::AppendNsecRecordTo(TxMessage &aTxMessage, Section aSection) in AppendNsecRecordTo() argument
1794 Entry::AppendNsecRecordTo(aTxMessage, aSection, types, &AppendEntryName); in AppendNsecRecordTo()
1798 void Core::HostEntry::AppendEntryName(Entry &aEntry, TxMessage &aTxMessage, Section aSection) in AppendEntryName() argument
1800 static_cast<HostEntry &>(aEntry).AppendNameTo(aTxMessage, aSection); in AppendEntryName()
1803 void Core::HostEntry::AppendNameTo(TxMessage &aTxMessage, Section aSection) in AppendNameTo() argument
1807 outcome = aTxMessage.AppendMultipleLabels(aSection, mName.AsCString(), mNameOffset); in AppendNameTo()
1810 aTxMessage.AppendDomainName(aSection); in AppendNameTo()
2541 void Core::ServiceEntry::AppendSrvRecordTo(TxMessage &aTxMessage, Section aSection) in AppendSrvRecordTo() argument
2549 mSrvRecord.MarkAsAppended(aTxMessage, aSection); in AppendSrvRecordTo()
2551 message = &aTxMessage.SelectMessageFor(aSection); in AppendSrvRecordTo()
2558 UpdateCacheFlushFlagIn(srv, aSection, isLegacyUnicast); in AppendSrvRecordTo()
2563 AppendServiceNameTo(aTxMessage, aSection, /* aPerformNameCompression */ !isLegacyUnicast); in AppendSrvRecordTo()
2567 AppendHostNameTo(aTxMessage, aSection); in AppendSrvRecordTo()
2570 aTxMessage.IncrementRecordCount(aSection); in AppendSrvRecordTo()
2576 void Core::ServiceEntry::AppendTxtRecordTo(TxMessage &aTxMessage, Section aSection) in AppendTxtRecordTo() argument
2583 mTxtRecord.MarkAsAppended(aTxMessage, aSection); in AppendTxtRecordTo()
2585 message = &aTxMessage.SelectMessageFor(aSection); in AppendTxtRecordTo()
2590 UpdateCacheFlushFlagIn(txt, aSection, isLegacyUnicast); in AppendTxtRecordTo()
2592 AppendServiceNameTo(aTxMessage, aSection); in AppendTxtRecordTo()
2596 aTxMessage.IncrementRecordCount(aSection); in AppendTxtRecordTo()
2602 void Core::ServiceEntry::AppendPtrRecordTo(TxMessage &aTxMessage, Section aSection, SubType *aSubTy… in AppendPtrRecordTo() argument
2614 ptrRecord.MarkAsAppended(aTxMessage, aSection); in AppendPtrRecordTo()
2616 message = &aTxMessage.SelectMessageFor(aSection); in AppendPtrRecordTo()
2623 AppendServiceTypeTo(aTxMessage, aSection); in AppendPtrRecordTo()
2627 AppendSubServiceNameTo(aTxMessage, aSection, *aSubType); in AppendPtrRecordTo()
2632 AppendServiceNameTo(aTxMessage, aSection); in AppendPtrRecordTo()
2635 aTxMessage.IncrementRecordCount(aSection); in AppendPtrRecordTo()
2641 void Core::ServiceEntry::AppendKeyRecordTo(TxMessage &aTxMessage, Section aSection) in AppendKeyRecordTo() argument
2643 Entry::AppendKeyRecordTo(aTxMessage, aSection, &AppendEntryName); in AppendKeyRecordTo()
2646 void Core::ServiceEntry::AppendNsecRecordTo(TxMessage &aTxMessage, Section aSection) in AppendNsecRecordTo() argument
2667 Entry::AppendNsecRecordTo(aTxMessage, aSection, types, &AppendEntryName); in AppendNsecRecordTo()
2671 void Core::ServiceEntry::AppendEntryName(Entry &aEntry, TxMessage &aTxMessage, Section aSection) in AppendEntryName() argument
2673 static_cast<ServiceEntry &>(aEntry).AppendServiceNameTo(aTxMessage, aSection); in AppendEntryName()
2676 void Core::ServiceEntry::AppendServiceNameTo(TxMessage &aTxMessage, Section aSection, bool aPerform… in AppendServiceNameTo() argument
2684 outcome = aTxMessage.AppendLabel(aSection, mServiceInstance.AsCString(), compressOffset); in AppendServiceNameTo()
2689 … outcome = aTxMessage.AppendLabel(aSection, mServiceInstance.AsCString(), mServiceNameOffset); in AppendServiceNameTo()
2693 AppendServiceTypeTo(aTxMessage, aSection); in AppendServiceNameTo()
2699 void Core::ServiceEntry::AppendServiceTypeTo(TxMessage &aTxMessage, Section aSection) in AppendServiceTypeTo() argument
2701 aTxMessage.AppendServiceType(aSection, mServiceType.AsCString(), mServiceTypeOffset); in AppendServiceTypeTo()
2704 void Core::ServiceEntry::AppendSubServiceTypeTo(TxMessage &aTxMessage, Section aSection) in AppendSubServiceTypeTo() argument
2708 outcome = aTxMessage.AppendLabel(aSection, kSubServiceLabel, mSubServiceTypeOffset); in AppendSubServiceTypeTo()
2711 AppendServiceTypeTo(aTxMessage, aSection); in AppendSubServiceTypeTo()
2717 void Core::ServiceEntry::AppendSubServiceNameTo(TxMessage &aTxMessage, Section aSection, SubType &a… in AppendSubServiceNameTo() argument
2721 …outcome = aTxMessage.AppendLabel(aSection, aSubType.mLabel.AsCString(), aSubType.mSubServiceNameOf… in AppendSubServiceNameTo()
2724 AppendSubServiceTypeTo(aTxMessage, aSection); in AppendSubServiceNameTo()
2730 void Core::ServiceEntry::AppendHostNameTo(TxMessage &aTxMessage, Section aSection) in AppendHostNameTo() argument
2734 outcome = aTxMessage.AppendMultipleLabels(aSection, mHostName.AsCString(), mHostNameOffset); in AppendHostNameTo()
2737 aTxMessage.AppendDomainName(aSection); in AppendHostNameTo()
3039 Message &Core::TxMessage::SelectMessageFor(Section aSection) in SelectMessageFor() argument
3065 if (aSection == mainSection) in SelectMessageFor()
3069 else if (aSection == extraSection) in SelectMessageFor()
3085 Core::AppendOutcome Core::TxMessage::AppendLabel(Section aSection, const char *aLabel, uint16_t &aC… in AppendLabel() argument
3087 return AppendLabels(aSection, aLabel, kIsSingleLabel, aCompressOffset); in AppendLabel()
3090 Core::AppendOutcome Core::TxMessage::AppendMultipleLabels(Section aSection, in AppendMultipleLabels() argument
3094 return AppendLabels(aSection, aLabels, !kIsSingleLabel, aCompressOffset); in AppendMultipleLabels()
3097 Core::AppendOutcome Core::TxMessage::AppendLabels(Section aSection, in AppendLabels() argument
3116 Message &message = SelectMessageFor(aSection); in AppendLabels()
3125 SaveOffset(aCompressOffset, message, aSection); in AppendLabels()
3140 void Core::TxMessage::AppendServiceType(Section aSection, const char *aServiceType, uint16_t &aComp… in AppendServiceType() argument
3162 outcome = AppendMultipleLabels(aSection, serviceLabels, aCompressOffset); in AppendServiceType()
3167 outcome = AppendLabel(aSection, kUdpServiceLabel, mUdpOffset); in AppendServiceType()
3171 outcome = AppendLabel(aSection, kTcpServiceLabel, mTcpOffset); in AppendServiceType()
3176 AppendDomainName(aSection); in AppendServiceType()
3182 void Core::TxMessage::AppendDomainName(Section aSection) in AppendDomainName() argument
3184 Message &message = SelectMessageFor(aSection); in AppendDomainName()
3192 SaveOffset(mDomainOffset, message, aSection); in AppendDomainName()
3199 void Core::TxMessage::AppendServicesDnssdName(Section aSection) in AppendServicesDnssdName() argument
3201 Message &message = SelectMessageFor(aSection); in AppendServicesDnssdName()
3209 SaveOffset(mServicesDnssdOffset, message, aSection); in AppendServicesDnssdName()
3211 AppendDomainName(aSection); in AppendServicesDnssdName()
3227 …d Core::TxMessage::SaveOffset(uint16_t &aCompressOffset, const Message &aMessage, Section aSection) in SaveOffset() argument
3241 switch (aSection) in SaveOffset()
5387 void Core::BrowseCache::AppendServiceTypeOrSubTypeTo(TxMessage &aTxMessage, Section aSection) in AppendServiceTypeOrSubTypeTo() argument
5393 … outcome = aTxMessage.AppendLabel(aSection, mSubTypeLabel.AsCString(), mSubServiceNameOffset); in AppendServiceTypeOrSubTypeTo()
5396 outcome = aTxMessage.AppendLabel(aSection, kSubServiceLabel, mSubServiceTypeOffset); in AppendServiceTypeOrSubTypeTo()
5400 aTxMessage.AppendServiceType(aSection, mServiceType.AsCString(), mServiceTypeOffset); in AppendServiceTypeOrSubTypeTo()
5561 void Core::ServiceCache::AppendServiceNameTo(TxMessage &aTxMessage, Section aSection) in AppendServiceNameTo() argument
5565 outcome = aTxMessage.AppendLabel(aSection, mServiceInstance.AsCString(), mServiceNameOffset); in AppendServiceNameTo()
5568 aTxMessage.AppendServiceType(aSection, mServiceType.AsCString(), mServiceTypeOffset); in AppendServiceNameTo()
6028 void Core::AddrCache::AppendNameTo(TxMessage &aTxMessage, Section aSection) in AppendNameTo() argument
6034 outcome = aTxMessage.AppendMultipleLabels(aSection, mName.AsCString(), compressOffset); in AppendNameTo()
6037 aTxMessage.AppendDomainName(aSection); in AppendNameTo()