fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27480 )
Change subject: BSC_Tests: also match band indicator in SI6 Rest Octets
......................................................................
BSC_Tests: also match band indicator in SI6 Rest Octets
Due to a bug in the current osmo-bsc master, osmo-bsc inverts
the band indicator bit in SI6 Rest Octets. This change extends
testing coverage to demonstrate the problem (see TC_si_default).
Change-Id: I93e1fcfaea973ec2461e30f656d5f5f0d829909b
Related: osmo-bsc.git Iaa8377919a144e7f3799b76249f579c8f3874145
---
M bsc/BSC_Tests.ttcn
1 file changed, 8 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/80/27480/1
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index 0da2916..d867721 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -455,7 +455,14 @@
radio_link_timeout := '0111'B
},
ncc_permitted := '11111111'B,
- rest_octets := ?
+ rest_octets := {
+ pch_nch_info := ?,
+ vbs_vgcs_options := ?,
+ dtm_support := '0'B,
+ rac := omit,
+ max_lapdm := omit,
+ band_ind := '0'B /* ARFCN indicates 1800 band */
+ }
}
};
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/27480
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I93e1fcfaea973ec2461e30f656d5f5f0d829909b
Gerrit-Change-Number: 27480
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange
Attention is currently required from: pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/27429 )
Change subject: osmo-bts-trx: do not run osmo_{fr,hr}_check_sid() on FACCH/U frames
......................................................................
Patch Set 4:
(1 comment)
File src/osmo-bts-trx/sched_lchan_tchf.c:
https://gerrit.osmocom.org/c/osmo-bts/+/27429/comment/e6699425_936fc731
PS3, Line 122: if (rc == GSM_FR_BYTES)
> Maybe a comment explaining that this means basically not applying it to FACCH.
Done
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/27429
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I2f8137993acfe8a8add3fc2af276e5eb4da1605e
Gerrit-Change-Number: 27429
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 10 Mar 2022 14:26:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: fixeria.
Hello Jenkins Builder, pespin,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-bts/+/27429
to look at the new patch set (#4).
Change subject: osmo-bts-trx: do not run osmo_{fr,hr}_check_sid() on FACCH/U frames
......................................................................
osmo-bts-trx: do not run osmo_{fr,hr}_check_sid() on FACCH/U frames
It makes no sense to perform the SID codeword lookup in signalling
frames (FACCH), because it can be present only in speech frames.
Change-Id: I2f8137993acfe8a8add3fc2af276e5eb4da1605e
Related: SYS#5853
---
M src/osmo-bts-trx/sched_lchan_tchf.c
M src/osmo-bts-trx/sched_lchan_tchh.c
2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/29/27429/4
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/27429
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I2f8137993acfe8a8add3fc2af276e5eb4da1605e
Gerrit-Change-Number: 27429
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: laforge, fixeria.
Hello Jenkins Builder, laforge, pespin,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-bts/+/27430
to look at the new patch set (#4).
Change subject: osmo-bts-trx: rx_tchh_fn(): fix HR SID detection (wrong offset)
......................................................................
osmo-bts-trx: rx_tchh_fn(): fix HR SID detection (wrong offset)
For some reason, gsm0503_tch_hr_decode() outputs frames with length
of 15 bytes (120 bits), while according to TS 101 318, section 5.2
the GSM half rate codec has frame length of 14 bytes (112 bits).
osmo_hr_check_sid() follows TS 101 318 and expects a buffer of
14 bytes (112 bits), so we should skip the first octet prepended
by tch_hr_reassemble().
Change-Id: Ie5fa776dcb2b2203a97aed56ecbf2450af7d87c1
Related: SYS#5853
---
M src/osmo-bts-trx/sched_lchan_tchh.c
1 file changed, 4 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/30/27430/4
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/27430
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ie5fa776dcb2b2203a97aed56ecbf2450af7d87c1
Gerrit-Change-Number: 27430
Gerrit-PatchSet: 4
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/27429 )
Change subject: osmo-bts-trx: do not run osmo_{fr,hr}_check_sid() on FACCH/U frames
......................................................................
Patch Set 3:
(1 comment)
File src/osmo-bts-trx/sched_lchan_tchf.c:
https://gerrit.osmocom.org/c/osmo-bts/+/27429/comment/cca116bb_dc38e0a3
PS3, Line 122: if (rc == GSM_FR_BYTES)
Maybe a comment explaining that this means basically not applying it to FACCH.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/27429
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I2f8137993acfe8a8add3fc2af276e5eb4da1605e
Gerrit-Change-Number: 27429
Gerrit-PatchSet: 3
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 10 Mar 2022 14:02:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: fixeria.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/27429 )
Change subject: osmo-bts-trx: do not run osmo_{fr,hr}_check_sid() on FACCH/U frames
......................................................................
Patch Set 3: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/27429
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I2f8137993acfe8a8add3fc2af276e5eb4da1605e
Gerrit-Change-Number: 27429
Gerrit-PatchSet: 3
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 10 Mar 2022 14:01:40 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc-nat/+/27477 )
Change subject: bsc_nat_fsm: tweak get_peer_addr
......................................................................
bsc_nat_fsm: tweak get_peer_addr
Rename the function from sccp_sap_get_peer_addr_in to get_peer_addr to
make the code using it slightly more readable. The _in at the end of
the function is not needed anymore, this was used to differentiate from
peer_addr_out which was used in the caller code before the connection
mapping was implemented in I1556aa665fbb0a97507f98794e74820731fa6935.
Now instead of peer_addr_out, conn->bsc->addr or conn->msc->addr are
used.
Rename variable arguments to sccp_inst and addr to be consistent with
the variable names in the callers.
Related: SYS#5560
Change-Id: Ie023360724254be54cbaac4490b0341dfe68399f
---
M src/osmo-bsc-nat/bsc_nat_fsm.c
1 file changed, 10 insertions(+), 13 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc-nat refs/changes/77/27477/1
diff --git a/src/osmo-bsc-nat/bsc_nat_fsm.c b/src/osmo-bsc-nat/bsc_nat_fsm.c
index 303f3ef..07f41af 100644
--- a/src/osmo-bsc-nat/bsc_nat_fsm.c
+++ b/src/osmo-bsc-nat/bsc_nat_fsm.c
@@ -50,14 +50,14 @@
/* For connection-oriented messages, figure out which side is not the BSCNAT,
* either the called_addr or calling_addr. */
-static int sccp_sap_get_peer_addr_in(struct bsc_nat_sccp_inst *src, struct osmo_sccp_addr **peer_addr_in,
- struct osmo_sccp_addr *called_addr, struct osmo_sccp_addr *calling_addr)
+static int get_peer_addr(struct bsc_nat_sccp_inst *sccp_inst, struct osmo_sccp_addr **addr,
+ struct osmo_sccp_addr *called_addr, struct osmo_sccp_addr *calling_addr)
{
- if (osmo_sccp_addr_ri_cmp(&src->addr, called_addr) != 0) {
- *peer_addr_in = called_addr;
+ if (osmo_sccp_addr_ri_cmp(&sccp_inst->addr, called_addr) != 0) {
+ *addr = called_addr;
return 0;
- } else if (osmo_sccp_addr_ri_cmp(&src->addr, calling_addr) != 0) {
- *peer_addr_in = calling_addr;
+ } else if (osmo_sccp_addr_ri_cmp(&sccp_inst->addr, calling_addr) != 0) {
+ *addr = calling_addr;
return 0;
}
@@ -69,7 +69,7 @@
LOGP(DMAIN, LOGL_ERROR, "Invalid connection oriented message, locally configured address %s"
" is neither called address %s nor calling address %s!\n",
- osmo_sccp_inst_addr_name(NULL, &src->addr), buf_called, buf_calling);
+ osmo_sccp_inst_addr_name(NULL, &sccp_inst->addr), buf_called, buf_calling);
return -1;
}
@@ -94,8 +94,7 @@
case OSMO_PRIM(OSMO_SCU_PRIM_N_CONNECT, PRIM_OP_CONFIRM):
/* indication of connection confirm */
- if (sccp_sap_get_peer_addr_in(sccp_inst, &addr, &prim->u.connect.called_addr,
- &prim->u.connect.calling_addr) < 0)
+ if (get_peer_addr(sccp_inst, &addr, &prim->u.connect.called_addr, &prim->u.connect.calling_addr) < 0)
goto error;
conn = bsc_nat_conn_get_by_id(g_bsc_nat, prim->u.connect.conn_id, BSC_NAT_CN);
@@ -193,8 +192,7 @@
switch (OSMO_PRIM_HDR(oph)) {
case OSMO_PRIM(OSMO_SCU_PRIM_N_CONNECT, PRIM_OP_INDICATION):
/* indication of new inbound connection request */
- if (sccp_sap_get_peer_addr_in(sccp_inst, &addr, &prim->u.connect.called_addr,
- &prim->u.connect.calling_addr) < 0)
+ if (get_peer_addr(sccp_inst, &addr, &prim->u.connect.called_addr, &prim->u.connect.calling_addr) < 0)
goto error;
bsc = bsc_nat_bsc_get_by_pc(g_bsc_nat, addr->pc);
@@ -225,8 +223,7 @@
case OSMO_PRIM(OSMO_SCU_PRIM_N_CONNECT, PRIM_OP_CONFIRM):
/* indication of connection confirm */
- if (sccp_sap_get_peer_addr_in(sccp_inst, &addr, &prim->u.connect.called_addr,
- &prim->u.connect.calling_addr) < 0)
+ if (get_peer_addr(sccp_inst, &addr, &prim->u.connect.called_addr, &prim->u.connect.calling_addr) < 0)
goto error;
conn = bsc_nat_conn_get_by_id(g_bsc_nat, prim->u.connect.conn_id, BSC_NAT_RAN);
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc-nat/+/27477
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc-nat
Gerrit-Branch: master
Gerrit-Change-Id: Ie023360724254be54cbaac4490b0341dfe68399f
Gerrit-Change-Number: 27477
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newchange
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc-nat/+/27478 )
Change subject: README: add Manual Testing With osmo-dev
......................................................................
README: add Manual Testing With osmo-dev
Describe the manual testing that can be done with osmo-dev with the
changes up to I78ef36c72ff9a7b801e922eccc89dc44fbba7f23.
Related: SYS#5560
Change-Id: I3c3369b6d1a50ec3af19ee826cf2f94530d5d7fd
---
M README.md
1 file changed, 23 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc-nat refs/changes/78/27478/1
diff --git a/README.md b/README.md
index 8ed9954..ca367a2 100644
--- a/README.md
+++ b/README.md
@@ -42,6 +42,29 @@
[Osmocom Mailing List Rules](https://osmocom.org/projects/cellular-infrastructure/wiki/Mailing_Li…
when posting.
+Manual Testing With osmo-dev
+----------
+
+With [osmo-dev](https://git.osmocom.org/osmo-dev/) it is possible to
+build all Osmocom components for a full test network with OsmoBSCNAT,
+and run the network on your PC. Set up the make directory as described
+in osmo-dev's README, then build components with:
+
+```
+$ make cn-bsc-nat
+```
+
+Set up a network as described in osmo-dev's net/README, then put the
+following in your configuration to let it run osmo-bsc-nat with one
+virtual BSC, BTS and MS (can be used next to a real BSC/BTS/MS):
+
+```
+BSC_COUNT=2
+BTS1_RUN_IN_OSMO_DEV=1
+STP_RAN_IP="127.0.0.2"
+MS_RUN_IN_OSMO_DEV=1
+```
+
Contributing
------------
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc-nat/+/27478
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc-nat
Gerrit-Branch: master
Gerrit-Change-Id: I3c3369b6d1a50ec3af19ee826cf2f94530d5d7fd
Gerrit-Change-Number: 27478
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newchange