diff --git a/DGIdGateway/DGIdGateway.cpp b/DGIdGateway/DGIdGateway.cpp index 9201aa7..4e9878b 100644 --- a/DGIdGateway/DGIdGateway.cpp +++ b/DGIdGateway/DGIdGateway.cpp @@ -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 destinations = (*it)->m_destinations; std::vector 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; diff --git a/DGIdGateway/IMRSNetwork.cpp b/DGIdGateway/IMRSNetwork.cpp index ae55003..f777987 100644 --- a/DGIdGateway/IMRSNetwork.cpp +++ b/DGIdGateway/IMRSNetwork.cpp @@ -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;