mirror of
https://github.com/mfontanini/libtins
synced 2026-01-26 03:51:35 +01:00
PDU::matches_response is now const.
This commit is contained in:
@@ -98,7 +98,7 @@ void UDP::write_serialization(uint8_t *buffer, uint32_t total_sz, const PDU *par
|
||||
}
|
||||
}
|
||||
|
||||
bool UDP::matches_response(uint8_t *ptr, uint32_t total_sz) {
|
||||
bool UDP::matches_response(const uint8_t *ptr, uint32_t total_sz) const {
|
||||
if(total_sz < sizeof(udphdr))
|
||||
return false;
|
||||
const udphdr *udp_ptr = (const udphdr*)ptr;
|
||||
|
||||
Reference in New Issue
Block a user