| 990 | } |
| 991 | |
| 992 | static bool WriteRecordA(uint8_t* buffer, uint32_t buffer_size, uint32_t* offset, |
| 993 | const RegisteredService& service, const dmSocket::Address& host_address, uint32_t ttl) |
| 994 | { |
| 995 | uint8_t data[4]; |
| 996 | uint16_t data_length = 0; |
| 997 | if (!BuildARData(host_address, data, sizeof(data), &data_length)) |
| 998 | return false; |
| 999 | |
| 1000 | return WriteCanonicalRecord(buffer, buffer_size, offset, |
| 1001 | service.m_HostLocal, |
| 1002 | DNS_TYPE_A, |
| 1003 | (uint16_t) (DNS_CLASS_IN | DNS_CLASS_FLUSH), |
| 1004 | ttl, |
| 1005 | data, |
| 1006 | data_length); |
| 1007 | } |
| 1008 | |
| 1009 | static uint32_t BuildResponseMessage(const RegisteredService& service, const dmSocket::Address* host_address, uint32_t ttl, uint8_t* buffer, uint32_t buffer_size) |
| 1010 | { |
no test coverage detected