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:
committed by
Matias Fontanini
parent
983325bfdf
commit
f88c024b2f
@@ -158,7 +158,7 @@ void EthernetII::write_serialization(uint8_t* buffer, uint32_t total_sz) {
|
|||||||
if (inner_pdu()) {
|
if (inner_pdu()) {
|
||||||
Constants::Ethernet::e flag;
|
Constants::Ethernet::e flag;
|
||||||
const PDUType type = inner_pdu()->pdu_type();
|
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) {
|
if (type == PDU::PPPOE) {
|
||||||
const PPPoE* pppoe = static_cast<const PPPoE*>(inner_pdu());
|
const PPPoE* pppoe = static_cast<const PPPoE*>(inner_pdu());
|
||||||
flag = (pppoe->code() == 0) ? Constants::Ethernet::PPPOES
|
flag = (pppoe->code() == 0) ? Constants::Ethernet::PPPOES
|
||||||
|
|||||||
Reference in New Issue
Block a user