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:
credit_timer is scheduled during paging_init(), when the BTS is started.
It is also re-scheduled every time paging_update_buffer_space() is called, that is, every time a CCCH Load indication.
When credit_timer triggers (paging_give_credit()), paging_handle_pending_requests() is called. However, after that, the timer is not rescheduled, so indeed in here we'd fail to continue giving credit if no CCCH Load Ind is received anymore. Thanks for raising the topic, I'll fix it.
--
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 10:23:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
laforge has submitted this change. ( 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(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
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-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged