1
0
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:
Matias Fontanini
2014-09-24 09:15:20 -03:00
parent 1bc9bd1504
commit 3ad96422b9
4 changed files with 79 additions and 21 deletions

View File

@@ -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);