summaryrefslogtreecommitdiffstats
path: root/src/dabOutput
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-14 15:35:28 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-14 15:35:28 +0200
commitee7aae13524f67a4cc6e7f7404cbcae4693dbc25 (patch)
treec45fe45224ba20435ca4ba4169e408fb9e0e025c /src/dabOutput
parent1c77fb55da641348fc71f6a82a4d178ec1960c1e (diff)
downloaddabmux-ee7aae13524f67a4cc6e7f7404cbcae4693dbc25.tar.gz
dabmux-ee7aae13524f67a4cc6e7f7404cbcae4693dbc25.tar.bz2
dabmux-ee7aae13524f67a4cc6e7f7404cbcae4693dbc25.zip
Set EDI destination defaults and add error checking
Diffstat (limited to 'src/dabOutput')
-rw-r--r--src/dabOutput/dabOutput.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dabOutput/dabOutput.h b/src/dabOutput/dabOutput.h
index 4142b25..5ea93db 100644
--- a/src/dabOutput/dabOutput.h
+++ b/src/dabOutput/dabOutput.h
@@ -53,8 +53,8 @@
struct edi_destination_t {
std::string dest_addr;
std::string source_addr;
- unsigned int source_port;
- unsigned int ttl;
+ unsigned int source_port = 0;
+ unsigned int ttl = 10;
std::shared_ptr<UdpSocket> socket;
};