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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user