Commit graph

24 commits

Author SHA1 Message Date
Jonathan Naylor
7d3e899104 Clean ups for IPv6. 2020-09-06 12:54:08 +01:00
SASANO Takayoshi
9856025923 rewrite for UDPSocket renewal 2020-09-06 15:52:46 +09:00
SASANO Takayoshi
74adbd4895 Merge remote-tracking branch 'upstream/master' into ipv6
simply merged upstream code.

following files are conflicted, all fixed
GPSD.h, MobileGPS.cpp, NXDNNetwork.cpp, NXDNNetwork.h, UDPSocket.h

NXDNIcomNetwork and NXDNKenwoodNetwork is still original code,
not support IPv6-UDPSocket yet.
2020-07-03 04:17:14 +09:00
SASANO Takayoshi
dfaedb450b replace rand() -> MT19937 random number generator
sometimes rand() makes problem so replace it to MT19937 in C++11 <random>.
2020-07-02 06:40:26 +09:00
SASANO Takayoshi
dad47317e6 set INADDR_ANY/IN6ADDR_ANY_INIT address string to m_socket
when CUDPSocket::open() is called with m_address (in CUDPSocket) is nothing,
IPv4 socket is created by "0.0.0.0" (INADDR_ANY) address.

This causes a problem that DMRGateway cannot connect to reflector on IPv6.
To choose default INADDR_ANY/IN6ADDR_ANY_INIT address, added
open(address_family) in UDPSocket.cpp.

Following code sets address string at construction, not modified.
	NXDNNetwork.cpp
	POCSAGNetwork.cpp
	YSFNetwork.cpp

Other codes does not set, modified open() -> open(address_family)
	DMRNetwork.cpp
	DStarNetwork.cpp
	MMDVMHost.cpp
	MobileGPS.cpp
	P25Network.cpp
	RemoteCommand.cpp
	RemoteControl.cpp

I think there is more clever method, but I have no other idea.

Maybe IPv6 support for digital radio works, but RemoteControl can work
IPv4 only.
2020-04-06 18:35:12 +09:00
SASANO Takayoshi
c92039d83b modified for IPv6 supported CUDPSocket 2020-04-06 18:34:54 +09:00
Jonathan Naylor
76badb28f1 Add more intelligence to the remote control. 2019-01-15 21:45:29 +00:00
Jonathan Naylor
bb9db2ce93 Clean up the merged code. 2018-07-04 19:00:51 +01:00
Shawn Chain
1ab0610543 patch stdlib header 2018-07-03 10:04:44 +08:00
Jonathan Naylor
a2d456b98f Changes for DVMega via the host. 2016-03-08 17:26:51 +00:00
Jonathan Naylor
e11be44f79 Reduce the level of network debugging output a little. 2016-02-18 19:09:10 +00:00
Jonathan Naylor
78155c4bee Re-enabling the D-Star networking resets the incoming session id. 2016-02-17 15:49:50 +00:00
Jonathan Naylor
1bfa3688c0 Add debugging to the ring buffers. 2016-02-15 20:18:30 +00:00
Jonathan Naylor
91a328935f Reset the D-Star network session id at all ends of transmissions. 2016-02-04 22:41:38 +00:00
Jonathan Naylor
2ca7d85167 Clean up D-Star network status log message. 2016-02-03 08:07:05 +00:00
Jonathan Naylor
9ccc86050a Debugging D-Star. 2016-02-01 21:44:40 +00:00
Jonathan Naylor
2947888cad Add the status ack to D-Star. 2016-02-01 20:49:52 +00:00
Jonathan Naylor
fc3a688196 First cut of the D-Star repeater control. 2016-01-27 20:01:50 +00:00
Jonathan Naylor
024bb30498 Switch off the D-Star network when not in D-Star mode. 2016-01-26 17:19:41 +00:00
Jonathan Naylor
c92434e474 Move the D-Star poll message to be run from the network class. 2016-01-25 23:08:34 +00:00
Jonathan Naylor
8860b72e6c Changes based on debugging. 2016-01-25 22:36:16 +00:00
Jonathan Naylor
521ffceb96 Rationalise the D-Star networking handler. 2016-01-25 22:00:15 +00:00
Jonathan Naylor
95b1473ebe Add debugging to the D-Star network handler. 2016-01-25 21:56:20 +00:00
Jonathan Naylor
bdb41fb64e Add the D-Star networking. 2016-01-25 21:00:19 +00:00