osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/39048?usp=email )
Change subject: ipaccess-proxy: Fix wrong cb function passed
......................................................................
ipaccess-proxy: Fix wrong cb function passed
It makes no sense that ipaccess-proxy is using the ipaccess_fd_cb()
function from libosmo-abis, since that function expects an e1_input
ipaccess driver to be set up by the app, which ipaccess-proxy never sets
up. Furthermore, even the data pointer being passed doesn't match the
one expected by the callback.
This seems to be a bug introduced 10 years ago in osmo-bsc.git
eb623019382fdbff36fb8a72052732e225aef67e, where the name of the private
function callback used by ipaccess-proxy was changed to
proxy_ipaccess_fd_cb() to avoid colliding with the ipaccess_fd_cb() from
libosmo-abis, but only 1 of the 2 references was changed at the time,
leaving the other one pointing to the wrong function.
Fixes: eb623019382fdbff36fb8a72052732e225aef67e
Change-Id: I1702d9913a462a36e4b78b503a8338ae2ad140b1
(cherry picked from commit eb08b4ce41aa323532a7cc845eb6d236f65a6afb)
---
M src/ipaccess/ipaccess-proxy.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/48/39048/1
diff --git a/src/ipaccess/ipaccess-proxy.c b/src/ipaccess/ipaccess-proxy.c
index 7ede283..62e79cd 100644
--- a/src/ipaccess/ipaccess-proxy.c
+++ b/src/ipaccess/ipaccess-proxy.c
@@ -1021,7 +1021,7 @@
}
bfd = &ipc->fd;
- osmo_fd_setup(bfd, ret, OSMO_FD_READ | OSMO_FD_WRITE, ipaccess_fd_cb, ipc, priv_nr);
+ osmo_fd_setup(bfd, ret, OSMO_FD_READ | OSMO_FD_WRITE, proxy_ipaccess_fd_cb, ipc, priv_nr);
ret = setsockopt(bfd->fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on));
if (ret < 0) {
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/39048?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-bsc
Gerrit-Branch: osmith/1.12.3
Gerrit-Change-Id: I1702d9913a462a36e4b78b503a8338ae2ad140b1
Gerrit-Change-Number: 39048
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
osmith has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/39037?usp=email )
Change subject: debian/rules: remove override_dh_strip
......................................................................
debian/rules: remove override_dh_strip
Remove this rule, as is not needed.
From https://www.debian.org/doc/manuals/developers-reference/best-pkging-practic…:
> it should not be necessary to use the old manually generated ones anymore.
Change-Id: I03ea18523dcac4db8069e6481b25e2db836c7200
---
M debian/rules
1 file changed, 0 insertions(+), 6 deletions(-)
Approvals:
Jenkins Builder: Verified
fixeria: Looks good to me, approved
pespin: Looks good to me, but someone else must approve
diff --git a/debian/rules b/debian/rules
index 7701a8e..24f662e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,12 +8,6 @@
%:
dh $@ --with autoreconf
-# See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practic…
-override_dh_strip:
- dh_strip -plibosmo-csn1-0 --dbg-package=libosmo-csn1-dbg
- dh_strip -plibosmo-gprs-llc0 --dbg-package=libosmo-gprs-llc-dbg
- dh_strip -plibosmo-gprs-rlcmac0 --dbg-package=libosmo-gprs-rlcmac-dbg
-
# Print test results in case of a failure
override_dh_auto_test:
dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false)
--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/39037?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: I03ea18523dcac4db8069e6481b25e2db836c7200
Gerrit-Change-Number: 39037
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
osmith has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/39038?usp=email )
Change subject: Make compatible with libosmocore >= 1.10.0
......................................................................
Make compatible with libosmocore >= 1.10.0
Work towards preparing a release tag for libosmo-gprs, as osmocom-bb
is now in osmocom:latest but cannot build due to the missing
libosmo-gprs dependency.
libosmo-gprs currently doesn't build against latest stable libosmocore,
because it uses new enum values introduced in libosmocore master. Add
defines for these temporarily, until a new libosmocore version is
released and libosmo-gprs can depend on it.
Related: osmocom-bb Ifbfaead7ae89d9ac747d1bb495f061c5cbe7a241
Related: fbdcd28 ("gmm: gprs_gmm_att_tlvdef: Add newer definitions…")
Change-Id: I7476f1c7915770d6529104a7a58cb8c16a371ddd
---
M TODO-RELEASE
M src/gmm/gmm_pdu.c
2 files changed, 15 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
fixeria: Looks good to me, approved
diff --git a/TODO-RELEASE b/TODO-RELEASE
index 9ce8fb2..60f6474 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -9,3 +9,4 @@
#library what description / commit summary line
libosmocore >1.8.0 gsm_fn2rfn(), gsm_rfn2fn()
libosmocore >1.10.0 enum gsm48_gprs_ie_mm: GSM48_IE_GMM_UE_NET_CAP, GSM48_IE_GMM_VD_PREF_UE_USAGE
+libosmocore >1.10.0 remove "Remove after depending on libosmocore > 1.10.0" code in gmm_pdu.c
diff --git a/src/gmm/gmm_pdu.c b/src/gmm/gmm_pdu.c
index 084f2a6..cc1f2f8 100644
--- a/src/gmm/gmm_pdu.c
+++ b/src/gmm/gmm_pdu.c
@@ -129,6 +129,20 @@
.non_drx_timer = 0,
};
+/* Remove after depending on libosmocore > 1.10.0 */
+#ifndef GSM48_IE_GMM_UE_NET_CAP
+#define GSM48_IE_GMM_UE_NET_CAP 0x58
+#endif
+#ifndef GSM48_IE_GMM_VD_PREF_UE_USAGE
+#define GSM48_IE_GMM_VD_PREF_UE_USAGE 0x5d
+#endif
+#ifndef GSM48_IE_GMM_ADD_IDENTITY
+#define GSM48_IE_GMM_ADD_IDENTITY 0x1a
+#endif
+#ifndef GSM48_IE_GMM_RAI2
+#define GSM48_IE_GMM_RAI2 0x1b
+#endif
+
const struct tlv_definition gprs_gmm_att_tlvdef = {
.def = {
[GSM48_IE_GMM_CIPH_CKSN] = { TLV_TYPE_SINGLE_TV, 1 },
--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/39038?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: I7476f1c7915770d6529104a7a58cb8c16a371ddd
Gerrit-Change-Number: 39038
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Attention is currently required from: osmith.
fixeria has posted comments on this change by osmith. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/39038?usp=email )
Change subject: Make compatible with libosmocore >= 1.10.0
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/39038?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: I7476f1c7915770d6529104a7a58cb8c16a371ddd
Gerrit-Change-Number: 39038
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 06 Dec 2024 11:33:15 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes