summaryrefslogtreecommitdiffstats
path: root/src/Outputs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Outputs.cpp')
-rw-r--r--src/Outputs.cpp8
1 files changed, 6 insertions, 2 deletions
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();