Bryan Biedenkapp
b231a2f0fc
prevent peer replication traffic worker deadlocks; replace raw peer pointers with shared ownership and use short-lived peer registry locks with stable snapshots; avoid holding peer locks during traffic queue writes, metadata updates, replication, and REST serialization, while keeping connections alive during concurrent disconnects;
1 month ago
Bryan Biedenkapp
9c66e6b8db
correct possible replication-based metadata worker deadlock;
1 month ago
Bryan Biedenkapp
32b8e625e5
add RF talkgroup steering and preemption coverage for P25 enhanced conventional grants;
1 month ago
Bryan Biedenkapp
b68fadb533
correct file formatting and style;
1 month ago
Bryan Biedenkapp
3b1d249dd9
support standard unconfirmed P25 MBT packets; implement TELE_INT_DIAL_REQ encoding and decoding; add factory routing and unit tests;
1 month ago
Bryan Biedenkapp
55b7570701
implement Change-RSI KMM encoding/decoding; recover from authenticated invalid-MN rekey NAKs using Change-RSI; resume rekeying after successful message-number resynchronization; optionally issue keyset changeover after rekey completion;
1 month ago
Bryan Biedenkapp
f68bc9fb67
allow disabling KMF UDP DLI by setting otarPort to 0;
1 month ago
Bryan Biedenkapp
04d12f154e
reorganize and cleanup FNE configuration (this was overdue sorry everyone be sure you COMPARE YOUR CONFIGURATION TO THE EXAMPLE); correct conventional reg requesting 0.0.0.0, this allocates an IP and responds to the radio; reimplement the all-peer broadcast of data packets with a "broadcast" option under packetData in the FNE config; allow OTAR DLD KMMs without conventional registration;
1 month ago
Bryan Biedenkapp
042c6986d8
enhance PacketBuffer to support extended PacketBuffer delivery;
1 month ago
Bryan Biedenkapp
b7ec27d93b
correct issue where P25 OTAR KMF RSI is fixed to 16777212 and not configurable;
1 month ago
Bryan Biedenkapp
fd0426814d
correct crash condition that can be caused by retrieving KMF keys;
1 month ago
Bryan Biedenkapp
d07deb8280
correct formatting;
1 month ago
Bryan Biedenkapp
a1315ee82e
remove the STP from health it has no good use;
1 month ago
Bryan Biedenkapp
6e0f7c7c05
unify strings;
1 month ago
Bryan Biedenkapp
30e7099971
implement GET /health FNE API that can be used to fetch a snapshot of the current FNE health;
1 month ago
Bryan Biedenkapp
6c8becc8a6
correct some STP edge case failures; implement STP unit tests proper;
1 month ago
Bryan Biedenkapp
97208efc43
implement some PacketBuffer bounds and order fixes;
1 month ago
Bryan Biedenkapp
536997ac10
add Tier III UDT and registration authentication;
2 months ago
Bryan Biedenkapp
dbc30e97b4
correct DMR ACK_RSP dstId truncation;
2 months ago
Bryan Biedenkapp
b533ea178b
file cleanup;
2 months ago
Bryan Biedenkapp
33b9e25f55
recover Tier III grants for payload-channel re-key;
2 months ago
Bryan Biedenkapp
25dfc17d44
correct Tier III call teardown and slot allocation;
2 months ago
Bryan Biedenkapp
35a2716c07
add AACA Warm-Start Command encoding, CBC-MAC authentication, and temporary TEK handling; begin rekey immediately after a valid Warm-Start acknowledgment or after the response timeout; add upstream UKEK resolution through replica masters; rename LLA key request/response packets to generalized KEK exchanges; include algorithm metadata in KEK responses and network callbacks; improve KMM validation, MAC handling, and encrypted DLD/DLI processing; advertise idle inbound-channel status symbols on outbound P25 PDUs; add Warm Start configuration, test hooks, and expanded KMM/OTAR coverage;
2 months ago
Bryan Biedenkapp
5d32e6fe70
implement support to send the KMM changeover;
2 months ago
Bryan Biedenkapp
87b347ba02
send complete KMM key request and response frames, use fullLength() when transmitting KMM Modify Key messages because length() excludes the three-byte message ID and length prefix;
2 months ago
Bryan Biedenkapp
aba9c330ef
pace complete PDU transactions for air and hotspot modems; correct TIA-102 enhanced AES CBC-MAC generation; start outbound KMM message numbering at one; clear completed FNE response state before the next PDU; decode and log authenticated and invalid-MAC KMM NACKs; add KMM changeover command/response support;
2 months ago
Bryan Biedenkapp
cd4496b56c
correct OTAR response encryption and ACK ordering;
2 months ago
Bryan Biedenkapp
1cb1281839
harden PDU delivery and batch OTAR rekey commands;
2 months ago
Bryan Biedenkapp
c59e93199c
fix up ModemV24 to handle PDUs better;
2 months ago
Bryan Biedenkapp
ce57f48302
corrected short/long modem frame serialization without mutating source lengths or overrunning buffers; removed double-counted PDU padding in common and V.24 assembly; added checked native-modem size enforcement before transmitting oversized PDUs; fixed exact-boundary padding calculations for P25 DataHeader; corrected unconfirmed Auxiliary ES handling, including the 13th-byte EXSAP field; removed incorrect test-side padding-length workarounds that caused tests to pass when they should not have; added exact-boundary and Auxiliary ES regression assertions;
2 months ago
Bryan Biedenkapp
4d1300826c
reorganize source files; add mirror functionality for data router and packet scheduler from P25 to DMR; add tests;
2 months ago
Bryan Biedenkapp
3060769f9b
add better handling for ARP and data packet routing;
2 months ago
Bryan Biedenkapp
b0e2903fb6
perform refactor for how convential CAI P25 Data and SCEP is handled;
2 months ago
Bryan Biedenkapp
10e681d87f
harden OTAR KMM handling and add bearer integration tests;
2 months ago
Bryan Biedenkapp
0bdac24d07
correct KMM NACK responses where necessary;
2 months ago
Bryan Biedenkapp
808aa8b70f
correct bad KMM authentication and replay protection; correctly negotiate proper response authentication; correct key-format semantics (there was a serious mismatch in P25Defines causing incorrect handling of values); harden KMM parsing and framing; fix PDU AES OFB processing; expand the P25 OTAR and crypto tests;
2 months ago
Bryan Biedenkapp
e7fdaed775
correct issue handling HA IP rotation;
2 months ago
Bryan Biedenkapp
99038b07ec
EXPERIMENTAL: add experimental support for NXDN encrypt/decrypt on bridge;
2 months ago
Bryan Biedenkapp
adefbeba89
correct P25 ACK_RSP ISP decode;
2 months ago
Bryan Biedenkapp
ce8b7a7ea7
add similar support from TSBK to CSBK to treat CRC errors as warnings;
2 months ago
Bryan Biedenkapp
d098001076
correct bad logging information;
2 months ago
Bryan Biedenkapp
72b7ba4b58
EXPERIMENTAL: add support to bridge to duplicate traffic to analog when encoding digital audio;
2 months ago
Bryan Biedenkapp
5c5016b623
implement NXDN crypto support; code cleanup;
2 months ago
Bryan Biedenkapp
44b5042c35
begin some corrective work for bridge NXDN support;
2 months ago
Bryan Biedenkapp
4774bb94af
minor source cleanup and annotation;
2 months ago
Lorenzo L. Romero
1040ba35e8
Add FNE console patch status registry service ( #121 )
2 months ago
Bryan Biedenkapp
e4bc909972
correct bad LICH handling for RCCH type packets; correct some bad PacketInformation handling;
2 months ago
Bryan Biedenkapp
9662385249
correct various P25P2 issues; correct bad P25P1 bit additions from network TSDUs;
2 months ago
Bryan Biedenkapp
5091225a9f
correct DMR PDU handling;
2 months ago
Bryan Biedenkapp
a27e87ede1
correct FACCH buffer overflow;
2 months ago
Bryan Biedenkapp
2662dbcf19
correct some DMR OTA late entry issues; correct missing NXDN packet length checks (should be similar to DMR);
2 months ago
Bryan Biedenkapp
e9815ea8b9
correct FNE transport for NXDN to handle 48-byte CAI frames (as intended); correct NXDN bridge issues not properly handling the VCALL header and not handling the SACCH voice superframes correctly; correct NXDN bridge not properly handling NXDN FACCH TX_REL; correct FNE grant using VCALL instead of VCALL_CONN; correct memory handling for NXDN VCALL_IV MI handling; correct dvmhost TX_REL handling to use message type instead of depending on the modem tags alone; correct FACCH LC handling, this was handling incorrect lengths; expand NXDN unit tests;
2 months ago
Bryan Biedenkapp
5bd770a4dd
update submodules;
2 months ago
J. Chang
a4f14606f2
Fix analog and NXDN parrot playback intervals ( #129 )
2 months ago
Bryan Biedenkapp
ccad1479af
correct issue where FNE might be a replica and the radio alias sync command is being used, but because the FNE is a replica there may not be on disk saved radio alias, so save it to disk then read it like other sync operations;
2 months ago
Bryan Biedenkapp
cb390aa0cd
correct packetbuffer issues;
2 months ago
Bryan Biedenkapp
fc23017cf2
P25 OTAR unit tests;
2 months ago
Bryan Biedenkapp
93876e6ab7
enhance LDU1 logs to include the current LCO;
2 months ago
Bryan Biedenkapp
0776f91ba8
correct issue where GROUP_UPDT would incorrectly override the currently active dstId;
2 months ago
Bryan Biedenkapp
e47524a21c
correct heap use-after-free in ServerConnectionManager during stopAll();
3 months ago
Bryan Biedenkapp
5e2356162c
correct some infinte loop conditions due to bad loop variable sizes; correct missing error handling for zlib during decompression;
3 months ago
Bryan Biedenkapp
c701b8e131
correct use-after-free crash for Replication, NetworkTree and KeysUpdate packets;
3 months ago
Bryan Biedenkapp
5e684228f5
add APIs for managing the separate RID alias data; add Catch2 tests;
3 months ago
Bryan Biedenkapp
0e1d45716f
correct shared DLL compilation on Win32;
3 months ago
Bryan Biedenkapp
69aaced3cf
implement build system support for non-static linking;
3 months ago
Bryan Biedenkapp
d736e7b598
implement FNE REST API tests;
3 months ago
Tim WD6AWP
b90cfb8d85
log corrected MI bytes in V.24/TIA DFSI LDU2 FEC-correction warning ( #128 )
...
The Enc Sync content warning only printed algId/kId, but its trigger
condition also fires on an MI-only change (memcmp against LDULC),
making the log show no apparent difference when only the MI changed.
3 months ago
Bryan Biedenkapp
fb6a8089ea
start plumbing for Harris RF OTA User Alias (this is not wired yet...);
3 months ago
Bryan Biedenkapp
193055330a
handle replicating radio aliases from FNE to FNE; implement RADIO_ALIAS_SYNC for fnecore consoles to be able to request the radio alias list from the core;
3 months ago
Bryan Biedenkapp
f5f86ef9c7
add separate radio alias lookup for the purposes of serving non-ACL connected radio ID aliasing in the future;
3 months ago
Bryan Biedenkapp
6b29648e8b
add missing comments/documentation somehow this got clobbered between commits;
3 months ago
Bryan Biedenkapp
f3652d39a7
correct a regression with HTTP GET due to previous HTTP hardening;
3 months ago
Bryan Biedenkapp
47fff42173
add support for FNE tests via dvmtests harness;
3 months ago
Bryan Biedenkapp
6cbcd4240c
perform packet length validations;
3 months ago
Bryan Biedenkapp
5e15e26547
correct a out-of-bounds read error in the HTTP server;
3 months ago
Bryan Biedenkapp
2b3276f3d0
add FNE support to transmit P25 Phase 2 traffic; ensure critical Phase 2 data (such as scrambler offset and MAC PDU Opcode) are sent in P25 Phase 2 frames;
3 months ago
Bryan Biedenkapp
e9dc058704
baseline implementation of host-only P25 Phase 2 implementation (this creates the plumbing required later once the SDR modems have support for Phase 2);
3 months ago
Bryan Biedenkapp
56bff0489b
correct EKC container loading while file is being changes;
3 months ago
Bryan Biedenkapp
18a4a9b18d
correct condition where multiple Key Updates could clobber each other in a race condition;
3 months ago
Bryan Biedenkapp
b13f127036
expand previous PR to cover all RS decode functions; implement fecErr returns for P2 LC handlers; update tests;
3 months ago
Tim WD6AWP
a4f8829b45
R05a06 dev ( #126 )
...
* fix(p25): guard mid-call LDU1 identity against marginal FEC miscorrection
RS634717::decode241213/decode24169 already computed a corrected-symbol
count and threw it away, so a decode() call taking the RS(24,12,13)
LDU1 LC field to the edge of its correction guarantee (miscorrection
of a still-CRC-valid-looking codeword) was as trusted as a clean
decode. Voice::process() also never re-checked a mid-call LDU1's
srcId/dstId against anything once a call was established.
Thread the RS error count up through LC::decodeLDU1/decodeLDU2
(LC::FECErrs), and in Voice::process() treat a mid-call LDU1 as
suspect if either:
- it required RS correction and disagrees with the call's last
known-good LDU1, or
- its dstId disagrees with the dstId from this call's HDU, which is
far more strongly protected (Golay(18,6,8)+RS(36,20,17)) and
fixed for the life of the call, regardless of the LDU1 decode's
own error count.
On either, keep the established identity for that frame instead of
adopting the new one; audio is untouched. Neither check runs at call
grant/establishment, so this doesn't affect ACL or ad hoc/unregistered
srcIds originating a call -- it only stops an already-established
call's identity from being silently redirected mid-transmission.
* fix(modem): use RS-corrected LC content instead of pre-correction DFSI bytes
In ModemV24's DFSI parsing (both convertToAirV24 and convertToAirTIA,
LDU1 and LDU2), srcId/dstId/lco/mfId and algId/kId/MI were latched
directly from the raw wire bytes as they arrived, before the RS
decode of that same data (m_rs.decode241213/decode24169 on
m_rxCall->LDULC) ran. When the decoder found and corrected symbol
errors, the correction was computed and discarded -- the pre-
correction, still-wrong raw values were what actually got used to
build the outgoing frame. Only a hard decode failure (ret == false)
triggered any recovery.
Thread the RS decoder's corrected-error count out via the errs
out-param added to RS634717::decode241213/decode24169, and on a
successful decode with errs > 0, re-derive the affected fields from
the now-corrected LDULC buffer: LDU1 via the existing LC::decodeLC(),
LDU2 via inline extraction matching LC::decodeLDU2()'s own algId/kId/MI
handling. Logs only when the correction actually changed one of these
fields.
Scoped entirely to ModemV24.cpp (the DFSI/V.24 route); LC.cpp,
RS634717.*, Voice.cpp, and Modem.cpp (the direct RF "air" route) are
unchanged.
* Update FEC Waring Log Message
Include LC content for better indication of what changed.
* Revert Control.cpp and test files to match upstream r05a06_dev exactly per review
3 months ago
Bryan Biedenkapp
3c3dc871af
correct double free;
3 months ago
Bryan Biedenkapp
c2a59ef14e
bump major version number;
3 months ago
Bryan Biedenkapp
794e8b71e5
replace UDPSockets preshared AES-ECB implementation with a AES-CBC implementation;
4 months ago
Bryan Biedenkapp
ac9eaa90c4
Dev_Ranger was slightly overzealous in his match and replace;
4 months ago
Dev_Ranger
f309a782de
= Update Influx metrics config field names
...
Rename TrafficNetwork Influx config members to match the new metrics config naming.
4 months ago
Bryan Biedenkapp
4840c2d4c5
log an error when we try to push an event and there is no more room because we have reached max queue depth;
4 months ago
Bryan Biedenkapp
2657edcecf
for backcompat reasons support announce frames on the traffic port (this really should be extremely short term);
4 months ago
Bryan Biedenkapp
74f23f7459
bring calls processed numeric metric in lock-step with a call_event log (originally calls processed was keyed off the start of a call, which can have misleading consequences about the true count of calls);
4 months ago
Bryan Biedenkapp
fdaaff2c56
sqlite3 writer should check g_killed to keep loop alive;
4 months ago
Bryan Biedenkapp
0dc2c37056
thread must die if g_killed set;
4 months ago
Bryan Biedenkapp
b609bcc843
properly label sqlite thread;
4 months ago
Bryan Biedenkapp
ead43239ef
add some logging around queue depth size;
4 months ago
Bryan Biedenkapp
07116a378d
remove remaining mutex locking, this is dangerous but necessary so metrics never causes deadlock;
4 months ago
Bryan Biedenkapp
bcb37cc4a9
remove mutex locking infavor of atomics which should prevent deadlock scenarios (hopefully);
4 months ago
Bryan Biedenkapp
805df02ba0
report call switches in stats API;
4 months ago
Bryan Biedenkapp
c9bb239771
begin metric counting call switch events;
4 months ago
Bryan Biedenkapp
9ef9ba34f4
implement support to log collision events to the metrics DB;
4 months ago
Bryan Biedenkapp
268e5b6f7f
increment total call processed counters when a data call starts;
4 months ago
Bryan Biedenkapp
5e75b6b9e1
replace mutex locking with lock-free atomics instead;
4 months ago
Bryan Biedenkapp
dea6d400db
implement SQLite metrics DB table pruning; cleanup code;
4 months ago
Bryan Biedenkapp
6bfbb03cec
relabel some define constants;
4 months ago
Bryan Biedenkapp
94ad2de4f4
implement support to send logging and metrics to an SQLite DB; refactor how metrics and DB logging are handled;
4 months ago
Bryan Biedenkapp
6c0db3da8a
remove networkWatchdog stop from resetNet(); properly start network watchdog for voice or data frames, but not for TDU or TSDUs;
4 months ago
Bryan Biedenkapp
c3f337489f
always reset states regardless of RS_NET_IDLE when performing a netTGHang resolution; be more verbose about network watchdog timeouts;
4 months ago
Bryan Biedenkapp
3324b67bc8
properly log a TOT state;
4 months ago
Bryan Biedenkapp
4e7a08ea18
refactor base Network class to follow same packet processing refactor that TrafficNetwork and MetadataNetwork did;
4 months ago
Bryan Biedenkapp
a5bebe87f8
refactor how TrafficNetwork and MetadataNetwork handle packet NET_FUNC opcodes;
4 months ago
Bryan Biedenkapp
66aa15ef53
continue adding code tests;
4 months ago
Bryan Biedenkapp
f0f35b59c9
refactor how MetadataNetwork handles the packet buffer maps, this should hopefully correct instability;
4 months ago
Bryan Biedenkapp
0dc6e2bf41
during active RF collision defer stale stream reset;
4 months ago
Bryan Biedenkapp
5321821490
fix incorrect assumptions by some HostControl tests; correct HostControl class name collisions that would cause strange link time errors; correct intermittent CRC-6 test failure;
4 months ago
Bryan Biedenkapp
39a7730484
extra parity alignment with P25 for frame loss handling;
4 months ago
Bryan Biedenkapp
d72b604aa9
implement the same fix for DMR and NXDN;
4 months ago
Bryan Biedenkapp
7cc073b3f0
disabling rfTalkgroupHang (setting to 0) can cause a situation where a abrupt call stop from a subscriber can cause the RF state to hang, this implements a fix where by it forces the rfLossWatchdog to run to terminate a call that abruptly ends;
4 months ago
Bryan Biedenkapp
399992fec9
correct possible edge case causing the Rx P25 stream ID to become stuck; build and implement a test harness against the host controller paths to validate logic where possible;
4 months ago
Bryan Biedenkapp
26f9f3019d
after review, because of how higher-level call handling works, and how ultimately LC metadata corruption from a DFSI source will be hidden, perform similar LC recovery attempts in the ModemV24 class;
4 months ago
Bryan Biedenkapp
9508ce9404
expand on and better handle frame sequencing from a V.24 source;
4 months ago
Bryan Biedenkapp
d05088da57
corrections from cherrypicked code;
4 months ago
Bryan Biedenkapp
0d45869bc4
cherrypick changes from tsawyer/dvmhost/p25-consolidation into ModemV24;
4 months ago
Bryan Biedenkapp
aea826fcbf
minor jitter buffer alteration to properly drop the oldest frame vs the last frame;
4 months ago
Bryan Biedenkapp
8b96163d6e
cleanup call states better when receiving illegal terminators (this should not happen normally unless you have very unstable internet that corrupts frames, but the hardening is better then not);
4 months ago
Bryan Biedenkapp
8fcd066c02
correct 3-bit error handling for Golay(24,12,8); add tests against network engine code; correct sendmmsg implementation against documentation for sendmmsg to better handle partially sent queues instead of discarding;
4 months ago
Bryan Biedenkapp
03068fe382
code cleanup;
4 months ago
Bryan Biedenkapp
191153d3c1
code cleanup;
4 months ago
Bryan Biedenkapp
b4fae1f39a
do not allow non-call RF terminators to be silent, be noisy about the fact that a non-call TDU was received;
4 months ago
developer
6691e2aa77
p25: fix extended-address PDU CRC-32 scope and outbound status bits ( #125 )
4 months ago
Bryan Biedenkapp
82f0c0c375
implement support to encrypt any TEK data with a preshared key;
4 months ago
Bryan Biedenkapp
562fb3cc67
internally generate a GRP_VCH grant demand message for a net event when encountering a grant demand TDU;
4 months ago
Bryan Biedenkapp
f3698cbe86
encode the raw CSBK/TSBK/RCCH data in the control net event data; decode and send net_event for NXDN RCCH data;
4 months ago
Bryan Biedenkapp
0db63a6534
fix missing stream ID for call events; add call duration on call end event;
4 months ago
Bryan Biedenkapp
c299d812e9
add support for call start/end WebSocket events;
4 months ago
Bryan Biedenkapp
7342f69fb9
whoops we were not clamping the jitter buffer size or max wait for peers to internal minimums/maximums;
4 months ago
Bryan Biedenkapp
7c5df8abed
add possible protective controls around RPTL/RPTK/RPTC/RPT_DISC to mitigate multi-threaded race condition from rapid disconnect/connection scenarios;
4 months ago
Bryan Biedenkapp
a7c7c3f330
correct possible null reference during disconnectPeer callback;
4 months ago
Bryan Biedenkapp
f72fc5a1b3
corrections for failing NXDN tests;
5 months ago
Bryan Biedenkapp
e16685fc4a
add rudimentary experimental support for NXDN to dvmbridge; correct a few issues with trunked voice handling for NXDN, when a VC is a trunked participant the outgoing voice frames are RTCH vs RDCH;
5 months ago
Bryan Biedenkapp
c76b417082
correct some minor NXDN issues;
5 months ago
Bryan Biedenkapp
689243e099
source code organization and cleanup;
5 months ago
Bryan Biedenkapp
2d5e307fd8
disable frameQueue debug;
5 months ago
Bryan Biedenkapp
8784e06e3b
EXPERIMENTAL: implement new stream rejection logic when a call collision occurs, this is smarter then the existing logic in that a stream will fail processing validation and be rejected once identified as a collider;
5 months ago
Bryan Biedenkapp
d29ce3c74f
source code commenting cleanup;
5 months ago
Bryan Biedenkapp
54b2a41ec0
increase the base network buffer size from 8192 -> 16384, this is doubly as large, some transfer frames to sysview can reach the 8k boundary and become truncated, this increase in buffer size should allievate that issue;
5 months ago
Bryan Biedenkapp
efedd6a53c
disable accidentally enabled debug trace;
5 months ago
Bryan Biedenkapp
ae93c4cb27
throw errors about writing buffers >8192;
5 months ago
Bryan Biedenkapp
36ab54e120
make oversized packet warning verbose;
5 months ago
Bryan Biedenkapp
082dbcde81
make oversized packet warning verbose;
5 months ago
Bryan Biedenkapp
4883e78065
report IP and port for oversized packet warning;
5 months ago
Bryan Biedenkapp
1a13d736f2
report IP and port for oversized packet warning;
5 months ago
Bryan Biedenkapp
5e3524dfef
updates to various PDU handling functionality;
5 months ago