From ac13498dc219c74d8214a314d0341574ada0ceb3 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 29 Dec 2020 11:54:36 +0100 Subject: Make EDI output FEC configurable --- src/Outputs.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/Outputs.cpp') diff --git a/src/Outputs.cpp b/src/Outputs.cpp index 27ab365..66335cb 100644 --- a/src/Outputs.cpp +++ b/src/Outputs.cpp @@ -155,8 +155,6 @@ void EDI::add_udp_destination(const std::string& host, unsigned int port) // We cannot carry AF packets over UDP, because they would be too large. m_edi_conf.enable_pft = true; - - // TODO make FEC configurable } void EDI::add_tcp_destination(const std::string& host, unsigned int port) @@ -172,6 +170,12 @@ void EDI::add_tcp_destination(const std::string& host, unsigned int port) m_edi_conf.dump = false; } +void EDI::set_fec(int fec) +{ + m_edi_conf.enable_pft = true; + m_edi_conf.fec = fec; +} + bool EDI::enabled() const { return not m_edi_conf.destinations.empty(); -- cgit v1.2.3