aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabMux.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-11-27 16:27:08 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-11-27 16:27:08 +0100
commit79a788b6139f121e30816c046f7ff2c4320d5a0b (patch)
treea39551dec8baa012d617e739ed13066b232c2c81 /src/DabMux.cpp
parentc43aed07562dc2bd3d2dfd6065df3ce564cf3cfa (diff)
downloaddabmux-79a788b6139f121e30816c046f7ff2c4320d5a0b.tar.gz
dabmux-79a788b6139f121e30816c046f7ff2c4320d5a0b.tar.bz2
dabmux-79a788b6139f121e30816c046f7ff2c4320d5a0b.zip
Add source and ttl settings for EDI
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r--src/DabMux.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index 04aed2b..f3f0c95 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -325,7 +325,9 @@ int main(int argc, char *argv[])
edi_conf.dest_addr = pt_edi.get<string>("destination");
edi_conf.dest_port = pt_edi.get<unsigned int>("port");
+ edi_conf.source_addr = pt_edi.get<string>("source", "");
edi_conf.source_port = pt_edi.get<unsigned int>("sourceport");
+ edi_conf.ttl = pt_edi.get<unsigned int>("ttl", 1);
edi_conf.dump = pt_edi.get<bool>("dump");
edi_conf.enable_pft = pt_edi.get<bool>("enable_pft");
@@ -430,10 +432,13 @@ int main(int argc, char *argv[])
#if HAVE_OUTPUT_EDI
if (edi_conf.enabled) {
- etiLog.level(warn) << "EXPERIMENTAL EDI OUTPUT ENABLED!";
- etiLog.level(info) << "edi to " << edi_conf.dest_addr << ":" << edi_conf.dest_port;
- etiLog.level(info) << "source port " << edi_conf.source_port;
- etiLog.level(info) << "verbose " << edi_conf.verbose;
+ etiLog.level(info) << "EDI to " << edi_conf.dest_addr << ":" << edi_conf.dest_port;
+ if (not edi_conf.source_addr.empty()) {
+ etiLog.level(info) << " source " << edi_conf.source_addr;
+ etiLog.level(info) << " ttl " << edi_conf.ttl;
+ }
+ etiLog.level(info) << " source port " << edi_conf.source_port;
+ etiLog.level(info) << " verbose " << edi_conf.verbose;
}
#endif