| 778 | } |
| 779 | |
| 780 | static bool HasQuestion(const RawDnsPacket& packet, const char* name, uint16_t type, uint16_t klass) |
| 781 | { |
| 782 | for (uint32_t i = 0; i < packet.m_Questions.size(); ++i) |
| 783 | { |
| 784 | const RawDnsQuestion& question = packet.m_Questions[i]; |
| 785 | if (question.m_Type == type |
| 786 | && question.m_Class == klass |
| 787 | && dmStrCaseCmp(question.m_Name.c_str(), name) == 0) |
| 788 | { |
| 789 | return true; |
| 790 | } |
| 791 | } |
| 792 | return false; |
| 793 | } |
| 794 | |
| 795 | static const RawDnsRecord* FindRecord(const RawDnsPacket& packet, uint16_t type, const char* name) |
| 796 | { |
no test coverage detected