changes to OnDvHeaderPacketIn for dextra and ysf

pull/1/head
Tom Early 5 years ago
parent eb7247a933
commit 052cdfc6a5

@ -423,7 +423,9 @@ void CDextraProtocol::OnDvHeaderPacketIn(std::unique_ptr<CDvHeaderPacket> &Heade
{
// update Header RPT2 module letter with
// the module the client is linked to
Header->SetRpt2Module(client->GetReflectorModule());
auto m = client->GetReflectorModule();
Header->SetRpt2Module(m);
rpt2.SetModule(m);
}
// and try to open the stream
if ( (stream = g_Reflector.OpenStream(Header, client)) != nullptr )

@ -26,6 +26,7 @@
class CYSFPayload
{
public:
CYSFPayload() : m_uplink(nullptr), m_downlink(nullptr), m_source(nullptr), m_dest(nullptr) {}
bool processHeaderData(unsigned char* bytes);
void writeVDMode2Data(unsigned char* data, const unsigned char* dt);

@ -245,9 +245,11 @@ void CYsfProtocol::OnDvHeaderPacketIn(std::unique_ptr<CDvHeaderPacket> &Header,
if ( client )
{
// get client callsign
rpt2 = client->GetCallsign();
rpt1 = client->GetCallsign();
// get module it's linked to
Header->SetRpt2Module(client->GetReflectorModule());
auto m = client->GetReflectorModule();
Header->SetRpt2Module(m);
rpt2.SetModule(m);
// and try to open the stream
if ( (stream = g_Reflector.OpenStream(Header, client)) != nullptr )

Loading…
Cancel
Save

Powered by TurnKey Linux.