1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-25 11:41:35 +01:00

PDU::matches_response is now const.

This commit is contained in:
Matias Fontanini
2013-04-21 20:03:47 -03:00
parent 69968cbc5c
commit d1b64ec48e
32 changed files with 35 additions and 33 deletions

View File

@@ -122,7 +122,7 @@ void EthernetII::send(PacketSender &sender, const NetworkInterface &iface) {
}
#endif // WIN32
bool EthernetII::matches_response(uint8_t *ptr, uint32_t total_sz) {
bool EthernetII::matches_response(const uint8_t *ptr, uint32_t total_sz) const {
if(total_sz < sizeof(ethhdr))
return false;
const size_t addr_sz = address_type::address_size;