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

Fix minor typo in comment. (#261)

This commit is contained in:
Alex Collins
2017-10-24 22:31:45 +01:00
committed by Matias Fontanini
parent 983325bfdf
commit f88c024b2f

View File

@@ -158,7 +158,7 @@ void EthernetII::write_serialization(uint8_t* buffer, uint32_t total_sz) {
if (inner_pdu()) {
Constants::Ethernet::e flag;
const PDUType type = inner_pdu()->pdu_type();
// Dirty trick to sucessfully tag PPPoE session/discovery packets
// Dirty trick to successfully tag PPPoE session/discovery packets
if (type == PDU::PPPOE) {
const PPPoE* pppoe = static_cast<const PPPoE*>(inner_pdu());
flag = (pppoe->code() == 0) ? Constants::Ethernet::PPPOES