Attention is currently required from: laforge.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-remsim/+/27947 )
Change subject: server: Log connection establishment from bankd/client; warn on localhost
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
Patchset:
PS1:
I don't know much about the architecture in here but looks ok.
--
To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/27947
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: I5446752961b039dad54aec981c1df4814779f765
Gerrit-Change-Number: 27947
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Wed, 27 Apr 2022 10:00:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: laforge.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/27936 )
Change subject: paging: Rework timer lifecycle logic
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
> I'm not sure if we can rely on *all* BTS models actually being able to send PCH load indications. […]
Yes, it should, I'll have a look just to make sure though.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/27936
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I6a0da03c408270044079e81d431f6641527c00cd
Gerrit-Change-Number: 27936
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Wed, 27 Apr 2022 09:57:38 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: comment
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-remsim/+/27947 )
Change subject: server: Log connection establishment from bankd/client; warn on localhost
......................................................................
server: Log connection establishment from bankd/client; warn on localhost
If a bankd connects to the server from 127.0.0.0/8, then clients will
not be able to reach it unless they also run on localhost. Warn the
user.
Change-Id: I5446752961b039dad54aec981c1df4814779f765
---
M src/server/rspro_server.c
1 file changed, 14 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-remsim refs/changes/47/27947/1
diff --git a/src/server/rspro_server.c b/src/server/rspro_server.c
index 6514f80..6c01c0a 100644
--- a/src/server/rspro_server.c
+++ b/src/server/rspro_server.c
@@ -123,6 +123,12 @@
const ConnectClientReq_t *cclreq = NULL;
const ConnectBankReq_t *cbreq = NULL;
RsproPDU_t *resp = NULL;
+ char ip_str[INET6_ADDRSTRLEN];
+ char port_str[6];
+
+ /* remote IP and port */
+ osmo_sock_get_ip_and_port(conn->peer->ofd.fd, ip_str, sizeof(ip_str),
+ port_str, sizeof(port_str), false);
switch (event) {
case CLNTC_E_CLIENT_CONN:
@@ -161,6 +167,7 @@
osmo_fsm_inst_update_id_f(conn->keepalive_fi, "C%u:%u",
conn->client.slot.client_id,
conn->client.slot.slot_nr);
+ LOGPFSML(fi, LOGL_INFO, "Client connected from %s:%s\n", ip_str, port_str);
resp = rspro_gen_ConnectClientRes(&conn->srv->comp_id, ResultCode_ok);
client_conn_send(conn, resp);
osmo_fsm_inst_state_chg(fi, CLNTC_ST_CONNECTED_CLIENT, 0, 0);
@@ -180,6 +187,13 @@
osmo_fsm_inst_update_id_f(fi, "B%u", conn->bank.bank_id);
osmo_fsm_inst_update_id_f(conn->keepalive_fi, "B%u", conn->bank.bank_id);
+ LOGPFSML(fi, LOGL_INFO, "Bankd connected from %s:%s\n", ip_str, port_str);
+ if (!strncmp(ip_str, "127.", 4)) {
+ LOGPFSML(fi, LOGL_NOTICE, "Bankd connected from %s (localhost). "
+ "This only works if your clients also all are on localhost, "
+ "as they must be able to reach the bankd!\n", ip_str);
+ }
+
/* reparent us from srv->connections to srv->banks */
pthread_rwlock_wrlock(&conn->srv->rwlock);
llist_del(&conn->list);
--
To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/27947
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: I5446752961b039dad54aec981c1df4814779f765
Gerrit-Change-Number: 27947
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
Attention is currently required from: osmith, pespin.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/27923 )
Change subject: osmobts: list all features of latest osmobts
......................................................................
Patch Set 3:
(1 comment)
File src/osmo-bsc/bts_trx_vty.c:
https://gerrit.osmocom.org/c/osmo-bsc/+/27923/comment/06a84c01_6f76b6b7
PS2, Line 347: * connected yet (thus not sent the feature vector), so we cannot know for
> Yes I personally think we can remove them. […]
agreed.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/27923
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I7fca42a39a4bc98a6ea8b9cfab28c4bad3a6a0aa
Gerrit-Change-Number: 27923
Gerrit-PatchSet: 3
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 27 Apr 2022 06:22:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: osmith <osmith(a)sysmocom.de>
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment