Never forward mlat via SBS or raw output; it is no longer identifiable

as mlat when forwarded on those paths.
This commit is contained in:
Oliver Jowett 2016-01-21 17:48:06 +00:00
parent 5c3692a513
commit ecbdbf23d6

View file

@ -643,13 +643,17 @@ static void send_sbs_heartbeat(struct net_service *service)
//========================================================================= //=========================================================================
// //
void modesQueueOutput(struct modesMessage *mm, struct aircraft *a) { void modesQueueOutput(struct modesMessage *mm, struct aircraft *a) {
if ((mm->bFlags & MODES_ACFLAGS_FROM_MLAT) && !Modes.forward_mlat) int is_mlat = ((mm->bFlags & MODES_ACFLAGS_FROM_MLAT) != 0);
return;
if (!is_mlat) {
modesSendSBSOutput(mm, a); modesSendSBSOutput(mm, a);
modesSendBeastOutput(mm);
modesSendRawOutput(mm); modesSendRawOutput(mm);
} }
if (!is_mlat || Modes.forward_mlat) {
modesSendBeastOutput(mm);
}
}
// //
//========================================================================= //=========================================================================
// //