Timur Davydov has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/42702?usp=email )
Change subject: smux: allow lchan lookup without remote address
......................................................................
smux: allow lchan lookup without remote address
Make rem_addr optional in osmux_lchan_find() by skipping
address comparison when it is NULL
This allows callers without socket-based addressing to
locate lchans by CID only (e.g. callback-based transports)
Change-Id: I7a275dad2353241c7b04cdb5d6cc1436a175c1f3
---
M src/common/osmux.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/02/42702/1
diff --git a/src/common/osmux.c b/src/common/osmux.c
index 9513bdc..52885eb 100644
--- a/src/common/osmux.c
+++ b/src/common/osmux.c
@@ -267,7 +267,7 @@
if (lchan->abis_ip.osmux.local_cid != osmux_cid)
continue;
h = osmux_xfrm_input_get_deliver_cb_data(lchan->abis_ip.osmux.in);
- if (osmo_sockaddr_cmp(&h->rem_addr, rem_addr) != 0)
+ if (rem_addr && osmo_sockaddr_cmp(&h->rem_addr, rem_addr) != 0)
continue;
return lchan; /* Found it! */
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/42702?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I7a275dad2353241c7b04cdb5d6cc1436a175c1f3
Gerrit-Change-Number: 42702
Gerrit-PatchSet: 1
Gerrit-Owner: Timur Davydov <dtv.comp(a)gmail.com>
Timur Davydov has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/42689?usp=email )
Change subject: build: make timerfd usage optional
......................................................................
build: make timerfd usage optional
Check for sys/timerfd.h in configure and guard its usage
with HAVE_SYS_TIMERFD_H.
This avoids build failures on platforms where timerfd is
not available.
Change-Id: Id5a700c865f984e8f99199a1e365bb7f1462030a
---
M configure.ac
M src/osmo-bts-trx/scheduler_trx.c
2 files changed, 7 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/89/42689/1
diff --git a/configure.ac b/configure.ac
index d18d8b3..1d69bc3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -326,6 +326,11 @@
AC_DEFINE(HAVE_LINUX_IF_PACKET_H, 1, [Define if we found linux/if_packet.h])
fi
+AC_CHECK_HEADER([sys/timerfd.h], [sys_timerfd_header="yes"], [])
+if test "x$sys_timerfd_header" = "xyes" ; then
+ AC_DEFINE(HAVE_SYS_TIMERFD_H, 1, [Define if we found sys/timerfd.h])
+fi
+
# Generate manuals
AC_ARG_ENABLE(manuals,
[AS_HELP_STRING(
diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c
index a9a53f6..99efdf6 100644
--- a/src/osmo-bts-trx/scheduler_trx.c
+++ b/src/osmo-bts-trx/scheduler_trx.c
@@ -28,7 +28,9 @@
#include <stdint.h>
#include <ctype.h>
#include <inttypes.h>
+#ifdef HAVE_SYS_TIMERFD_H
#include <sys/timerfd.h>
+#endif
#include <osmocom/core/msgb.h>
#include <osmocom/core/talloc.h>
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/42689?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Id5a700c865f984e8f99199a1e365bb7f1462030a
Gerrit-Change-Number: 42689
Gerrit-PatchSet: 1
Gerrit-Owner: Timur Davydov <dtv.comp(a)gmail.com>
Attention is currently required from: falconia.
fixeria has posted comments on this change by falconia. ( https://gerrit.osmocom.org/c/libosmo-abis/+/42679?usp=email )
Change subject: cosmetic: fix white space in lapd_sap_{start,stop}()
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/42679?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Iadf8629bc3bdf18260b1b83290ce95483d8aac2c
Gerrit-Change-Number: 42679
Gerrit-PatchSet: 1
Gerrit-Owner: falconia <falcon(a)freecalypso.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: falconia <falcon(a)freecalypso.org>
Gerrit-Comment-Date: Sun, 26 Apr 2026 18:54:10 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes