From b222093fa6eaf52744c16628f6c10084fd634968 Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Thu, 16 Jun 2022 12:22:10 -0600 Subject: [PATCH] Add owner, remark to septool --- septool.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/septool.cc b/septool.cc index 46f73f5..3c9fa44 100644 --- a/septool.cc +++ b/septool.cc @@ -133,6 +133,8 @@ try bool doVERSION{false}, doSTDOUT{false}; CLI::App app(program); string sourceaddr; + string owner; + string remark; bool quiet{false}; app.add_option("--source", sourceaddr, "Connect to this IP address:port to source SBF (otherwise stdin)"); app.add_option("--destination,-d", destinations, "Send output to this IPv4/v6 address"); @@ -140,6 +142,9 @@ try app.add_option("--quiet", quiet, "Don't emit noise"); app.add_flag("--version", doVERSION, "show program version and copyright"); app.add_flag("--stdout", doSTDOUT, "Emit output to stdout"); + app.add_option("--owner,-o", owner, "Name/handle/nick of owner/operator"); + app.add_option("--remark", remark, "Remark for this station"); + try { app.parse(argc, argv); } catch(const CLI::Error &e) { @@ -376,8 +381,8 @@ try nmm.mutable_od()->set_clockaccuracyns(0); nmm.mutable_od()->set_freqaccuracyps(0); - nmm.mutable_od()->set_owner("Septentrio"); - nmm.mutable_od()->set_remark(""); + nmm.mutable_od()->set_owner(owner); + nmm.mutable_od()->set_remark(remark); nmm.mutable_od()->set_recvgithash(g_gitHash); nmm.mutable_od()->set_uptime(time(0) - starttime); ns.emitNMM( nmm);