mirror of
https://github.com/mfontanini/libtins
synced 2026-01-25 03:31:36 +01:00
Added correct parsing of PPPoE session packets.
This commit is contained in:
@@ -86,6 +86,7 @@ Tins::PDU *pdu_from_flag(Constants::Ethernet::e flag, const uint8_t *buffer,
|
||||
case Tins::Constants::Ethernet::ARP:
|
||||
return new ARP(buffer, size);
|
||||
case Tins::Constants::Ethernet::PPPOED:
|
||||
case Tins::Constants::Ethernet::PPPOES:
|
||||
return new PPPoE(buffer, size);
|
||||
case Tins::Constants::Ethernet::EAPOL:
|
||||
return EAPOL::from_bytes(buffer, size);
|
||||
|
||||
Reference in New Issue
Block a user