mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
PDU::matches_response is now const.
This commit is contained in:
@@ -481,7 +481,7 @@ DNS::resources_type DNS::answers() const {
|
||||
return res;
|
||||
}
|
||||
|
||||
bool DNS::matches_response(uint8_t *ptr, uint32_t total_sz) {
|
||||
bool DNS::matches_response(const uint8_t *ptr, uint32_t total_sz) const {
|
||||
if(total_sz < sizeof(dnshdr))
|
||||
return false;
|
||||
const dnshdr *hdr = (const dnshdr*)ptr;
|
||||
|
||||
Reference in New Issue
Block a user