aboutsummaryrefslogtreecommitdiffstats
path: root/src/EDISender.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/EDISender.cpp')
-rw-r--r--src/EDISender.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/EDISender.cpp b/src/EDISender.cpp
index 6774aee..30c7289 100644
--- a/src/EDISender.cpp
+++ b/src/EDISender.cpp
@@ -104,6 +104,20 @@ void EDISender::send_tagpacket(tagpacket_t& tp)
if (edi_sender and edi_conf.enabled()) {
edi::TagPacket edi_tagpacket(0);
+
+ if (tp.seq.seq_valid) {
+ edi_sender->override_af_sequence(tp.seq.seq);
+ }
+
+ if (tp.seq.pseq_valid) {
+ edi_sender->override_pft_sequence(tp.seq.pseq);
+ }
+ else if (tp.seq.seq_valid) {
+ // If the source isn't using PFT, set PSEQ = SEQ so that multihoming
+ // with several EDI2EDI instances could work.
+ edi_sender->override_pft_sequence(tp.seq.seq);
+ }
+
edi_tagpacket.raw_tagpacket = move(tp.tagpacket);
edi_sender->write(edi_tagpacket);
}