From 24a573fec3f9f715971adb1d9e5c3872ec2ea9e7 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Thu, 25 Jun 2026 15:44:03 -0400 Subject: [PATCH] fix typo for clear bit setting on the FNE; properly annotate if a TG is selectable/secure/clear strapped; --- src/common/network/Network.cpp | 5 +++-- src/fne/network/TrafficNetwork.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common/network/Network.cpp b/src/common/network/Network.cpp index 61c51ee6..9fe9b3e8 100644 --- a/src/common/network/Network.cpp +++ b/src/common/network/Network.cpp @@ -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); } diff --git a/src/fne/network/TrafficNetwork.cpp b/src/fne/network/TrafficNetwork.cpp index f27f591c..f78de2a9 100644 --- a/src/fne/network/TrafficNetwork.cpp +++ b/src/fne/network/TrafficNetwork.cpp @@ -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; }