mirror of
https://github.com/mfontanini/libtins
synced 2026-01-28 04:34:27 +01:00
assert() is only called when TINS_DEBUG is defined.
This commit is contained in:
@@ -108,7 +108,9 @@ uint32_t ARP::header_size() const {
|
||||
}
|
||||
|
||||
void ARP::write_serialization(uint8_t *buffer, uint32_t total_sz, const PDU *) {
|
||||
#ifdef TINS_DEBUG
|
||||
assert(total_sz >= sizeof(arphdr));
|
||||
#endif
|
||||
memcpy(buffer, &_arp, sizeof(arphdr));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user