Commit graph

109 commits

Author SHA1 Message Date
LX3JL 129f1257b4
Merge pull request #237 from narspt/patch-25
allow pass dmr/ysf to peers, without transcoding
2023-12-12 13:28:46 +01:00
LX3JL 136ccff0fe
Merge pull request #212 from narspt/patch-15
add embedded LC data for DMRmmdvm
2023-12-12 13:26:41 +01:00
narspt a5556d689d set eot status bit for ysf last packet 2023-12-08 19:39:25 +00:00
narspt 6b7658b995
allow pass dmr/ysf to peers, without transcoding 2023-10-27 17:32:12 +01:00
LX3JL d14dc22fbf
Merge pull request #229 from anonymouspage/cg3protocol-initialize-thread-vars
cg3protocol: fix crash/default initialize std::thread pointers
2023-03-01 18:39:31 +01:00
LX3JL 8520b0b42a
Merge pull request #230 from anonymouspage/isdigit-does-not-return-one
isdigit() may return any non-zero result for success
2023-03-01 18:35:32 +01:00
LX3JL b96002d291
Merge pull request #231 from anonymouspage/cdmriddir-virtual-destructor
CDmridDir destructor should be virtual
2023-03-01 18:30:40 +01:00
LX3JL 19b13dfc8b
Merge pull request #213 from narspt/patch-16
fix frame sequence for streams initiated on different mode
2023-03-01 18:25:32 +01:00
LX3JL 8428d1ef40
Merge pull request #222 from narspt/patch-20
fix ambed openstream timeout issue
2023-03-01 18:24:16 +01:00
LX3JL 9ca67d1e23 version 2.5.3
Add compatibility with DR-2X firmware up to 1.4.4
2023-01-15 17:14:55 +01:00
Mark Landis (N6AZX) af7ed717b4 CDmridDir destructor should be virtual
CDmridDir is a base class for CDmridDirHttp and CDmridDirFile, so
its destructor should be marked virtual to prevent undefined behavior.
2022-12-31 08:16:35 -08:00
Mark Landis (N6AZX) 08d1ff5df0 isdigit() may return any non-zero result for success
POSIX states that the return value of isdigit(): "shall return non-zero
if c is a decimal digit; otherwise, they shall return 0."

Thus the form:

  ok &= isdigit(x)

is invalid since the runtime is not required to return 1.

This bug was observed on Debian 11 while using the clang toolchain.
In that environment, isdigit() returns 2048 for a positive match.
2022-12-27 15:04:09 -08:00
Mark Landis (N6AZX) d4c72fd623 Default initialize class thread variables
During testing in a sandbox environment, xlxd crashed in
CG3Protocol::Close(). The root cause was dereferencing
m_pPresenceThread when the object had never been initialized.
In this case an error occured during ::Init() which set ok=false,
so the initialization of the threads was skipped.

This commit does 3 things:

(1) Default initializes the thread pointers to avoid the crash.
(2) Wraps the thread allocation with try/catch since std::thread can
    throw.
(3) Does some light cleaning in ::Close, e.g., converting NULL to
    nullptr.
2022-12-17 14:58:25 -08:00
LX1IQ 6752c7b254
Update main.h 2022-12-08 07:22:27 +01:00
LX1IQ d7daeb0c52
Update main.h 2022-12-08 07:20:10 +01:00
narspt 99530863d5 fix openstream timeout issue 2022-08-19 21:22:10 +01:00
narspt ee95248e95
fix m_uiYsfPacketFrameId and m_uiImrsPacketFrameId
to match the change on m_uiPacketCntr
2022-02-06 21:08:53 +00:00
narspt 3de68cd506
fix frame sequence applied by UpdatePids() 2022-02-06 21:00:15 +00:00
narspt 0fe726479c
Update cdmrmmdvmprotocol.h 2022-02-06 08:21:45 +00:00
narspt 84ed362863
add embedded LC data for DMRmmdvm 2022-02-06 08:14:14 +00:00
narspt a44697cb46
xlxd 2.5.2 2021-11-18 04:33:03 +00:00
narspt d9402c1aeb
change SetYsfCallsign() to trim callsign on null char 2021-11-18 00:45:54 +00:00
LX3JL 2fd3d875dc xlxd 2.5.1
Corrected issue with IMRS repeataer disconnecting during very long QSO
2021-11-07 11:07:30 +01:00
Jim Tittsler f8644e1f1f
fix Linux AF_INET iteration segfault
Prevent segfault when WireGuard is active and an interface has `ifaptr->ifa_addr == NULL`
2021-11-05 13:07:07 +09:00
LX3JL c3de5fa893 corrected deadloop in CImrsProtocol::EncodePongPacket() 2021-10-30 23:09:48 +02:00
LX3JL b411eb8b8a corrected bug preventing relaying streams on module 'A' of IMRS clients
corrected bug xlxd not advertising module W,X,Y & Z to IMRS clients
2021-10-30 18:21:05 +02:00
narspt 43c1a10832
fix SetYsfCallsign() missing dmrid update
this caused YSF transmissions to show-up on DMR listeners with dmrid 0
2021-10-28 23:07:52 +01:00
LX3JL a45cdff2d2 implementation of Yaesu's IRMS protocol 2021-10-26 20:36:29 +02:00
narspt e752b76376
change dg-id mapping and fix gatekeeper bypass 2021-10-10 02:10:31 +01:00
narspt 32c9e0ce8f
allow YSF clients to change linked module by DG-ID 2021-07-13 00:48:43 +01:00
LX3JL 3c3367fee6 version 2.4.2
updated ambed logging
2021-07-06 10:18:58 +02:00
LX3JL 52457403d3
Merge pull request #194 from narspt/patch-9
allow connecting dextra clients to listen already streaming clients
2021-07-06 09:17:22 +02:00
LX3JL 2c7fae6c9f
Merge pull request #193 from narspt/patch-8
fix dplus sending header packets inconsistently
2021-07-06 08:54:52 +02:00
narspt f534041ce6
revert to closing streams immediately but fix last packets sent back
This patch reverts the change done on v2.4.1, so that streams are closed immediately as it used to be (instead of relying on CheckStreamsTimeout) but fixes last packets sent back to sender, by doing basically what was already done before but on proper order to avoid the issue.

Relying on CheckStreamsTimeout actually introduces a problem: transmitting client gets "mute" for 1.6 sec. after each transmission, this means that if a 2nd client starts transmitting within this time frame then the "mute" client can't listen the beginning of the 2nd client transmission, the problem is even worst (i.e. critical) for DExtra because the "mute" client will not be able to get the header packet of the 2nd client transmission and this means that whole transmission is lost - this renders DExtra almost unusable on v2.4.1 unless all clients take special care about spaces between transmissions.
2021-07-05 02:09:02 +01:00
narspt e6a5c7aed1
Update cdextraprotocol.cpp 2021-04-14 01:55:26 +01:00
narspt d01bed9bd9
Update cdextraprotocol.h 2021-04-14 00:59:43 +01:00
narspt f7ce6d02fa
fix dplus sending header packets inconsistently
depending on the number of dplus clients connected on the reflector, in some cases (for eg. with 3 or 6 clients connected) only one client could actually get lots of header packets and the other clients get none
2021-04-10 02:34:49 +01:00
iamsi 1ffcee24ca Fix 1 byte buffer overflow in AMBE handling 2021-03-16 18:35:48 +00:00
LX3JL 73516e9f14 undo PR #176
#176 is breaking ambed connectivity when ambed on same machine than xlxd. So this revert to previous version
2021-01-26 11:05:13 +01:00
LX3JL 9fd1df64f1
Merge pull request #166 from phl0/UpdateMakefile
Add terminal config to Makefile
2021-01-17 21:34:23 +01:00
LX3JL 222aa20dde
Merge pull request #176 from F4FXL/NoPublicIPForTranscoder
Avoid using public IP for transcoder connection
2021-01-17 21:32:02 +01:00
Marius Petrescu, YO2LOJ a8153d8ae5
Update buffer allocation to the correct size
Maximum size of ICMP packet is 64k while buffer allocation was UDP_BUFFER_LENMAX, while read was up to 64k.
This will cause a crash on read in the subsequent read for packets with length greater than UDP_BUFFER_LENMAX via a buffer overflow.
2021-01-16 01:43:05 +02:00
LX3JL cb989fd8de xlxd 2.4.1
Corrected bug : last packets of a stream are sent back to sender
2021-01-05 10:36:36 +01:00
Geoffrey Merck 220da86aa0 Avoid using public IP for transcoder connection 2020-10-08 18:50:06 +02:00
Tom Early 6f67b46298 Fix orphaned Frame memory leak 2020-07-02 10:38:10 -07:00
phl0 c3647a45cf
Add terminal config to Makefile 2020-04-20 23:13:51 +02:00
LX3JL 2f239d6746 xlxd 2.4.0
Added G3 protocol
2020-04-07 09:51:03 +02:00
LX3JL ed2873f78d
Merge pull request #140 from yo2loj/master
Added G3 Terminal Support
2020-04-07 09:29:32 +02:00
LX3JL e18010f66c
Merge pull request #126 from lucamarche-iz1mlt/patch-1
Fixed CPU load if not run as daemon
2020-04-06 12:42:45 +02:00
K2IE b8bda1ccc7 YSF module display fix for U/C only radios such as FT-70DR 2020-03-25 17:54:36 -04:00