From 1128d28d97cc58cee08c4a6a7cade97a17f97a20 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Mon, 10 Jul 2023 20:57:21 -0400 Subject: [PATCH] actually AMBT PDUs don't transit the network, so we'll ignore network PDUs for control only mode; --- src/p25/Control.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/p25/Control.cpp b/src/p25/Control.cpp index 4da0fc6c..750782f7 100644 --- a/src/p25/Control.cpp +++ b/src/p25/Control.cpp @@ -1052,6 +1052,14 @@ void Control::processNetwork() // is this a PDU? if (duid == P25_DUID_PDU) { + if (m_controlOnly) { + if (m_debug) { + LogDebug(LOG_NET, "CC only mode, ignoring PDU from network"); + } + + return; + } + uint32_t blockLength = __GET_UINT16(buffer, 8U); if (m_debug) {