| 815 | } |
| 816 | |
| 817 | static bool AllRecordsHaveTtl(const RawDnsPacket& packet, uint32_t ttl) |
| 818 | { |
| 819 | if (packet.m_Records.empty()) |
| 820 | return false; |
| 821 | |
| 822 | for (uint32_t i = 0; i < packet.m_Records.size(); ++i) |
| 823 | { |
| 824 | if (packet.m_Records[i].m_Ttl != ttl) |
| 825 | return false; |
| 826 | } |
| 827 | return true; |
| 828 | } |
| 829 | |
| 830 | static bool PacketMatchesNames(const RawDnsPacket& packet, const std::vector<std::string>& names) |
| 831 | { |