Commit graph

22 commits

Author SHA1 Message Date
Ember
a1946c8fc8 Validate DMRD packet length before enqueuing
The received packet length was stored as unsigned char (max 255) and
used without validating it matches the expected 55-byte DMRD packet
size. Reject packets that don't match the expected length to prevent
stale data reads and silent truncation.
2026-04-05 17:53:52 -07:00
Ember
f697c1de8c Fix heap buffer overflow on DMRG/DMRA packets
Incoming DMRG and DMRA packets were copied into 50-byte buffers
without checking the packet length. UDP reads can return up to 500
bytes, overflowing the heap allocation. Drop oversized packets.
2026-04-04 16:49:19 -07:00
Jonathan Naylor
4ff688045f Update the C++ version and other changes. 2025-03-17 14:09:42 +00:00
Jonathan Naylor
ec5c32b57a Update the C++ code. 2025-03-15 17:03:06 +00:00
Daniel Caujolle-Bert
d9a09a9364
Fix network ports datatype (unsigned int -> unsigned short). UDPSocket: fix old bug using m_port instead of m_port[x]. 2021-04-25 07:44:55 +02:00
Jonathan Naylor
f4d9895842 More IPv6 upgrades. 2020-09-05 20:49:30 +01:00
Jonathan Naylor
7e2f4d3c6e More IPv6 updates. 2020-09-05 20:15:23 +01:00
Jonathan Naylor
5e3e9f10b9 Merge branch 'IPv6' into SimpleDMR 2020-09-03 11:16:10 +01:00
Jonathan Naylor
1606c4e644 Move the location to the DMR Gateway from the Host. 2020-08-27 10:37:26 +01:00
Jonathan Naylor
b344248e0a Simplify the Host to DMR Gateway protocol. 2020-08-26 14:20:04 +01:00
SASANO Takayoshi
249bae1e7b replace sockaddr_in -> sockaddr_storage to support IPv6 2019-10-23 12:04:06 +09:00
Jonathan Naylor
0c31af146c Pass through the MMDVM's home position to all connected networks. 2018-10-30 07:42:04 +00:00
g0wfv
2c94d8a6c2 Alter log messages to differentiate between DMR and MMDVM networks 2017-06-08 10:29:36 +01:00
Tony Corbett G0WFV
706d30303e Respond to MMDVM closing down 2017-06-08 10:15:00 +01:00
g0wfv
4c64d3a8f7 Send MSTCL instead of MSTNAK 2017-06-08 09:43:30 +01:00
g0wfv
e1d0a469eb Alert the host of shutdown by sending MSTNAK on network close 2017-06-07 20:10:23 +01:00
Jonathan Naylor
efbf42ff83 Allow for passing of beacon requests from the networks to the repeater. 2017-06-02 16:29:01 +01:00
Jonathan Naylor
90f5e17be9 Pass through new GPS and TA data. 2017-05-17 18:58:46 +01:00
Jonathan Naylor
ab0f0d5806 Fix RSSI and BER data. 2017-05-11 20:23:41 +01:00
Jonathan Naylor
315f189a80 Improve the MMDVM protocol support. 2017-04-24 17:53:49 +01:00
Jonathan Naylor
5941d983ac First round of bug fixes and cleanups. 2017-04-23 20:17:25 +01:00
Jonathan Naylor
c04c3e1aef Initial commit. 2017-04-20 20:51:30 +01:00