mirror of
https://github.com/mfontanini/libtins
synced 2026-01-25 19:51:34 +01:00
RAII'd some code. Everything(hopefully) uses IPv4Address now.
This commit is contained in:
@@ -67,6 +67,8 @@ EthernetII::EthernetII(const uint8_t *buffer, uint32_t total_sz)
|
||||
case ETHERTYPE_ARP:
|
||||
next = new Tins::ARP(buffer, total_sz);
|
||||
break;
|
||||
default:
|
||||
next = new Tins::RawPDU(buffer, total_sz);
|
||||
// Other protos plz
|
||||
}
|
||||
inner_pdu(next);
|
||||
|
||||
Reference in New Issue
Block a user