Projects
osmocom:master
osmo-pcu
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 29
View file
osmo-pcu.spec
Changed
@@ -14,13 +14,13 @@ Name: osmo-pcu Requires: osmocom-master -Version: 1.1.0.79.cefd +Version: 1.1.0.81.83a0 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.79.cefd.tar.xz +Source: osmo-pcu_1.1.0.81.83a0.tar.xz Source1: rpmlintrc BuildRequires: autoconf BuildRequires: automake
View file
commit_83a0892e61723ea23ee54a9a2392936ad8563700.txt
Added
View file
commit_cefddbc913149084b469997da28cbaa22f8a297c.txt
Deleted
View file
osmo-pcu_1.1.0.79.cefd.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.79.cefd -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: - d5be99aac8a3d81a958c47a4e21f848ec3ff1914 402180 osmo-pcu_1.1.0.79.cefd.tar.xz -Checksums-Sha256: - cb1468792769e1cbd2c2f36f89ae411af1d3b0549038b870c926cf6f8e5a637b 402180 osmo-pcu_1.1.0.79.cefd.tar.xz -Files: - f4b469f00b7495167f48c43d3bb9e152 402180 osmo-pcu_1.1.0.79.cefd.tar.xz
View file
osmo-pcu_1.1.0.81.83a0.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.81.83a0 +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: + 905174e0b2a5d1904fcbfc1e23a5480cc8bcf3ab 402196 osmo-pcu_1.1.0.81.83a0.tar.xz +Checksums-Sha256: + 760d1c69af5b72a077fcabafa13f530840a45735138f34c9c7c2896ca79d1764 402196 osmo-pcu_1.1.0.81.83a0.tar.xz +Files: + 14f82c815cf4a770798068126271b235 402196 osmo-pcu_1.1.0.81.83a0.tar.xz
View file
osmo-pcu_1.1.0.79.cefd.tar.xz/.tarball-version -> osmo-pcu_1.1.0.81.83a0.tar.xz/.tarball-version
Changed
@@ -1 +1 @@ -1.1.0.79-cefd +1.1.0.81-83a0
View file
osmo-pcu_1.1.0.79.cefd.tar.xz/debian/changelog -> osmo-pcu_1.1.0.81.83a0.tar.xz/debian/changelog
Changed
@@ -1,8 +1,8 @@ -osmo-pcu (1.1.0.79.cefd) unstable; urgency=medium +osmo-pcu (1.1.0.81.83a0) unstable; urgency=medium * Automatically generated changelog entry for building the Osmocom master feed - -- Osmocom OBS scripts <info@osmocom.org> Mon, 12 Dec 2022 20:47:18 +0000 + -- Osmocom OBS scripts <info@osmocom.org> Wed, 14 Dec 2022 12:27:10 +0000 osmo-pcu (1.1.0) unstable; urgency=medium
View file
osmo-pcu_1.1.0.79.cefd.tar.xz/src/bts.cpp -> osmo-pcu_1.1.0.81.83a0.tar.xz/src/bts.cpp
Changed
@@ -1074,7 +1074,7 @@ return 0; } -void bts_snd_dl_ass(struct gprs_rlcmac_bts *bts, struct gprs_rlcmac_tbf *tbf) +void bts_snd_dl_ass(struct gprs_rlcmac_bts *bts, const struct gprs_rlcmac_dl_tbf *tbf) { uint8_t trx_no = tbf->trx->trx_no; uint8_t ts_no = tbf->first_ts;
View file
osmo-pcu_1.1.0.79.cefd.tar.xz/src/bts.h -> osmo-pcu_1.1.0.81.83a0.tar.xz/src/bts.h
Changed
@@ -301,7 +301,7 @@ struct gprs_rlcmac_dl_tbf *bts_dl_tbf_by_tfi(struct gprs_rlcmac_bts *bts, uint8_t tfi, uint8_t trx, uint8_t ts); struct gprs_rlcmac_ul_tbf *bts_ul_tbf_by_tfi(struct gprs_rlcmac_bts *bts, uint8_t tfi, uint8_t trx, uint8_t ts); -void bts_snd_dl_ass(struct gprs_rlcmac_bts *bts, struct gprs_rlcmac_tbf *tbf); +void bts_snd_dl_ass(struct gprs_rlcmac_bts *bts, const struct gprs_rlcmac_dl_tbf *tbf); void bts_set_current_frame_number(struct gprs_rlcmac_bts *bts, uint32_t frame_number); void bts_set_current_block_frame_number(struct gprs_rlcmac_bts *bts, int frame_number);
View file
osmo-pcu_1.1.0.79.cefd.tar.xz/src/tbf_dl.cpp -> osmo-pcu_1.1.0.81.83a0.tar.xz/src/tbf_dl.cpp
Changed
@@ -181,7 +181,7 @@ m_dl_egprs_ctrs(NULL) { memset(&state_fsm, 0, sizeof(state_fsm)); - state_fsm.tbf = (struct gprs_rlcmac_tbf *)this; + state_fsm.dl_tbf = this; state_fi = osmo_fsm_inst_alloc(&tbf_dl_fsm, this, &state_fsm, LOGL_INFO, NULL); OSMO_ASSERT(state_fi); }
View file
osmo-pcu_1.1.0.79.cefd.tar.xz/src/tbf_dl_fsm.c -> osmo-pcu_1.1.0.81.83a0.tar.xz/src/tbf_dl_fsm.c
Changed
@@ -60,22 +60,22 @@ ch = "PACCH"; break; default: - LOGPTBF(ctx->tbf, LOGL_ERROR, - "attempted to %sset unexpected ass. type %d - FIXME!\n", + LOGPTBFDL(ctx->dl_tbf, LOGL_ERROR, + "attempted to %sset unexpected ass. type %d - FIXME!\n", set ? "" : "un", t); return; } if (set && prev_set) - LOGPTBF(ctx->tbf, LOGL_ERROR, - "attempted to set ass. type %s which is already set.\n", ch); + LOGPTBFDL(ctx->dl_tbf, LOGL_ERROR, + "attempted to set ass. type %s which is already set.\n", ch); else if (!set && !prev_set) return; - LOGPTBF(ctx->tbf, LOGL_INFO, "%sset ass. type %s prev CCCH:%u, PACCH:%u\n", - set ? "" : "un", ch, - !!(ctx->state_flags & (1 << GPRS_RLCMAC_FLAG_CCCH)), - !!(ctx->state_flags & (1 << GPRS_RLCMAC_FLAG_PACCH))); + LOGPTBFDL(ctx->dl_tbf, LOGL_INFO, "%sset ass. type %s prev CCCH:%u, PACCH:%u\n", + set ? "" : "un", ch, + !!(ctx->state_flags & (1 << GPRS_RLCMAC_FLAG_CCCH)), + !!(ctx->state_flags & (1 << GPRS_RLCMAC_FLAG_PACCH))); if (set) { ctx->state_flags |= (1 << t); @@ -122,9 +122,9 @@ val = osmo_tdef_get(the_pcu->T_defs, fi->T, OSMO_TDEF_MS, -1); sec = val / 1000; micro = (val % 1000) * 1000; - LOGPTBF(ctx->tbf, LOGL_DEBUG, - "Starting timer X2001 assignment (PACCH) with %u sec. %u microsec\n", - sec, micro); + LOGPTBFDL(ctx->dl_tbf, LOGL_DEBUG, + "Starting timer X2001 assignment (PACCH) with %u sec. %u microsec\n", + sec, micro); osmo_timer_schedule(&fi->timer, sec, micro); } else { /* GPRS_RLCMAC_FLAG_CCCH is set, so here we submitted an DL Ass @@ -149,9 +149,9 @@ tbf_assign_control_ts(ctx->tbf); if (ctx->state_flags & (1 << GPRS_RLCMAC_FLAG_CCCH)) { /* We now know that the PACCH really existed */ - LOGPTBF(ctx->tbf, LOGL_INFO, - "The TBF has been confirmed on the PACCH, " - "changed type from CCCH to PACCH\n"); + LOGPTBFDL(ctx->dl_tbf, LOGL_INFO, + "The TBF has been confirmed on the PACCH, " + "changed type from CCCH to PACCH\n"); mod_ass_type(ctx, GPRS_RLCMAC_FLAG_CCCH, false); mod_ass_type(ctx, GPRS_RLCMAC_FLAG_PACCH, true); } @@ -168,9 +168,9 @@ val = osmo_tdef_get(the_pcu->T_defs, fi->T, OSMO_TDEF_MS, -1); sec = val / 1000; micro = (val % 1000) * 1000; - LOGPTBF(ctx->tbf, LOGL_DEBUG, - "Starting timer X2002 assignment (AGCH) with %u sec. %u microsec\n", - sec, micro); + LOGPTBFDL(ctx->dl_tbf, LOGL_DEBUG, + "Starting timer X2002 assignment (AGCH) with %u sec. %u microsec\n", + sec, micro); osmo_timer_schedule(&fi->timer, sec, micro); break; case TBF_EV_ASSIGN_READY_CCCH: @@ -202,11 +202,12 @@ if ((ctx->state_flags & (1 << GPRS_RLCMAC_FLAG_CCCH)) && !(ctx->state_flags & (1 << GPRS_RLCMAC_FLAG_DL_ACK))) { struct GprsMs *ms = tbf_ms(ctx->tbf); - LOGPTBF(ctx->tbf, LOGL_DEBUG, "Re-send downlink assignment on PCH (IMSI=%s)\n", - ms_imsi_is_valid(ms) ? ms_imsi(ms) : ""); + LOGPTBFDL(ctx->dl_tbf, LOGL_DEBUG, + "Re-send downlink assignment on PCH (IMSI=%s)\n", + ms_imsi_is_valid(ms) ? ms_imsi(ms) : ""); tbf_dl_fsm_state_chg(fi, TBF_ST_ASSIGN); /* send immediate assignment */ - bts_snd_dl_ass(ms->bts, ctx->tbf); + bts_snd_dl_ass(ms->bts, ctx->dl_tbf); } break; case TBF_EV_LAST_DL_DATA_SENT: @@ -255,14 +256,13 @@ { struct tbf_dl_fsm_ctx *ctx = (struct tbf_dl_fsm_ctx *)fi->priv; unsigned long val_s, val_ms, val_us; - OSMO_ASSERT(tbf_direction(ctx->tbf) == GPRS_RLCMAC_DL_TBF); fi->T = 3193; val_ms = osmo_tdef_get(tbf_ms(ctx->tbf)->bts->T_defs_bts, fi->T, OSMO_TDEF_MS, -1); val_s = val_ms / 1000; val_us = (val_ms % 1000) * 1000; - LOGPTBF(ctx->tbf, LOGL_DEBUG, "starting timer T%u with %lu sec. %lu microsec\n", - fi->T, val_s, val_us); + LOGPTBFDL(ctx->dl_tbf, LOGL_DEBUG, "starting timer T%u with %lu sec. %lu microsec\n", + fi->T, val_s, val_us); osmo_timer_schedule(&fi->timer, val_s, val_us); mod_ass_type(ctx, GPRS_RLCMAC_FLAG_CCCH, false); @@ -299,8 +299,8 @@ */ val = osmo_tdef_get(tbf_ms(ctx->tbf)->bts->T_defs_bts, ctx->T_release, OSMO_TDEF_S, -1); fi->T = ctx->T_release; - LOGPTBF(ctx->tbf, LOGL_DEBUG, "starting timer T%u with %lu sec. %u microsec\n", - ctx->T_release, val, 0); + LOGPTBFDL(ctx->dl_tbf, LOGL_DEBUG, "starting timer T%u with %lu sec. %u microsec\n", + ctx->T_release, val, 0); osmo_timer_schedule(&fi->timer, val, 0); } @@ -321,7 +321,6 @@ static void handle_timeout_X2002(struct osmo_fsm_inst *fi) { struct tbf_dl_fsm_ctx *ctx = (struct tbf_dl_fsm_ctx *)fi->priv; - struct gprs_rlcmac_dl_tbf *dl_tbf = tbf_as_dl_tbf(ctx->tbf); if (fi->state == TBF_ST_ASSIGN) { tbf_assign_control_ts(ctx->tbf); @@ -342,9 +341,9 @@ ctx->state_flags &= GPRS_RLCMAC_FLAG_TO_MASK; tbf_update(ctx->tbf); - dl_tbf_trigger_ass_on_pacch(dl_tbf, ctx->tbf); + dl_tbf_trigger_ass_on_pacch(ctx->dl_tbf, ctx->tbf); } else - LOGPTBF(ctx->tbf, LOGL_NOTICE, "Continue flow after IMM.ASS confirm\n"); + LOGPTBFDL(ctx->dl_tbf, LOGL_NOTICE, "Continue flow after IMM.ASS confirm\n"); } static int tbf_dl_fsm_timer_cb(struct osmo_fsm_inst *fi) @@ -355,7 +354,7 @@ handle_timeout_X2002(fi); break; case -2001: - LOGPTBF(ctx->tbf, LOGL_NOTICE, "releasing due to PACCH assignment timeout.\n"); + LOGPTBFDL(ctx->dl_tbf, LOGL_NOTICE, "releasing due to PACCH assignment timeout.\n"); /* fall-through */ case 3169: case 3193:
View file
osmo-pcu_1.1.0.79.cefd.tar.xz/src/tbf_fsm.h -> osmo-pcu_1.1.0.81.83a0.tar.xz/src/tbf_fsm.h
Changed
@@ -57,13 +57,19 @@ }; struct tbf_dl_fsm_ctx { - struct gprs_rlcmac_tbf *tbf; /* back pointer */ + union { /* back pointer. union used to easily access superclass from ctx */ + struct gprs_rlcmac_tbf *tbf; + struct gprs_rlcmac_dl_tbf *dl_tbf; + }; uint32_t state_flags; unsigned int T_release; /* Timer to be used to end release: T3169 or T3195 */ }; struct tbf_ul_fsm_ctx { - struct gprs_rlcmac_tbf *tbf; /* back pointer */ + union { /* back pointer. union used to easily access superclass from ctx */ + struct gprs_rlcmac_tbf *tbf; + struct gprs_rlcmac_ul_tbf *ul_tbf; + }; uint32_t state_flags; unsigned int T_release; /* Timer to be used to end release: T3169 or T3195 */ };
View file
osmo-pcu_1.1.0.79.cefd.tar.xz/src/tbf_ul.cpp -> osmo-pcu_1.1.0.81.83a0.tar.xz/src/tbf_ul.cpp
Changed
@@ -202,7 +202,7 @@ memset(&m_usf, USF_INVALID, sizeof(m_usf)); memset(&state_fsm, 0, sizeof(state_fsm)); - state_fsm.tbf = (struct gprs_rlcmac_tbf *)this; + state_fsm.ul_tbf = this; state_fi = osmo_fsm_inst_alloc(&tbf_ul_fsm, this, &state_fsm, LOGL_INFO, NULL); OSMO_ASSERT(state_fi);
View file
osmo-pcu_1.1.0.79.cefd.tar.xz/src/tbf_ul_fsm.c -> osmo-pcu_1.1.0.81.83a0.tar.xz/src/tbf_ul_fsm.c
Changed
@@ -59,22 +59,22 @@ ch = "PACCH"; break; default: - LOGPTBF(ctx->tbf, LOGL_ERROR, - "attempted to %sset unexpected ass. type %d - FIXME!\n", - set ? "" : "un", t); + LOGPTBFUL(ctx->ul_tbf, LOGL_ERROR, + "attempted to %sset unexpected ass. type %d - FIXME!\n", + set ? "" : "un", t); return; } if (set && prev_set) - LOGPTBF(ctx->tbf, LOGL_ERROR, - "attempted to set ass. type %s which is already set.\n", ch); + LOGPTBFUL(ctx->ul_tbf, LOGL_ERROR, + "attempted to set ass. type %s which is already set.\n", ch); else if (!set && !prev_set) return; - LOGPTBF(ctx->tbf, LOGL_INFO, "%sset ass. type %s prev CCCH:%u, PACCH:%u\n", - set ? "" : "un", ch, - !!(ctx->state_flags & (1 << GPRS_RLCMAC_FLAG_CCCH)), - !!(ctx->state_flags & (1 << GPRS_RLCMAC_FLAG_PACCH))); + LOGPTBFUL(ctx->ul_tbf, LOGL_INFO, "%sset ass. type %s prev CCCH:%u, PACCH:%u\n", + set ? "" : "un", ch, + !!(ctx->state_flags & (1 << GPRS_RLCMAC_FLAG_CCCH)), + !!(ctx->state_flags & (1 << GPRS_RLCMAC_FLAG_PACCH))); if (set) { ctx->state_flags |= (1 << t); @@ -92,7 +92,7 @@ case TBF_EV_ASSIGN_ADD_CCCH: mod_ass_type(ctx, GPRS_RLCMAC_FLAG_CCCH, true); tbf_ul_fsm_state_chg(fi, TBF_ST_FLOW); - ul_tbf_contention_resolution_start(tbf_as_ul_tbf(ctx->tbf)); + ul_tbf_contention_resolution_start(ctx->ul_tbf); break; case TBF_EV_ASSIGN_ADD_PACCH: mod_ass_type(ctx, GPRS_RLCMAC_FLAG_PACCH, true); @@ -122,9 +122,9 @@ val = osmo_tdef_get(the_pcu->T_defs, fi->T, OSMO_TDEF_MS, -1); sec = val / 1000; micro = (val % 1000) * 1000; - LOGPTBF(ctx->tbf, LOGL_DEBUG, - "Starting timer X2001 assignment (PACCH) with %u sec. %u microsec\n", - sec, micro); + LOGPTBFUL(ctx->ul_tbf, LOGL_DEBUG, + "Starting timer X2001 assignment (PACCH) with %u sec. %u microsec\n", + sec, micro); osmo_timer_schedule(&fi->timer, sec, micro); } } @@ -144,9 +144,9 @@ tbf_assign_control_ts(ctx->tbf); if (ctx->state_flags & (1 << GPRS_RLCMAC_FLAG_CCCH)) { /* We now know that the PACCH really existed */ - LOGPTBF(ctx->tbf, LOGL_INFO, - "The TBF has been confirmed on the PACCH, " - "changed type from CCCH to PACCH\n"); + LOGPTBFUL(ctx->ul_tbf, LOGL_INFO, + "The TBF has been confirmed on the PACCH, " + "changed type from CCCH to PACCH\n"); mod_ass_type(ctx, GPRS_RLCMAC_FLAG_CCCH, false); mod_ass_type(ctx, GPRS_RLCMAC_FLAG_PACCH, true); } @@ -272,8 +272,8 @@ */ val = osmo_tdef_get(tbf_ms(ctx->tbf)->bts->T_defs_bts, ctx->T_release, OSMO_TDEF_S, -1); fi->T = ctx->T_release; - LOGPTBF(ctx->tbf, LOGL_DEBUG, "starting timer T%u with %lu sec. %u microsec\n", - ctx->T_release, val, 0); + LOGPTBFUL(ctx->ul_tbf, LOGL_DEBUG, "starting timer T%u with %lu sec. %u microsec\n", + ctx->T_release, val, 0); osmo_timer_schedule(&fi->timer, val, 0); } @@ -287,7 +287,7 @@ struct tbf_ul_fsm_ctx *ctx = (struct tbf_ul_fsm_ctx *)fi->priv; switch (fi->T) { case -2001: - LOGPTBF(ctx->tbf, LOGL_NOTICE, "releasing due to PACCH assignment timeout.\n"); + LOGPTBFUL(ctx->ul_tbf, LOGL_NOTICE, "releasing due to PACCH assignment timeout.\n"); /* fall-through */ case 3169: case 3195:
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
.