fix typo for clear bit setting on the FNE; properly annotate if a TG is selectable/secure/clear strapped;

pull/121/merge
Bryan Biedenkapp 4 weeks ago
parent 27ed5fc15f
commit 24a573fec3

@ -902,8 +902,9 @@ void Network::clock(uint32_t ms)
m_tidLookup->eraseEntry(id, slot);
}
LogInfoEx(LOG_NET, "Activated%s%s TG %u TS %u in TGID table",
(nonPreferred) ? " non-preferred" : "", (affiliated) ? " affiliated" : "", id, slot);
LogInfoEx(LOG_NET, "Activated%s%s TG %u TS %u %s in TGID table",
(nonPreferred) ? " non-preferred" : "", (affiliated) ? " affiliated" : "", id, slot,
(strappedBit) ? "strapped" : (clearBit) ? "clear" : "selectable");
m_tidLookup->addEntry(id, slot, true, affiliated, nonPreferred, strapping);
}

@ -3077,7 +3077,7 @@ void TrafficNetwork::writeTGIDs(uint32_t peerId, uint32_t streamId, bool sendRep
}
// set the $10 bit of the slot number to identify if this TG is clear only
if (entry.config().strapping() != lookups::TG_STRAPPING_CLEAR) {
if (entry.config().strapping() == lookups::TG_STRAPPING_CLEAR) {
slotNo |= 0x10U;
}

Loading…
Cancel
Save

Powered by TurnKey Linux.