Projects
osmocom:master
osmo-pcu
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 38
View file
osmo-pcu.spec
Changed
@@ -14,13 +14,13 @@ Name: osmo-pcu Requires: osmocom-master -Version: 1.1.0.107.0e43 +Version: 1.1.0.109.e0a84 Release: 0 Summary: Osmocom GPRS Packet Control Unit (PCU) License: GPL-2.0-only Group: Productivity/Telephony/Servers URL: https://osmocom.org/projects/osmopcu -Source: osmo-pcu_1.1.0.107.0e43.tar.xz +Source: osmo-pcu_1.1.0.109.e0a84.tar.xz Source1: rpmlintrc BuildRequires: autoconf BuildRequires: automake
View file
commit_0e435fa9591896db228a9dfe1b0f2f350bc5f432.txt
Deleted
View file
commit_e0a8488773243c7b8a1fc85b6057e3f7d5d3e070.txt
Added
View file
osmo-pcu_1.1.0.107.0e43.dsc
Deleted
@@ -1,21 +0,0 @@ -Format: 3.0 (native) -Source: osmo-pcu -Binary: osmo-pcu, osmo-pcu-dbg, osmo-pcu-doc -Architecture: any all -Version: 1.1.0.107.0e43 -Maintainer: Osmocom team <openbsc@lists.osmocom.org> -Homepage: http://osmocom.org/projects/osmopcu -Standards-Version: 3.9.8 -Vcs-Browser: https://gitea.osmocom.org/cellular-infrastructure/osmo-pcu -Vcs-Git: https://gitea.osmocom.org/cellular-infrastructure/osmo-pcu -Build-Depends: debhelper (>= 9), dh-autoreconf, autotools-dev, pkg-config, libosmocore-dev (>= 1.7.0), osmo-gsm-manuals-dev (>= 1.3.0) -Package-List: - osmo-pcu deb net optional arch=any - osmo-pcu-dbg deb debug extra arch=any - osmo-pcu-doc deb doc optional arch=all -Checksums-Sha1: - c6f5adf1defda598c4f6f69f56491b7c6138b248 407016 osmo-pcu_1.1.0.107.0e43.tar.xz -Checksums-Sha256: - 61183959f2ce07a813caed04428c230c85cfac82c9f93180fb1b679ccdd26580 407016 osmo-pcu_1.1.0.107.0e43.tar.xz -Files: - 84b164bf4b4a39490879d1ee04c40c05 407016 osmo-pcu_1.1.0.107.0e43.tar.xz
View file
osmo-pcu_1.1.0.109.e0a84.dsc
Added
@@ -0,0 +1,21 @@ +Format: 3.0 (native) +Source: osmo-pcu +Binary: osmo-pcu, osmo-pcu-dbg, osmo-pcu-doc +Architecture: any all +Version: 1.1.0.109.e0a84 +Maintainer: Osmocom team <openbsc@lists.osmocom.org> +Homepage: http://osmocom.org/projects/osmopcu +Standards-Version: 3.9.8 +Vcs-Browser: https://gitea.osmocom.org/cellular-infrastructure/osmo-pcu +Vcs-Git: https://gitea.osmocom.org/cellular-infrastructure/osmo-pcu +Build-Depends: debhelper (>= 9), dh-autoreconf, autotools-dev, pkg-config, libosmocore-dev (>= 1.7.0), osmo-gsm-manuals-dev (>= 1.3.0) +Package-List: + osmo-pcu deb net optional arch=any + osmo-pcu-dbg deb debug extra arch=any + osmo-pcu-doc deb doc optional arch=all +Checksums-Sha1: + 74fa4577a072e6951392b1e50edb7c7d7a6a5e69 407844 osmo-pcu_1.1.0.109.e0a84.tar.xz +Checksums-Sha256: + b0490b7f6fe76dd9045c2cfddeb9cf4a26068c46b6cd3560ef08c8a2080be6fc 407844 osmo-pcu_1.1.0.109.e0a84.tar.xz +Files: + bee281bf916fbf108117946bbe196fe3 407844 osmo-pcu_1.1.0.109.e0a84.tar.xz
View file
osmo-pcu_1.1.0.107.0e43.tar.xz/.tarball-version -> osmo-pcu_1.1.0.109.e0a84.tar.xz/.tarball-version
Changed
@@ -1 +1 @@ -1.1.0.107-0e43 +1.1.0.109-e0a84
View file
osmo-pcu_1.1.0.107.0e43.tar.xz/debian/changelog -> osmo-pcu_1.1.0.109.e0a84.tar.xz/debian/changelog
Changed
@@ -1,8 +1,8 @@ -osmo-pcu (1.1.0.107.0e43) unstable; urgency=medium +osmo-pcu (1.1.0.109.e0a84) unstable; urgency=medium * Automatically generated changelog entry for building the Osmocom master feed - -- Osmocom OBS scripts <info@osmocom.org> Thu, 26 Jan 2023 15:56:26 +0000 + -- Osmocom OBS scripts <info@osmocom.org> Fri, 27 Jan 2023 10:47:48 +0000 osmo-pcu (1.1.0) unstable; urgency=medium
View file
osmo-pcu_1.1.0.107.0e43.tar.xz/src/llc.c -> osmo-pcu_1.1.0.109.e0a84.tar.xz/src/llc.c
Changed
@@ -80,9 +80,12 @@ llc->length += len; } -static bool llc_is_user_data_frame(const uint8_t *data, size_t len) +static bool llc_pdu_can_be_discarded(const uint8_t *data, size_t len) { - if (len < 2) + const unsigned keep_small_thresh = 60; + + /* Is the frame small, perhaps only a TCP ACK? */ + if (len <= keep_small_thresh) return false; if ((data0 & 0x0f) == 1 /* GPRS_SAPI_GMM */) @@ -233,7 +236,7 @@ static struct msgb *llc_queue_pick_msg(struct gprs_llc_queue *q, enum gprs_llc_queue_prio *prio) { struct msgb *msg; - struct timespec *tv, tv_now, tv_result; + struct timespec tv_now, tv_result; uint32_t lifetime; unsigned int i; const struct MetaInfo *meta_storage; @@ -254,7 +257,6 @@ /* take the second time */ osmo_clock_gettime(CLOCK_MONOTONIC, &tv_now); - tv = (struct timespec *)&msg->datasizeof(*tv); timespecsub(&tv_now, &meta_storage->recv_time, &tv_result); lifetime = tv_result.tv_sec*1000 + tv_result.tv_nsec/1000000; @@ -271,7 +273,6 @@ struct gprs_rlcmac_bts *bts = q->ms->bts; struct gprs_pcu *pcu = bts->pcu; struct timespec hyst_delta = {0, 0}; - const unsigned keep_small_thresh = 60; enum gprs_llc_queue_prio prio; if (pcu->vty.llc_discard_csec) @@ -306,14 +307,9 @@ /* Hysteresis mode, try to discard LLC messages until * the low water mark has been reached */ - /* Check whether to abort the hysteresis mode */ - - /* Is the frame small, perhaps only a TCP ACK? */ - if (msg->len <= keep_small_thresh) - break; - - /* Is it a GMM message? */ - if (!llc_is_user_data_frame(msg->data, msg->len)) + /* Check whether to abort the hysteresis mode: + * Can the PDU be discarded according to its type? */ + if (!llc_pdu_can_be_discarded(msg->data, msg->len)) break; }
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
.