diff options
Diffstat (limited to 'src/Outputs.cpp')
-rw-r--r-- | src/Outputs.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Outputs.cpp b/src/Outputs.cpp index 44dc865..7046f61 100644 --- a/src/Outputs.cpp +++ b/src/Outputs.cpp @@ -151,13 +151,11 @@ void EDI::add_udp_destination(const std::string& host, unsigned int port) { auto dest = make_shared<edi::udp_destination_t>(); dest->dest_addr = host; - m_edi_conf.dest_port = port; + dest->dest_port = port; m_edi_conf.destinations.push_back(dest); // 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) @@ -173,6 +171,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(); |