Projects
osmocom:nightly
osmo-hnbgw
Log In
Username
Password
Error getting diff: tar:
×
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 97
View file
osmo-hnbgw.spec
Changed
@@ -17,14 +17,14 @@ %define _lto_cflags %{nil} Name: osmo-hnbgw -Requires: osmocom-nightly = 202209300002 -Version: 1.3.0.39.25cd.202209300002 +Requires: osmocom-nightly = 202210010002 +Version: 1.3.0.41.1906.202210010002 Release: 0 Summary: OsmoHNBGW: Osmocom's Base Station Controller for 2G CS mobile networks License: AGPL-3.0-or-later AND GPL-2.0-or-later Group: Hardware/Mobile URL: https://osmocom.org/projects/osmohnbgw -Source: osmo-hnbgw_1.3.0.39.25cd.202209300002.tar.xz +Source: osmo-hnbgw_1.3.0.41.1906.202210010002.tar.xz Source1: rpmlintrc BuildRequires: automake >= 1.9 BuildRequires: libtool >= 2
View file
osmo-hnbgw_1.3.0.39.25cd.202209300002.dsc -> osmo-hnbgw_1.3.0.41.1906.202210010002.dsc
Changed
@@ -2,7 +2,7 @@ Source: osmo-hnbgw Binary: osmo-hnbgw, osmo-hnbgw-dbg, osmo-hnbgw-doc Architecture: any all -Version: 1.3.0.39.25cd.202209300002 +Version: 1.3.0.41.1906.202210010002 Maintainer: Osmocom team <openbsc@lists.osmocom.org> Homepage: https://projects.osmocom.org/projects/osmo-hnbgw Standards-Version: 3.9.8 @@ -14,8 +14,8 @@ osmo-hnbgw-dbg deb debug extra arch=any osmo-hnbgw-doc deb doc optional arch=all Checksums-Sha1: - 8e922ce9e649e267a335ea1f5a3c6cb5abb1dc80 71508 osmo-hnbgw_1.3.0.39.25cd.202209300002.tar.xz + c1243ea733d37b515563ca14c170abb972284135 71868 osmo-hnbgw_1.3.0.41.1906.202210010002.tar.xz Checksums-Sha256: - f0b527a928f7e6f566aa44fe6222eda0248f259239f4c39b63156d632bcede33 71508 osmo-hnbgw_1.3.0.39.25cd.202209300002.tar.xz + daa82f390d1e387f9fb876214c45f9778e30c841f3427c2fffc22aa3fc1d798f 71868 osmo-hnbgw_1.3.0.41.1906.202210010002.tar.xz Files: - 4e554519824724b9daa3e15c053520b2 71508 osmo-hnbgw_1.3.0.39.25cd.202209300002.tar.xz + 6ebebe5f31f058fb94caca5fbffc53ff 71868 osmo-hnbgw_1.3.0.41.1906.202210010002.tar.xz
View file
osmo-hnbgw_1.3.0.39.25cd.202209300002.tar.xz/.tarball-version -> osmo-hnbgw_1.3.0.41.1906.202210010002.tar.xz/.tarball-version
Changed
@@ -1 +1 @@ -1.3.0.39-25cd.202209300002 +1.3.0.41-1906.202210010002
View file
osmo-hnbgw_1.3.0.39.25cd.202209300002.tar.xz/contrib/osmo-hnbgw.spec.in -> osmo-hnbgw_1.3.0.41.1906.202210010002.tar.xz/contrib/osmo-hnbgw.spec.in
Changed
@@ -17,7 +17,7 @@ %define _lto_cflags %{nil} Name: osmo-hnbgw -Requires: osmocom-nightly = 202209300002 +Requires: osmocom-nightly = 202210010002 Version: @VERSION@ Release: 0 Summary: OsmoHNBGW: Osmocom's Base Station Controller for 2G CS mobile networks
View file
osmo-hnbgw_1.3.0.39.25cd.202209300002.tar.xz/debian/changelog -> osmo-hnbgw_1.3.0.41.1906.202210010002.tar.xz/debian/changelog
Changed
@@ -1,8 +1,8 @@ -osmo-hnbgw (1.3.0.39.25cd.202209300002) unstable; urgency=medium +osmo-hnbgw (1.3.0.41.1906.202210010002) unstable; urgency=medium * Automatically generated changelog entry for building the Osmocom nightly feed - -- Osmocom OBS scripts <info@osmocom.org> Fri, 30 Sep 2022 00:04:09 +0000 + -- Osmocom OBS scripts <info@osmocom.org> Sat, 01 Oct 2022 00:03:24 +0000 osmo-hnbgw (1.3.0) unstable; urgency=medium
View file
osmo-hnbgw_1.3.0.39.25cd.202209300002.tar.xz/debian/control -> osmo-hnbgw_1.3.0.41.1906.202210010002.tar.xz/debian/control
Changed
@@ -31,7 +31,7 @@ Package: osmo-hnbgw Architecture: any Multi-Arch: foreign -Depends: osmocom-nightly (= 202209300002), ${misc:Depends}, ${shlibs:Depends} +Depends: osmocom-nightly (= 202210010002), ${misc:Depends}, ${shlibs:Depends} Recommends: osmo-mgw Description: OsmoHNBGW: Osmocom Home Node B Gateway @@ -39,14 +39,14 @@ Section: debug Architecture: any Multi-Arch: same -Depends: osmocom-nightly (= 202209300002), osmo-hnbgw (= ${binary:Version}), ${misc:Depends} +Depends: osmocom-nightly (= 202210010002), osmo-hnbgw (= ${binary:Version}), ${misc:Depends} Description: OsmoHNBGW: Osmocom Home Node B Gateway Package: osmo-hnbgw-doc Architecture: all Section: doc Priority: optional -Depends: osmocom-nightly (= 202209300002), ${misc:Depends} +Depends: osmocom-nightly (= 202210010002), ${misc:Depends} Description: ${misc:Package} PDF documentation Various manuals: user manual, VTY reference manual and/or protocol/interface manuals.
View file
osmo-hnbgw_1.3.0.39.25cd.202209300002.tar.xz/src/osmo-hnbgw/hnbgw.c -> osmo-hnbgw_1.3.0.41.1906.202210010002.tar.xz/src/osmo-hnbgw/hnbgw.c
Changed
@@ -262,15 +262,15 @@ LOGHNB(hnb, DMAIN, LOGL_NOTICE, "HNB SCTP conn RESTARTed, marking as HNBAP-unregistered\n"); hnb->hnb_registered = false; break; - case SCTP_SHUTDOWN_EVENT: - LOGHNB(hnb, DMAIN, LOGL_NOTICE, - "sctp_recvmsg(%s) = SCTP_SHUTDOWN_EVENT, closing conn\n", - osmo_sock_get_name2(osmo_stream_srv_get_ofd(conn)->fd)); - osmo_stream_srv_destroy(conn); - rc = -1; - break; } break; + case SCTP_SHUTDOWN_EVENT: + LOGHNB(hnb, DMAIN, LOGL_NOTICE, + "sctp_recvmsg(%s) = SCTP_SHUTDOWN_EVENT, closing conn\n", + osmo_sock_get_name2(osmo_stream_srv_get_ofd(conn)->fd)); + osmo_stream_srv_destroy(conn); + rc = -1; + break; } goto out; } else if (rc == -EAGAIN) {
View file
osmo-hnbgw_1.3.0.39.25cd.202209300002.tar.xz/src/osmo-hnbgw/hnbgw_hnbap.c -> osmo-hnbgw_1.3.0.41.1906.202210010002.tar.xz/src/osmo-hnbgw/hnbgw_hnbap.c
Changed
@@ -395,7 +395,7 @@ static int hnbgw_rx_hnb_register_req(struct hnb_context *ctx, ANY_t *in) { - struct hnb_context *hnb; + struct hnb_context *hnb, *tmp; HNBAP_HNBRegisterRequestIEs_t ies; int rc; struct osmo_plmn_id plmn; @@ -422,8 +422,35 @@ ctx->id.mcc = plmn.mcc; ctx->id.mnc = plmn.mnc; - llist_for_each_entry(hnb, &ctx->gw->hnb_list, list) { + llist_for_each_entry_safe(hnb, tmp, &ctx->gw->hnb_list, list) { if (hnb->hnb_registered && ctx != hnb && memcmp(&ctx->id, &hnb->id, sizeof(ctx->id)) == 0) { + /* If it's coming from the same remote IP addr+port, then it must be our internal + * fault (bug), and we release the old context to keep going... */ + struct osmo_fd *other_fd = osmo_stream_srv_get_ofd(hnb->conn); + struct osmo_sockaddr other_osa = {}; + struct osmo_sockaddr cur_osa = {}; + socklen_t len = sizeof(other_osa); + if (getpeername(other_fd->fd, &other_osa.u.sa, &len) < 0) { + LOGHNB(ctx, DHNBAP, LOGL_ERROR, "BUG! Found old registered HNB with invalid socket, releasing it\n"); + hnb_context_release(hnb); + continue; + } + len = sizeof(cur_osa); + if (getpeername(ofd->fd, &cur_osa.u.sa, &len) < 0) { + LOGHNB(ctx, DHNBAP, LOGL_ERROR, "Error getpeername(): %s\n", strerror(errno)); + if (osmo_sockaddr_cmp(&cur_osa, &other_osa) == 0) { + LOGHNB(ctx, DHNBAP, LOGL_ERROR, "BUG! Found old registered HNB with same remote address, releasing it\n"); + hnb_context_release(hnb); + continue; + } + } else if (osmo_sockaddr_cmp(&cur_osa, &other_osa) == 0) { + LOGHNB(ctx, DHNBAP, LOGL_ERROR, "BUG! Found old registered HNB with same remote address, releasing it\n"); + hnb_context_release(hnb); + continue; + } /* else: addresses are different, we continue below */ + + /* If new conn registering same HNB is from anoter remote addr+port, let's reject it to avoid + * misconfigurations or someone trying to impersonate an already working HNB: */ LOGHNB(ctx, DHNBAP, LOGL_ERROR, "rejecting HNB-REGISTER-REQ with duplicate cell identity " "MCC=%u,MNC=%u,LAC=%u,RAC=%u,SAC=%u,CID=%u from %s\n", ctx->id.mcc, ctx->id.mnc, ctx->id.lac, ctx->id.rac, ctx->id.sac, ctx->id.cid, name);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.