Make IMRS receive only with data dunmping for now.

This commit is contained in:
Jonathan Naylor 2020-08-21 10:28:16 +01:00
parent a3a93807a5
commit 1b8b2918c0
2 changed files with 7 additions and 2 deletions

View file

@ -240,7 +240,7 @@ int CDGIdGateway::run()
dgIdNetwork[dgid]->m_rfHangTime = rfHangTime;
dgIdNetwork[dgid]->m_netHangTime = netHangTime;
}
/* } else if (type == "IMRS") {
} else if (type == "IMRS") {
if (imrs != NULL) {
std::vector<IMRSDestination*> destinations = (*it)->m_destinations;
std::vector<IMRSDest*> dests;
@ -260,7 +260,6 @@ int CDGIdGateway::run()
dgIdNetwork[dgid]->m_rfHangTime = rfHangTime;
dgIdNetwork[dgid]->m_netHangTime = netHangTime;
}
*/
} else if (type == "Parrot") {
in_addr address = CUDPSocket::lookup((*it)->m_address);
unsigned int port = (*it)->m_port;

View file

@ -65,6 +65,8 @@ void CIMRSNetwork::write(unsigned int dgId, const unsigned char* data)
{
assert(data != NULL);
return; // XXX Disable IMRS transmit
IMRSDGId* ptr = find(dgId);
if (ptr == NULL)
return;
@ -149,6 +151,10 @@ void CIMRSNetwork::clock(unsigned int ms)
if (length <= 0)
return;
LogDebug("IMRS Network Data Reecived from port %u", port);
CUtils::dump(1U, "IMRS Network Data Received", buffer, length);
return;
if (port != IMRS_PORT)
return;