aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2020-11-16 09:00:37 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2020-11-16 09:00:37 +0100
commit04870cbe5e115603b187b6257f9c363b127461ff (patch)
tree8498cfe138b0fe2c32786c3fad0a1d6f0330351d /src
parent17b2f2fb09bf5d20246d21ba52c2c3e5d6f883c2 (diff)
downloadODR-EDI2EDI-04870cbe5e115603b187b6257f9c363b127461ff.tar.gz
ODR-EDI2EDI-04870cbe5e115603b187b6257f9c363b127461ff.tar.bz2
ODR-EDI2EDI-04870cbe5e115603b187b6257f9c363b127461ff.zip
Add -A option to disable PFT transport addressing
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 616f9ac..1ff0c03 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -69,6 +69,7 @@ static void usage()
cerr << " -x Drop frames where for which the wait time would be negative, i.e. frames that arrived too late.\n";
cerr << " -p <destination port> Set the destination port.\n";
cerr << " -P Disable PFT and send AFPackets.\n";
+ cerr << " -A Disable Transport Addressing in PFT.\n";
cerr << " -f <fec> Set the FEC.\n";
cerr << " -i <interleave> Enable the interleaver with this latency.\n";
cerr << " -D Dump the EDI to edi.debug file.\n";
@@ -146,10 +147,13 @@ class Main : public EdiDecoder::ETIDataCollector {
int ch = 0;
while (ch != -1) {
- ch = getopt(argc, argv, "c:C:d:p:s:S:t:Pf:i:Dva:b:w:xh");
+ ch = getopt(argc, argv, "Ac:C:d:p:s:S:t:Pf:i:Dva:b:w:xh");
switch (ch) {
case -1:
break;
+ case 'A':
+ edi_conf.enable_transport_header = false;
+ break;
case 'c':
source = optarg;
break;