mirror of
https://github.com/mfontanini/libtins
synced 2026-01-26 12:01:34 +01:00
PDU::matches_response is now const.
This commit is contained in:
@@ -129,7 +129,7 @@ void Dot1Q::append_padding(bool value) {
|
||||
_append_padding = value;
|
||||
}
|
||||
|
||||
bool Dot1Q::matches_response(uint8_t *ptr, uint32_t total_sz) {
|
||||
bool Dot1Q::matches_response(const uint8_t *ptr, uint32_t total_sz) const {
|
||||
if(total_sz < sizeof(_header))
|
||||
return false;
|
||||
const dot1q_hdr *dot1q_ptr = (const dot1q_hdr*)ptr;
|
||||
|
||||
Reference in New Issue
Block a user