laforge has submitted this change. (
https://gerrit.osmocom.org/c/osmo-remsim/+/26921 )
Change subject: Fix client_id/bank_id/slot_nr range in manual + --help output
......................................................................
Fix client_id/bank_id/slot_nr range in manual + --help output
The RSPRO.asn protocol defines the ranges 0..1023 for slot, bank
and client IDs. Don't make misleading claims in manual and/or
help messages.
Change-Id: Id383b2bea4c014e7b61ae02e7062ba4db5c2dc20
---
M doc/manuals/chapters/remsim-bankd.adoc
M doc/manuals/chapters/remsim-client.adoc
M src/bankd/bankd_main.c
M src/client/remsim_client_main.c
4 files changed, 11 insertions(+), 11 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
diff --git a/doc/manuals/chapters/remsim-bankd.adoc
b/doc/manuals/chapters/remsim-bankd.adoc
index da529e2..7c102de 100644
--- a/doc/manuals/chapters/remsim-bankd.adoc
+++ b/doc/manuals/chapters/remsim-bankd.adoc
@@ -61,7 +61,7 @@
==== SYNOPSIS
-*osmo-remsim-bankd* [-h] [-V] [-d LOGOPT] [-i A.B.C.D] [-p <1-65535>] [-b
<1-65535>] [-n <1-65535>] [-I A.B.C.D] [-P <1-65535> ]
+*osmo-remsim-bankd* [-h] [-V] [-d LOGOPT] [-i A.B.C.D] [-p <1-65535>] [-b
<1-1023>] [-n <1-1023>] [-I A.B.C.D] [-P <1-65535> ]
==== OPTIONS
@@ -77,11 +77,11 @@
*-p, --server-port <1-65535>*::
Specify the remote TCP port number of the `osmo-remsim-server` to which
this bankd shall establish its RSPRO control connection
-*-b, --bank-id <1-65535>*::
+*-b, --bank-id <1-1023>*::
Specify the numeric bank identifier of the SIM bank this bankd
instance operates. Must be unique among all banks connecting to the
same `osmo-remsim-server`.
-*-n, --num-slots <1-65535>*::
+*-n, --num-slots <1-1023>*::
Specify the number of slots that this bankd handles.
*-I, --bind-IP A.B.C.D*::
Specify the local IP address to which the socket for incoming connections
diff --git a/doc/manuals/chapters/remsim-client.adoc
b/doc/manuals/chapters/remsim-client.adoc
index efd1752..d897431 100644
--- a/doc/manuals/chapters/remsim-client.adoc
+++ b/doc/manuals/chapters/remsim-client.adoc
@@ -82,11 +82,11 @@
*-p, --server-port <1-65535>*::
Specify the remote TCP port number of the `osmo-remsim-server` to which
this client shall establish its RSPRO control connection
-*-c, --client-id <1-65535>*::
+*-c, --client-id <1-1023>*::
Specify the numeric client identifier of the SIM bank this bankd
instance operates. The tuple of client-id and client-slot must be
unique among all clients connecting to the same `osmo-remsim-server`.
-*-n, --client-slot <0-65535>*::
+*-n, --client-slot <0-1023>*::
Specify the slot number served within this client. The tuple of
client-id and client-slot must be unique among all clients connecting
to the same `osmo-remsim-server`.
@@ -224,11 +224,11 @@
*-p, --server-port <1-65535>*::
Specify the remote TCP port number of the `osmo-remsim-server` to which
this client shall establish its RSPRO control connection
-*-c, --client-id <1-65535>*::
+*-c, --client-id <1-1023>*::
Specify the numeric client identifier of the SIM bank this bankd
instance operates. The tuple of client-id and client-slot must be
unique among all clients connecting to the same `osmo-remsim-server`.
-*-n, --client-slot <0-65535>*::
+*-n, --client-slot <0-1023>*::
Specify the slot number served within this client. The tuple of
client-id and client-slot must be unique among all clients connecting
to the same `osmo-remsim-server`.
diff --git a/src/bankd/bankd_main.c b/src/bankd/bankd_main.c
index 2923924..fcdbf76 100644
--- a/src/bankd/bankd_main.c
+++ b/src/bankd/bankd_main.c
@@ -277,8 +277,8 @@
" -d --debug option Enable debug logging (e.g. DMAIN:DST2)\n"
" -i --server-host A.B.C.D remsim-server IP address (default: 127.0.0.1)\n"
" -p --server-port <1-65535> remsim-server TCP port (default: 9998)\n"
-" -b --bank-id <1-65535> Bank Identifier of this SIM bank (default:
1)\n"
-" -n --num-slots <1-65535> Number of Slots in this SIM bank (default:
8)\n"
+" -b --bank-id <1-1023> Bank Identifier of this SIM bank (default:
1)\n"
+" -n --num-slots <1-1023> Number of Slots in this SIM bank (default:
8)\n"
" -I --bind-ip A.B.C.D Local IP address to bind for incoming client\n"
" connections (default: INADDR_ANY)\n"
" -P --bind-port <1-65535> Local TCP port to bind for incoming
client\n"
diff --git a/src/client/remsim_client_main.c b/src/client/remsim_client_main.c
index 47ec8ac..e3d3cf8 100644
--- a/src/client/remsim_client_main.c
+++ b/src/client/remsim_client_main.c
@@ -30,8 +30,8 @@
" -d --debug option Enable debug logging (e.g. DMAIN:DST2)\n"
" -i --server-ip A.B.C.D remsim-server IP address\n"
" -p --server-port 13245 remsim-server TCP port\n"
- " -c --client-id <0-65535> RSPRO ClientId of this client\n"
- " -n --client-slot <0-65535> RSPRO SlotNr of this client\n"
+ " -c --client-id <0-1023> RSPRO ClientId of this client\n"
+ " -n --client-slot <0-1023> RSPRO SlotNr of this client\n"
" -e --event-script <path> event script to be called by client\n"
#ifdef USB_SUPPORT
" -V --usb-vendor VENDOR_ID\n"
--
To view, visit
https://gerrit.osmocom.org/c/osmo-remsim/+/26921
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: Id383b2bea4c014e7b61ae02e7062ba4db5c2dc20
Gerrit-Change-Number: 26921
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: roh <jsteiger(a)sysmocom.de>
Gerrit-MessageType: merged