disable system ID 00A for reasons other projects have;

pull/139/head
Bryan Biedenkapp 3 days ago
parent dd8f15b5bc
commit 7842fed53f

@ -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

@ -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<std::string>("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<std::string>("1").c_str(), NULL, 16);
m_p25RfssId = p25::P25Utils::rfssId(m_p25RfssId);

@ -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

@ -214,7 +214,11 @@ bool ControlSignaling::process(uint8_t* data, uint32_t len, std::unique_ptr<lc::
// 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_p25->m_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();

Loading…
Cancel
Save

Powered by TurnKey Linux.