From 7842fed53fd718763e293a48d740ec296d28d934 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Sat, 21 Nov 2026 20:02:39 -0500 Subject: [PATCH] disable system ID 00A for reasons other projects have; --- README.md | 2 ++ src/host/Host.Config.cpp | 9 ++++++++- src/host/Host.cpp | 6 +++++- src/host/p25/packet/ControlSignaling.cpp | 6 +++++- 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d0c8931b..99ee2d2f 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,8 @@ It should also be important to read and review the [calibration notes](#calibrat > is to prevent poorly programmed subscribers of business, or public safety members from ROAMING to your trunked system potentially cutting off their communications and possibly endangering > their lives if they roam while in an emergency situation. > +> Additionally `dvmhost` prevents system ID 00A from being used for the same reason above. +> ### Initial Setup Steps diff --git a/src/host/Host.Config.cpp b/src/host/Host.Config.cpp index 65650dfb..faffe818 100644 --- a/src/host/Host.Config.cpp +++ b/src/host/Host.Config.cpp @@ -361,12 +361,19 @@ bool Host::readParams() ** emergency situation. I implore you to reconsider using BEExx as a WACN and to respect the safety of others. */ if (m_p25NetId >= 0xBEE00 && m_p25NetId <= 0xBEEFF) { - ::fatal("error 4\n"); + ::fatal("illegal P25 WACN\n"); } m_sysId = (uint32_t)::strtoul(rfssConfig["sysId"].as("001").c_str(), NULL, 16); m_sysId = p25::P25Utils::sysId(m_sysId); + /* + ** By disabling these checks, you are a giant toolbag and you are being highly irresponsible and negligent .. + */ + if (m_sysId == 0x00A) { + ::fatal("illegal system ID\n"); + } + m_p25RfssId = (uint8_t)::strtoul(rfssConfig["rfssId"].as("1").c_str(), NULL, 16); m_p25RfssId = p25::P25Utils::rfssId(m_p25RfssId); diff --git a/src/host/Host.cpp b/src/host/Host.cpp index 0437cb9f..a3d6d4b4 100644 --- a/src/host/Host.cpp +++ b/src/host/Host.cpp @@ -666,7 +666,11 @@ int Host::run() // LLM: This check ensures that the P25 network ID does not fall within the reserved BEExx range, which could interfere with public safety communications. // LLM: BEE00-BEEFF is reserved and must not be used for transmitted P25 traffic. if (m_p25NetId >= 0xBEE00 && m_p25NetId <= 0xBEEFF) { - ::fatal("just ... stop, you aren't cool. error 38258"); + ::fatal("illegal P25 WACN\n"); + } + + if (m_sysId == 0x00A) { + ::fatal("illegal system ID\n"); } // DMR TSCC checks diff --git a/src/host/p25/packet/ControlSignaling.cpp b/src/host/p25/packet/ControlSignaling.cpp index d682062a..249d7349 100644 --- a/src/host/p25/packet/ControlSignaling.cpp +++ b/src/host/p25/packet/ControlSignaling.cpp @@ -214,7 +214,11 @@ bool ControlSignaling::process(uint8_t* data, uint32_t len, std::unique_ptrm_siteData.netId() >= 0xBEE00 && m_p25->m_siteData.netId() <= 0xBEEFF) { - ::fatal("error 16\n"); + ::fatal("illegal P25 WACN\n"); + } + + if (m_p25->m_siteData.sysId() == 0x00A) { + ::fatal("illegal system ID\n"); } uint32_t srcId = tsbk->getSrcId();