Home
last modified time | relevance | path

Searched refs:dns_type (Results 1 – 25 of 28) sorted by relevance

12

/external/openscreen/discovery/mdns/
Dmdns_querier.cc30 if (record.dns_type() != DnsType::kNSEC) { in IsNegativeResponseFor()
67 if ((first.dns_type() == DnsType::kNSEC) != in CompareRecordByNameAndType()
68 (second.dns_type() == DnsType::kNSEC)) { in CompareRecordByNameAndType()
69 return first.dns_type() == DnsType::kNSEC; in CompareRecordByNameAndType()
160 if (it->dns_type() != DnsType::kNSEC) { in RemoveInvalidNsecFlags()
185 it->dns_type() == DnsType::kNSEC) { in RemoveInvalidNsecFlags()
194 OSP_DCHECK(it->dns_type() != DnsType::kNSEC); in RemoveInvalidNsecFlags()
195 has_changed |= types.Remove(it->dns_type()); in RemoveInvalidNsecFlags()
204 *nsec = MdnsRecord(nsec->name(), nsec->dns_type(), nsec->dns_class(), in RemoveInvalidNsecFlags()
248 DnsType dns_type, in Find() argument
[all …]
Dmdns_trackers.cc45 bool IsNegativeResponseForType(const MdnsRecord& record, DnsType dns_type) { in IsNegativeResponseForType() argument
46 if (record.dns_type() != DnsType::kNSEC) { in IsNegativeResponseForType()
52 [dns_type](DnsType type) { in IsNegativeResponseForType()
53 return type == dns_type || type == DnsType::kANY; in IsNegativeResponseForType()
133 DnsType dns_type, in MdnsRecordTracker() argument
145 dns_type_(dns_type), in MdnsRecordTracker()
156 OSP_DCHECK(record_.dns_type() != DnsType::kNSEC || in MdnsRecordTracker()
167 const bool has_same_rdata = record_.dns_type() == new_record.dns_type() && in Update()
169 const bool new_is_negative_response = new_record.dns_type() == DnsType::kNSEC; in Update()
171 record_.dns_type() == DnsType::kNSEC; in Update()
[all …]
Dmdns_publisher.cc41 return MdnsRecord(record.name(), record.dns_type(), record.dns_class(), in CreateGoodbyeRecord()
74 if (!CanBePublished(record.dns_type())) { in RegisterRecord()
90 OSP_DVLOG << "Registering record of type '" << record.dns_type() << "'"; in RegisterRecord()
101 if (!CanBePublished(record.dns_type())) { in UnregisterRecord()
105 OSP_DVLOG << "Unregistering record of type '" << record.dns_type() << "'"; in UnregisterRecord()
114 if (!CanBePublished(new_record.dns_type())) { in UpdateRegisteredRecord()
118 if (old_record.dns_type() == DnsType::kPTR) { in UpdateRegisteredRecord()
124 old_record.dns_type() != new_record.dns_type() || in UpdateRegisteredRecord()
130 OSP_DVLOG << "Updating record of type '" << new_record.dns_type() << "'"; in UpdateRegisteredRecord()
173 const DnsType record_dns_type = announcer->record().dns_type(); in GetRecords()
[all …]
Dmdns_records.cc542 DnsType dns_type, in TryCreate() argument
547 if (!IsValidConfig(name, dns_type, ttl, rdata)) { in TryCreate()
550 return MdnsRecord(std::move(name), dns_type, dns_class, record_type, ttl, in TryCreate()
558 DnsType dns_type, in MdnsRecord() argument
564 dns_type_(dns_type), in MdnsRecord()
569 OSP_DCHECK(IsValidConfig(name_, dns_type, ttl_, rdata_)); in MdnsRecord()
582 DnsType dns_type, in IsValidConfig() argument
591 ((dns_type == DnsType::kSRV && in IsValidConfig()
593 (dns_type == DnsType::kA && in IsValidConfig()
595 (dns_type == DnsType::kAAAA && in IsValidConfig()
[all …]
Dmdns_querier.h55 DnsType dns_type,
63 DnsType dns_type,
75 const DnsType dns_type; member
101 DnsType dns_type,
195 DnsType dns_type);
Dmdns_responder.cc162 OSP_DCHECK(record.dns_type() == DnsType::kPTR); in ApplyQueryResults()
176 if (message->additional_records()[i].dns_type() != DnsType::kSRV) { in ApplyQueryResults()
205 OSP_DCHECK(srv_record.dns_type() == DnsType::kSRV); in ApplyQueryResults()
235 if (question.dns_type() != DnsType::kPTR) { in IsServiceTypeEnumerationQuery()
525 << question.dns_type() << "' from '" << src << "'"; in ProcessQueries()
528 if (question.dns_type() == DnsType::kNSEC) { in ProcessQueries()
540 !record_handler_->HasRecords(question.name(), question.dns_type(), in ProcessQueries()
600 question.dns_type(), question.dns_class(), in SendResponse()
606 << question.name().ToString() << "', type: '" << question.dns_type() in SendResponse()
Dmdns_publisher_unittest.cc68 return announcer->record().dns_type() != in IsNonPtrRecordPresent()
102 EXPECT_EQ(original.dns_type(), sent.dns_type()); in IsAnnounced()
120 EXPECT_EQ(original.dns_type(), sent.dns_type()); in IsGoodbyeRecord()
142 DnsType type = record.dns_type(); in TestUniqueRecordRegistrationWorkflow()
145 ASSERT_EQ(record.dns_type(), record2.dns_type()); in TestUniqueRecordRegistrationWorkflow()
279 ASSERT_EQ(record.dns_type(), record2.dns_type()); in TEST_F()
Dmdns_service_impl.cc107 DnsType dns_type, in StartQuery() argument
110 return querier_->StartQuery(name, dns_type, dns_class, callback); in StartQuery()
114 DnsType dns_type, in StopQuery() argument
117 return querier_->StopQuery(name, dns_type, dns_class, callback); in StopQuery()
Dmdns_trackers_unittest.cc115 return CreateRecordTracker(record, record.dns_type()); in CreateRecordTracker()
314 MdnsRecord goodbye_record(a_record_.name(), a_record_.dns_type(), in TEST_F()
333 MdnsRecord invalid_name(DomainName{"invalid"}, a_record_.dns_type(), in TEST_F()
346 MdnsRecord invalid_class(a_record_.name(), a_record_.dns_type(), in TEST_F()
353 MdnsRecord invalid_rdata(a_record_.name(), a_record_.dns_type(), in TEST_F()
372 nsec_record_.name(), nsec_record_.dns_type(), nsec_record_.dns_class(), in TEST_F()
386 nsec_record_.name(), nsec_record_.dns_type(), nsec_record_.dns_class(), in TEST_F()
398 nsec_record_.name(), nsec_record_.dns_type(), nsec_record_.dns_class(), in TEST_F()
Dmdns_trackers.h111 DnsType dns_type,
161 DnsType dns_type() const { return dns_type_; } in dns_type() function
168 return record_.dns_type() == DnsType::kNSEC; in is_negative_response()
Dmdns_service_impl.h48 DnsType dns_type,
52 DnsType dns_type,
Dmdns_records.h453 DnsType dns_type,
461 DnsType dns_type,
483 DnsType dns_type() const { return dns_type_; } in dns_type() function
500 DnsType dns_type,
524 DnsType dns_type,
530 DnsType dns_type,
539 DnsType dns_type() const { return dns_type_; } in dns_type() function
Dmdns_record_changed_callback.h27 DnsType dns_type; member
Dmdns_writer.cc218 if (Write(record.name()) && Write(static_cast<uint16_t>(record.dns_type())) && in Write()
231 Write(static_cast<uint16_t>(question.dns_type())) && in Write()
Dmdns_responder_unittest.cc28 return record.dns_type() == type; in ContainsRecordType()
36 ASSERT_EQ(record.dns_type(), DnsType::kNSEC); in CheckSingleNsecRecordType()
44 ASSERT_EQ(record.dns_type(), DnsType::kPTR); in CheckPtrDomain()
54 if (record.dns_type() != DnsType::kNSEC) { in ExpectContainsNsecRecordType()
84 if (type == DnsType::kANY || record.dns_type() == type) { in GetRecords()
95 if (record.dns_type() == DnsType::kPTR) { in GetPtrRecords()
Dmdns_querier_unittest.cc40 EXPECT_TRUE(actual.dns_type() == expected.dns_type()); in ACTION_P()
116 return MdnsRecord(std::move(name), nsec_record_created_.dns_type(), in CreateNsec()
742 MdnsRecord(nsec_record_created_.name(), nsec_record_created_.dns_type(), in TEST_F()
762 MdnsRecord(nsec_record_created_.name(), nsec_record_created_.dns_type(), in TEST_F()
849 MdnsRecord(nsec_record_created_.name(), nsec_record_created_.dns_type(), in TEST_F()
Dmdns_records_unittest.cc519 EXPECT_EQ(record1.dns_type(), static_cast<DnsType>(0)); in TEST()
531 EXPECT_EQ(record2.dns_type(), DnsType::kPTR); in TEST()
608 EXPECT_EQ(question1.dns_type(), static_cast<DnsType>(0)); in TEST()
616 EXPECT_EQ(question2.dns_type(), DnsType::kPTR); in TEST()
/external/openscreen/discovery/dnssd/impl/
Dpublisher_impl_unittest.cc34 DnsType dns_type, in StartQuery() argument
41 DnsType dns_type, in StopQuery() argument
105 if (record.dns_type() == DnsType::kA) { in TEST_F()
110 } else if (record.dns_type() == DnsType::kSRV) { in TEST_F()
118 if (record.dns_type() != DnsType::kPTR) { in TEST_F()
138 if (record.dns_type() == DnsType::kA) { in TEST_F()
143 } else if (record.dns_type() == DnsType::kSRV) { in TEST_F()
187 EXPECT_NE(record.dns_type(), DnsType::kA); in TEST_F()
188 if (record.dns_type() == DnsType::kAAAA) { in TEST_F()
208 EXPECT_EQ(record.dns_type(), DnsType::kA); in TEST_F()
[all …]
Dconversion_layer_unittest.cc70 EXPECT_EQ(query.dns_type, DnsType::kANY); in TEST()
85 EXPECT_EQ(query.dns_type, DnsType::kPTR); in TEST()
109 return record.dns_type() == DnsType::kPTR; in TEST()
145 return record.dns_type() == DnsType::kSRV; in TEST()
177 return record.dns_type() == DnsType::kA; in TEST()
206 return record.dns_type() == DnsType::kA; in TEST()
223 return record.dns_type() == DnsType::kAAAA; in TEST()
252 return record.dns_type() == DnsType::kAAAA; in TEST()
272 return record.dns_type() == DnsType::kTXT; in TEST()
Ddns_data_graph.cc253 if (record.dns_type() == DnsType::kPTR) { in ApplyDataRecordChange()
260 if (record.dns_type() == DnsType::kSRV) { in ApplyDataRecordChange()
263 it = FindRecord(record.dns_type()); in ApplyDataRecordChange()
349 [type](const MdnsRecord& record) { return record.dns_type() == type; }); in FindRecord()
542 if (record.dns_type() != DnsType::kPTR) { in CalculatePtrRecordEndpoints()
587 return GetDomainGroup(record.dns_type()); in GetDomainGroup()
Dconstants.h20 DnsType dns_type; member
Dquerier_impl.cc340 record.dns_type() != DnsType::kPTR in OnRecordChanged()
344 record.dns_type() != DnsType::kPTR in OnRecordChanged()
358 OSP_DVLOG << "Failed to apply changes for " << record.dns_type() in OnRecordChanged()
Dpublisher_impl.cc176 const auto key = old_records[i].dns_type(); in UpdatePublishedRegistration()
184 const auto key = new_records[i].dns_type(); in UpdatePublishedRegistration()
Dconversion_layer.cc176 return record.dns_type() == DnsType::kPTR; in IsPtrRecord()
/external/openscreen/discovery/mdns/public/
Dmdns_service.h47 DnsType dns_type,
54 DnsType dns_type,

12