| 1056 | } |
| 1057 | |
| 1058 | static bool ShouldIncludeKnownAnswer(const BrowserService& service, uint64_t now) |
| 1059 | { |
| 1060 | if (!service.m_HasPtr || service.m_PtrExpires <= now || service.m_PtrTtl == 0) |
| 1061 | return false; |
| 1062 | |
| 1063 | const uint64_t remaining = service.m_PtrExpires - now; |
| 1064 | return remaining > HalfSecondsToMicroSeconds(service.m_PtrTtl); |
| 1065 | } |
| 1066 | |
| 1067 | static uint32_t BuildQueryMessage(const Browser* browser, uint64_t now, uint8_t* buffer, uint32_t buffer_size) |
| 1068 | { |
no test coverage detected