This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Pau Espin Pedrol gerrit-no-reply at lists.osmocom.orgPau Espin Pedrol has submitted this change and it was merged. ( https://gerrit.osmocom.org/9642 )
Change subject: bsc-nat: Add -V param to print version
......................................................................
bsc-nat: Add -V param to print version
Change-Id: I4dbf97905749aa9379bc6b6b448953d8b1825545
---
M openbsc/src/osmo-bsc_nat/bsc_nat.c
1 file changed, 7 insertions(+), 1 deletion(-)
Approvals:
Harald Welte: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c b/openbsc/src/osmo-bsc_nat/bsc_nat.c
index a9f1c0b..ba7f542 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_nat.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c
@@ -1465,6 +1465,7 @@
printf(" -D --daemonize Fork the process into a background daemon\n");
printf(" -s --disable-color\n");
printf(" -T --timestamp. Print a timestamp in the debug output.\n");
+ printf(" -V --version. Print the version of OsmoBSCNAT.\n");
printf(" -c --config-file filename The config file to use.\n");
printf(" -m --msc=IP. The address of the MSC.\n");
printf(" -l --local=IP. The local address of this BSC.\n");
@@ -1481,12 +1482,13 @@
{"config-file", 1, 0, 'c'},
{"disable-color", 0, 0, 's'},
{"timestamp", 0, 0, 'T'},
+ {"version", 0, 0, 'V' },
{"msc", 1, 0, 'm'},
{"local", 1, 0, 'l'},
{0, 0, 0, 0}
};
- c = getopt_long(argc, argv, "hd:sTPc:m:l:D",
+ c = getopt_long(argc, argv, "hd:sTVPc:m:l:D",
long_options, &option_index);
if (c == -1)
break;
@@ -1511,6 +1513,10 @@
case 'T':
log_set_print_timestamp(osmo_stderr_target, 1);
break;
+ case 'V':
+ print_version(1);
+ exit(0);
+ break;
case 'm':
msc_ip = optarg;
break;
--
To view, visit https://gerrit.osmocom.org/9642
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I4dbf97905749aa9379bc6b6b448953d8b1825545
Gerrit-Change-Number: 9642
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180618/081d23eb/attachment.htm>