1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 12:44:25 +01:00

Fixed bug in EthernetII when changing its inner PDU.

This commit is contained in:
Matias Fontanini
2014-08-07 19:38:05 -03:00
parent 1c2bfd42ca
commit 8e6ddfd764
3 changed files with 20 additions and 16 deletions

View File

@@ -193,7 +193,7 @@ Constants::Ethernet::e pdu_flag_to_ether_type(PDU::PDUType flag) {
case PDU::PPPOE:
return Constants::Ethernet::PPPOED;
default:
if(Internals::pdu_type_registered<EthernetII>(flag))
if(Internals::pdu_type_registered<EthernetII>(flag))
return static_cast<Constants::Ethernet::e>(
Internals::pdu_type_to_id<EthernetII>(flag)
);