1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Fixed bug when allocating IP over IP packets.

This commit is contained in:
Matias Fontanini
2014-09-09 08:37:17 -03:00
parent b532753a16
commit 977231cf46

View File

@@ -110,7 +110,7 @@ Tins::PDU *pdu_from_flag(Constants::IP::e flag, const uint8_t *buffer,
{
switch(flag) {
case Constants::IP::PROTO_IPIP:
return new Tins::TCP(buffer, size);
return new Tins::IP(buffer, size);
case Constants::IP::PROTO_TCP:
return new Tins::TCP(buffer, size);
case Constants::IP::PROTO_UDP: