Commit Graph

340 Commits (0dc6e2bf41366e2623affc5a3e7eebde5dd49be2)

Author SHA1 Message Date
Bryan Biedenkapp ded260216a implement the beginnings of KMM frame handling (for future use);
2 years ago
Bryan Biedenkapp b1f10a87ab add some helper routines to the peer list lookup;
2 years ago
Bryan Biedenkapp cb335cffed add some exception checking around some cases where vector types are used;
2 years ago
Bryan Biedenkapp 8823fc09b6 correct erroneous log messages; fix remote UDP mode handler (this was mishandling frames in some situations); update hotspot and modem submodules;
2 years ago
Bryan Biedenkapp ef1a0df496 refactor FNE RTP packet handling, this change better handles a peer end-point transmitting multiple varied RTP streams; refactor promiscuous handling of RTP streams on the host network API; refactor handling non-promiscuous handling of RTP streams on the host network API; bump project version from 4.11F to 4.11G to reflect these larger changes; correct bad use of magic numbers when dealing with signal values;
2 years ago
Bryan Biedenkapp f051434e7b adjust lookup table logging slightly;
2 years ago
Bryan Biedenkapp 64bcb56228 enhance debug logging to incorporate both file and line numbers (when provided by the compiler) and optionally implement LogDebugEx macro to also incorporate the caller identifying the function name; correct LogDebug uses in some cases that should have been LogMessage;
2 years ago
Bryan Biedenkapp c68b99dc61 silence frame queue read errors after 5 consecutive errors (this is to prevent log spam);
2 years ago
Bryan Biedenkapp 086730320d code cleanup;
2 years ago
Bryan Biedenkapp cbce2fbdf0 update copyright dates;
2 years ago
Bryan Biedenkapp 151275ce6f implement initial DMR remote grant demand logic (this is mostly untested);
2 years ago
Bryan Biedenkapp 3177d38897 Merge branch 'master' into incall_ctrl
2 years ago
Bryan Biedenkapp 02581f2c3f file cleanups;
2 years ago
Bryan Biedenkapp da5cb6eb7d Merge branch 'master' into incall_ctrl
2 years ago
Bryan Biedenkapp 8c48c9bcbe fix huge glaring bug where the dvmhost was trying to transmit TDULCs across the network as TSBKs; implement proper support to transit TDULC data across the network;
2 years ago
Bryan Biedenkapp e88a3a0b2a add support to decode LC_CALL_TERM when DVM is used in some reverse repeater situations;
2 years ago
Bryan Biedenkapp 1e6282c92b ensure the group flag is set if the LCO is PRIVATE;
2 years ago
Bryan Biedenkapp 3f75869a92 add some mutex locking to the timestamp map updates to prevent concurrency bugs;
2 years ago
Bryan Biedenkapp f3c86d2a8e support configuring SSL TCP sockets for non-blocking operations;
2 years ago
Bryan Biedenkapp 3b395a99cf fix issue with potentional concurrency crash when updating lookup tables in PEER_LINK;
2 years ago
Bryan Biedenkapp a82f848de4 correct bad handling for signal and compact fields of the TIA-102 control octet; enhance how the length of a TIA-102 full rate voice frame is determined; better handle initialization of the additional data fields for a TIA-102 full rate voice frame; correct bug using LDU2 frame 10 vs LDU2 frame 18 for LSD data on a full rate voice frame; implement a naive approach to performing superframe counting; correct bug causing the first full rate voice frames to never be transmitted for LDU1 or LDU2; remove assertion check for control port;
2 years ago
Bryan Biedenkapp 2e0ffab13d correct un-updated debug handles in LC; correct TIA mode HDU handling;
2 years ago
Bryan Biedenkapp 406943d75f add FSCSelChannel message decoding (not that we need it);
2 years ago
Bryan Biedenkapp 164d2b6c87 whoops actually instantiate FSCMessage for FSC_SEL_CHAN;
2 years ago
Bryan Biedenkapp 6d5e158808 just ack the FSC_SEL_CHAN command when requested; fix data offset for TIA-102 DFSI data;
2 years ago
Bryan Biedenkapp 418ffeea24 fix null reference;
2 years ago
Bryan Biedenkapp 0e5d075c62 expose configuring the FSC heartbeat interval; expose enabling TIA mode DFSI frames; correct FullRateVoice memory copy for additional data;
2 years ago
Bryan Biedenkapp 2d450f64b0 [EXPERIMENTAL] initial TIA-102 DFSI packet support (not enabled yet);
2 years ago
Bryan Biedenkapp ddda823b55 whoops forgot to add files for previous commit;
2 years ago
Bryan Biedenkapp ca7149e9f4 add FSC_REPORT_SEL_MODES;
2 years ago
Bryan Biedenkapp da3a2a1869 fix long standing dvmhost shutdown bug (object cleanup wasn't occuring due to bad state change handling); refactor FSC packet data classes; remove FSCResponse and FSCConnectResponse (these were ill conceived due to bad interpretation of TIA-102 specifications); correct FSCACK not properly decoding response user data after packet data; refactor the way the FSC message factory createMessage() function created instances of FSC packets; refactor how opening and closing the FSC port is handled; better implement the FSC state machine; correct bad response to an FSC_CONNECT (due to incorrect understanding of TIA-102 specifications);
2 years ago
Bryan Biedenkapp 19d8f2237f refactor FSC (it was entirely just broken);
2 years ago
Bryan Biedenkapp 80542e246a use *DESTINATION ID* not *SOURCE ID* for outgoing U_DEREG_ACK frames;
2 years ago
W3AXL 0481a1fc68
FNE Peer ACL Rest Improvements (#80)
2 years ago
Bryan Biedenkapp f3fa7053b8 minor cleanups; ensure pad length is handled properly by PDU code;
2 years ago
Bryan Biedenkapp 1b4ea4d8c7 refactor status bit handling slightly;
2 years ago
ilyacodes dc5e156a6a
Update documentation for Golay (23,12,7) FEC (#75)
2 years ago
Bryan Biedenkapp 2979110421 add some mutex locking for affiliation lookups;
2 years ago
Bryan Biedenkapp 77291533c6 Merge branch 'master' into incall_ctrl
2 years ago
Bryan Biedenkapp 8a0412524a fix issue with DataBlock destructor trying to free a unallocated array; fix issue with dispatchUserFrameToFNE allowing local FNE network packets to cross external peer boundary; allow peers to connect if the peer list ACL is enabled, but the peer list itself is empty;
2 years ago
Bryan Biedenkapp 8f74260d5d Merge branch 'master' into incall_ctrl
2 years ago
Bryan Biedenkapp 05fa1c2114 increase SSL timeout delay from 2 to 5 seconds;
2 years ago
Bryan Biedenkapp eedd067489 correct order of initialization, and ensure m_stop is set to false by default;
2 years ago
Bryan Biedenkapp ebfbed1ef5 Merge branch 'master' into incall_ctrl
2 years ago
Bryan Biedenkapp f810351847 use non-blocking IO for the SecureTcpClient accept routine;
2 years ago
Bryan Biedenkapp 619cb548df add support for per TGID RID permission lists; add call router support to check for source RID permission to TGID;
2 years ago
Bryan Biedenkapp 59f85c5976 implement in-call control mechanism (this allows the FNE to command a host to stop transmitting if a ACL check fails);
2 years ago
Bryan Biedenkapp f40e6c6af0
Merge Peer Link Enhancement Changes (#73)
2 years ago
Bryan Biedenkapp 8c00c7b81c add missing peer link parameter when saving peer list;
2 years ago
Bryan Biedenkapp 2e2e8bf957 fix all instances of (uint32_t) for calcTxOffset;
2 years ago
Bryan Biedenkapp 3ed87d4f89 slim down the embedded zlib library;
2 years ago
Bryan Biedenkapp 5f601247b7 add zlib 1.3.1 dep (included in common); implement Peer-Link feature, this allows a master CFNE, when configured by peer list, to transmit complete talkgroup, RID and peer list data to subordinate CFNEs;
2 years ago
Bryan Biedenkapp ff6658cae7 how did no one find this, like how was this missed? add missing affiliated flag being sent from FNE to host;
2 years ago
Bryan Biedenkapp ab32e8c8be implement getDefault for json::value, this helps correct a flaw in picojson that causes get to fail with an assertion;
2 years ago
Bryan Biedenkapp 4f5369a582 because I just made this error, lets make sure debug builds are clearly labeled [and as such we'll label them in a cheeky way ;)];
2 years ago
Bryan Biedenkapp fe66aff8ab correct long lingering frequency rounding error when calculating freq in MHz;
2 years ago
Bryan Biedenkapp 8f6319d15e refactor SysView and more tightly integrate with the DVM stack; add CC voice channel reporting in the peer status message; add support on the FNE to report activity log and peer status to SysView instances;
2 years ago
Bryan Biedenkapp cd56011f87 refix issue with REST client (I shrunk a buffer for testing and didn't re-enbigen it); enhance some sysview displays slightly;
2 years ago
Bryan Biedenkapp fe6f7508c0 add code dump of private sysview FNE monitoring utility to public GPL; correct issue with large REST responses getting truncated;
2 years ago
Bryan Biedenkapp ce008197fd bug fixes for tged;
2 years ago
Bryan Biedenkapp 538763c203 allow length written to be returned;
2 years ago
Bryan Biedenkapp 582629c395 add rule name alias for future use;
2 years ago
Bryan Biedenkapp 4786923b1e fix sleep deprived typos;
2 years ago
Bryan Biedenkapp f68532ed33 [EXPERIMENTAL] add possible support to convertToAir V.24 PDU frames;
2 years ago
W3AXL 8c836ec336 whoops, put this in the right place
2 years ago
W3AXL babfdeb4f3 fixed U: log messages causing journalctl spam
2 years ago
Bryan Biedenkapp d106fbb062 add some extra length documentation for RTP packets; make network ringbuffer initialized value a constant; continue logic implementation for P25 data; correct buffer issue on P25 data;
2 years ago
Bryan Biedenkapp a880d2734e implement call collision timeouts; fix GRP_VCH_GRANT_UPD allow it to carry 2 channels per spec;
2 years ago
Bryan Biedenkapp 8ba2528533 bump overall version number with release of dvmbridge C++ alpha and Win32 support;
2 years ago
Bryan Biedenkapp 65fa91b7cb
[THIS MAY BREAK THINGS, BE AWARE] Merge Win32 support and C++ dvmbridge into master. (#67)
2 years ago
Bryan Biedenkapp 6542443ca7 add support to transmit dynamic regroup IR extended commands;
2 years ago
W3AXL f0d7ecb021 removed individual RID lookup prints
2 years ago
firealarmss e031b2bb8f
Add support for GRP UNAFFIL opcode. (#65)
2 years ago
Bryan Biedenkapp 093f8dd6e8 more warning cleanups;
2 years ago
Bryan Biedenkapp 27452f935d cleanup some warnings;
2 years ago
Bryan Biedenkapp 34855aed70 fix incorrect macro;
2 years ago
Bryan Biedenkapp 10232d2f9b OSP_TIME_DATE_ANN fix variable size;
2 years ago
Bryan Biedenkapp 1bada70ca4 better fix then the previous commit, flag a LC decode from an LDU1 as "raw only", use raw RS bytes always for a ModemV24 convertFromAir;
2 years ago
Bryan Biedenkapp c8a60af83c attempt to add pass thru support for some LCs;
2 years ago
Bryan Biedenkapp 59a5482473 silence "Failed writing data to the network" messages; silence out-of-sequence warnings if the pktSeq is 0; when the master reports it is closing, have peers restart their connection states;
2 years ago
W3AXL e7bec0504f corrected V24 TSBK offset
2 years ago
Bryan Biedenkapp 38bce6de04 fixup V.24 TSBK data offset; correct situation where ACL lists for a host would repeatedly be sent because the last update time was never changed (this could happen if the peer is in progress for traffic, if thats the case just ignore sending updates and wait till next interval to send them);
2 years ago
Bryan Biedenkapp 4f55a89201 implement some changes suggested by CLang; fix writePeerStatus() not using RTP_END_OF_CALL_SEQ;
2 years ago
Bryan Biedenkapp 617c889d1a
Merge DFSI host changes into master (#63)
2 years ago
Bryan Biedenkapp 2c640a53c4 allow OSP_TSBK_RAW to allocate and decode a raw unknown TSBK;
2 years ago
Bryan Biedenkapp eae8923227 various cleanups; correct incorrect implementation for copy constructors on DFSI FSC messages;
2 years ago
Bryan Biedenkapp e0ea19b350 move dvmdfsi/frames into common; make host Modem class inheritable;
2 years ago
Bryan Biedenkapp 9205f514a1 increase time between modem polls to 750us;
2 years ago
Bryan Biedenkapp abe45a1d53 fix up file headers;
2 years ago
W3AXL 34d17d961a added DVMV24 board info reporting
2 years ago
Bryan Biedenkapp 8ba9e5c846 fix up Catch2 tests (these are woefully maintained...); add support for RC4-type encryption;
2 years ago
Bryan Biedenkapp cb5329b2ca simplify poll implementation;
2 years ago
Bryan Biedenkapp 47d89febdf fix various valgrind reports;
2 years ago
Bryan Biedenkapp 355db0c9cc [This commit contains highly-experimental and possibly unstable alterations to core archeitcture on dvmhost] deprecate ThreadFunc (using C++ lambda's was a bad idea to begin with); refactor some startup messages; refactor use of ThreadFunc in FNE; refactor how threads were created in the FNE; [EXPERIMENTAL] refactor the host architecture to use threading for modem clocking and protocol readers;
2 years ago
Bryan Biedenkapp 4ba65c5bab fix issue where when *decoding* a EXT_FNCT the src and dst would be inverted resulting in bad logging;
2 years ago
Bryan Biedenkapp e66365f3f4 add support to sleep for shorter periods of time;
2 years ago
Bryan Biedenkapp da2f6130a8 [NOTICE: this commit is *EXPERIMENTAL* and implements *very* early data support, it is expected to be buggy, incomplete or broken] implement VTUN interface (fne0) on the dvmfne (this requires dvmfne to be run as root on Linux system [untested on non-Linux] to create the tun interface); implement VIFace random MAC generation; implement P25 TIA-102.BAEB SCEP ARP (SCEP is always used for conventional data) on dvmfne; refactor P25 packet status bits (this may break things else where, beware!); properly implement P25 status bit flipping on inbound channel activity; implement functionality in the P25 and DMR DataHeader classes to calculate the proper raw PDU frame length; implement dvmfne ARP table creation and maintainence (this is buggy and requires more implementation and test); implement dvmfne VTUN -> PDU and PDU -> VTUN IP traffic forwarding (this is incomplete and requires more implementation and test); correct several issues on dvmhost p25::packet::Data with overlapped buffers;
2 years ago
Bryan Biedenkapp eb093b3f5f use epoll for VIFace;
2 years ago
Bryan Biedenkapp d32e62e3cf add virtual interface support class;
2 years ago
Bryan Biedenkapp dc29208e70 refactor DMR PDU processing to be more in-line with how P25 PDU processing is done; implement support on the FNE to inspect and dispatch DMR PDUs properly;
2 years ago
Bryan Biedenkapp c9e7dcc11f make LC_CALL_TERM use dstId;
2 years ago
Bryan Biedenkapp 369c3bee25 remove debug trace log messages (whoops); fix edge case situation where the modem may stop reading because the response state machine is stuck;
2 years ago
Bryan Biedenkapp 2be4ca2bec log ARP requests;
2 years ago
Bryan Biedenkapp c4147ecc5b ensure exSAP is reset properly;
2 years ago
Bryan Biedenkapp f3c3cc95ce refactor P25 PDU extended address handling (this loosely gets a lot of conventional data things working, Moto TMS for example will pass in conventional [although buggy]); pass PDU response data headers (with no block followers) across the network;
2 years ago
Bryan Biedenkapp 197ce833ac correct Trellis symbol skipping logic for DMR for 3/4 Trellis; enhance DMR short LC bits; correctly identify short LC for data and CSBK; correct buffered PDU repeat logic (when header has no blocks following);
2 years ago
Bryan Biedenkapp 88b619c71f implement initial logic to provide PDU processing on the FNE;
2 years ago
Bryan Biedenkapp a9bc150da7 add IP address column to RID tables (this is *NOT* used yet, and is for future use);
2 years ago
Bryan Biedenkapp d281844c74 byte reverse IP addresses returned for P25's OTA; fix conventional registration packets not properly transmitting; continued work on P25 data refactoring;
2 years ago
Bryan Biedenkapp ca3fc407c0 add helper to convert an IP in std::string to a uint32_t; add calculateLength() function to P25 PDU DataHeader to more easily calculate data header fields for a packet; correct missing DAC and MDPCO fields on SNDCPCtxActAccept; correct missing MDPCO field on SNDCPCtxActRequest; implement support for Control::writeRF_TDU to be sent to the immediate queue; implement support for Data::writeRF_PDU and Data::writeRF_PDU_User to send data to the immediate queue; add some TDU leader and trialers to PDU handling; enhance the AUTH_DMD by forcing the AMBTs to the immediate queue; continued enhancements to the SNDCP support;
2 years ago
Bryan Biedenkapp 6a040b6bec correct issue with P25 deregistrations always generating a U_REG_CMD instead of only generating a U_REG_CMD for registration timeouts;
2 years ago
Bryan Biedenkapp 882c2564ca correct double spaced formatting of CPP files in common; convert dvmhost to Doxygen documentation format; convert dvmfne to Doxygen documentation format; convert dvmcmd to Doxygen documentation format;
2 years ago
Bryan Biedenkapp 10e1e12be0 add doxygen configuration for dvmhost project; add doxygen output directory; convert common static library to use doxygen style commenting and documentation;
2 years ago
Bryan Biedenkapp 3861559f87 add support to send SNDCP disabled annoucement messages properly;
2 years ago
Bryan Biedenkapp f23d3931f4 add initial support to process SNDCP control PDU data;
2 years ago
Bryan Biedenkapp e90350d350 begin implementing some basic SNDCP handling logic (this isn't complete, and this doesn't make SNDCP work *yet*), however until the implementation is complete, this should prevent channels from becoming grant locked (hopefully);
2 years ago
Bryan Biedenkapp 45efd99801 support decoding rogue OSP_SNDCP_CH_GNT (even tho on DVM you can *enable* this you shouldn't because there's no SNDCP application that will respond);
2 years ago
Bryan Biedenkapp 35c07715bc don't use HUGE as a SiteModel because certain versions of GCC are awful;
2 years ago
Bryan Biedenkapp 9050ad7885 this should address the issues with #53, dvmhost and dvmdfsi *should* transparently pass unknown non-standard MFId LCs in the voice LDU1 frames; correct some logging irregularities in dvmdfsi;
2 years ago
Bryan Biedenkapp 55b1670121 update copyright dates;
2 years ago
Bryan Biedenkapp 673289c764 add more constant/enum documentation from specification documents;
2 years ago
Bryan Biedenkapp eacbc27143 add marking of whether an inbound CAC is long or short; fix issue with short CAC not properly building a puncturing buffer (even tho short CAC doesn't do puncturing, its needed for NXDN convolution); correct CAC getData() return; remove deprecated code causing decoding offsets to be wrong resulting in invalid RCCHs;
2 years ago
Bryan Biedenkapp 51bd9e749d implement CAC long puncturing for NXDN; correct issues with NXDN site information data;
2 years ago
Bryan Biedenkapp 5fde17f879 fix stupid GCC 4.9.3 for ARMHF non-sense;
2 years ago
Bryan Biedenkapp d702eeae9a update byte packing documentation on some headers/functions for -- future generations;
2 years ago
Bryan Biedenkapp 67429e3e34 use localtime instead of gmtime for logs;
2 years ago
Bryan Biedenkapp 92e9e2d8b0 correct toString() for CSBK_BROADCAST;
2 years ago
Bryan Biedenkapp cb0500b2e7 treewide: refactor constant variables into proper enumerations where appropriate (this applies to DMR, P25 and NXDN, and may introduce gremlins);
2 years ago
Bryan Biedenkapp 36c04a74ec move the NET_FUNC* and NET_SUBFUNC* constants into proper namespaced enums;
2 years ago
Bryan Biedenkapp e5e5462473 fix #54, this should fix issue #54 in dealing with segmented/fragemented HTTP requests; enhance debug messaging from REST API server;
2 years ago
Bryan Biedenkapp 1d0c8da331 bump project version to R04A01; remove extraneous files;
2 years ago
Patrick W3AXL 0bbc69d237
Basic implementation of dvmdfsi in dvmhost C++ ecosystem (#59)
2 years ago
Bryan Biedenkapp 2f918d759d implement support to send logs to the syslog;
2 years ago
Bryan Biedenkapp 2c560dc3ce add support to report host status JSON blob to FNE for storage in InfluxDB;
2 years ago
Bryan Biedenkapp f39e8de0e1 refactor PR#55's peer list implementation to utilize a lookup table; add support to peer list implementation, when in whitelist mode to support per peer passwords (techincally this works in blacklist mode but is ... well irrelevant as blacklist mode *rejects* connections from peers in the list file); correct a few issues regarding how NAKs are returned early in the authentication handshake; reformat log messages; fix issue in host voice when regular conventional traffic is sent to a DVRS-enabled channel and legacy group grant is disabled;
2 years ago
Bryan Biedenkapp 7840f6ebe8 cleanup some log messaging for the peer lookup table handler;
2 years ago
firealarmss bd3e737adf
REST Additions and added NAK reasons (#56)
2 years ago
firealarmss cba48ae54a
Add support for peer blacklist and whitelist (#55)
2 years ago
Bryan Biedenkapp 3335f7be39 add support to reload TG and RID lists via REST API for the FNE;
2 years ago
Bryan Biedenkapp 1de86458a6 fix DVRS unit deregistration issue (units weren't registered properly during GRP_AFF because DVRS doesn't do the typical U_REG); implement 12-hour timeout for unit registrations (this is only applied if the SU in question has *NOT* had *ANY* activity within 12 hours);
2 years ago
Bryan Biedenkapp 0251944438 fix ability to set MFID via REST before issuing P25 commands; implement MBT for GRP_AFF_Q_RSP;
2 years ago
Bryan Biedenkapp f60ac33a34 add log messages for always being used;
2 years ago
Bryan Biedenkapp c8eb52a57d add try {} catch {} around some critical ASIO read calls to prevent application crash (this won't resolve the errors but should prevent application crash); implement support for peer ID list that *always* receives traffic for a TGID regardless of affiliation rules;
2 years ago
Bryan Biedenkapp 70600d3fd7 remove deprecated options; ensure we check if a peer is enabled on the FNE before attempting to read/write to it; silence BUGBUG UDP write message;
2 years ago
Bryan Biedenkapp 9b6fcdbdf7 fix incorrect assembly of DENY TSDUs for certain services; replace QUEUE TSDUs for grant TSDUs with DENY TSDUs;
3 years ago
Bryan Biedenkapp afa47f4b58 fix bonehead mistake not cleaning up arrays before reallocating them;
3 years ago
Bryan Biedenkapp a7f9cb93be fix issue handling $F7E NAC; implement $F7F NAC support;
3 years ago
Bryan Biedenkapp ae3a03b521 fix LC_GROUP_UPDT using duplicated data;
3 years ago
Bryan Biedenkapp 9b828fe7a4 ensure the lookup table thread is named; don't display the not transmitting CC messages unless the test timer is not paused; add aggressive watchdog logging for when timers exceed 1s intervals; split adj. site and affiliation updating into a separate thread (huge adj. site updates could be the cause of main loop processing delays); ensure threads are properly shutdown; increase P25 adj site update timer from 30 seconds to 60 seconds (5 minutes of no updates will now FAIL an adj. site);
3 years ago
Bryan Biedenkapp 36099367c8 fix condition where the Log and ActivityLog would overflow the character buffer by no properly calculating the length of the va_args string (this should resolve buffer overflow terminations on GCC 13+);
3 years ago

Powered by TurnKey Linux.