Attention is currently required from: pespin, fixeria.
neels has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31085 )
Change subject: hnbgw: add HNBAP port to ConnHdlr
......................................................................
Patch Set 1:
(1 comment)
File hnbgw/HNBGW_Tests.ttcn:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31085/comment/0bef79be_fcf3…
PS1, Line 414: /* disconnect test_CT HNBAP[i], instead connect ConnHdlr.HNBAP to HNBAP[i] */
> because there may be tests currently spawning ConHdlr but still sending HNBAP from the test_CT, that […]
When I want to send HNBAP in-between some RUA-SCCP conn activities, it is cumbersome to have to go back to test_CT for HNBAP.
AFAIU we can send HNBAP from the test_CT, and when we start ConnHdlr we can use HNBAP in there. In test_CT we have HNBAP[NUM_HNB], in ConnHdlr we have just the one HNBAP related to the specific HNB for that conn.
Once a ConnHdlr is started, that HNBAP[hnb_nr] will stop working in test_CT. We have no tests that would want that to work.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31085
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: I1e7ffded5bd9974c444dbb567b6afa643b5b2501
Gerrit-Change-Number: 31085
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 28 Jan 2023 19:15:46 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: pespin, fixeria.
neels has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31084 )
Change subject: hnbgw: add HNBGWVTY to ConnHdlr
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
> Yes sure, I'm just asking whether is this needed and how will it be used :)
i had tests for HNBGW memleaks that need the VTY in ConnHdlr tests ... the tests kind of didn't work out the way i wanted / may come later, or may not. I figured since there is a comment asking for a VTY port i might as well add it now before someone else (or future me) has to figure it out again
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31084
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: Ic325fd5eb5134529012856c08336633c1413284d
Gerrit-Change-Number: 31084
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 28 Jan 2023 19:05:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/31056 )
Change subject: gsm_r: EF_Predefined: Decode first record different from others
......................................................................
gsm_r: EF_Predefined: Decode first record different from others
In their infinite wisdom, the authors of the EIRENE FFFIS for GSM-R SIM
cards invented yet a new way of encoding data in SIM card files: The
first record of a file may be encoded differently than further records
of files.
This patch implements the feature based on the newly-introduced way by
which we pass the record number to the encoder and decoder methods.
Change-Id: Ib526f6c3c2ac9a945b8242e2e54536628376efc0
Related: OS#5784
---
M pySim/gsm_r.py
1 file changed, 18 insertions(+), 6 deletions(-)
Approvals:
laforge: Looks good to me, approved
Jenkins Builder: Verified
diff --git a/pySim/gsm_r.py b/pySim/gsm_r.py
index 5ddb04b..347c4e6 100644
--- a/pySim/gsm_r.py
+++ b/pySim/gsm_r.py
@@ -237,17 +237,29 @@
class EF_Predefined(LinFixedEF):
"""Section 8.5"""
+ # header and other records have different structure. WTF !?!
+ construct_first = Struct('next_table_type'/NextTableType,
+ 'id_of_next_table'/HexAdapter(Bytes(2)))
+ construct_others = Struct('predefined_value1'/HexAdapter(Bytes(2)),
+ 'string_table_index1'/Int8ub)
def __init__(self, fid, name, desc):
super().__init__(fid=fid, sfid=None,
name=name, desc=desc, rec_len=(3, 3))
- # header and other records have different structure. WTF !?!
- self._construct = Struct('next_table_type'/NextTableType,
- 'id_of_next_table'/HexAdapter(Bytes(2)),
- 'predefined_value1'/HexAdapter(Bytes(2)),
- 'string_table_index1'/Int8ub)
- # TODO: predefined value n, ...
+ def _decode_record_bin(self, raw_bin_data : bytes, record_nr : int) -> dict:
+ if record_nr == 1:
+ return parse_construct(self.construct_first, raw_bin_data)
+ else:
+ return parse_construct(self.construct_others, raw_bin_data)
+
+ def _encode_record_bin(self, abstract_data : dict, record_nr : int) -> bytearray:
+ r = None
+ if record_nr == 1:
+ r = self.construct_first.build(abstract_data)
+ else:
+ r = self.construct_others.build(abstract_data)
+ return filter_dict(r)
class EF_DialledVals(TransparentEF):
"""Section 8.6"""
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/31056
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ib526f6c3c2ac9a945b8242e2e54536628376efc0
Gerrit-Change-Number: 31056
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: merged
laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/31064 )
Change subject: ts_51_011: Fix bit-order in EF.VGCSS and EF.VBSS
......................................................................
ts_51_011: Fix bit-order in EF.VGCSS and EF.VBSS
Those files contain a bit-mask of active group IDs stored at the
respective positions in EV.VGCS and EF.VBS. However, the bit-order
of each byte is reversed.
Change-Id: I77674c23823aae71c9504b1a85cd75266edadc6f
Related: OS#5784
---
M pySim/ts_51_011.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
fixeria: Looks good to me, approved
diff --git a/pySim/ts_51_011.py b/pySim/ts_51_011.py
index bb49f13..a353101 100644
--- a/pySim/ts_51_011.py
+++ b/pySim/ts_51_011.py
@@ -714,8 +714,8 @@
def __init__(self, fid='6fb2', sfid=None, name='EF.VGCSS', size=(7, 7),
desc='Voice Group Call Service Status', **kwargs):
super().__init__(fid, sfid=sfid, name=name, desc=desc, size=size, **kwargs)
- self._construct = BitStruct(
- 'flags'/Bit[50], Padding(6, pattern=b'\xff'))
+ self._construct = BitsSwapped(BitStruct(
+ 'flags'/Bit[50], Padding(6, pattern=b'\xff')))
# TS 51.011 Section 10.3.24
class EF_eMLPP(TransparentEF):
2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/31064
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I77674c23823aae71c9504b1a85cd75266edadc6f
Gerrit-Change-Number: 31064
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <laforge(a)osmocom.org>
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-MessageType: merged
Attention is currently required from: pespin.
msuraev has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/31096 )
Change subject: Mark *_fsm_timeouts as static
......................................................................
Patch Set 2: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/31096
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Ibf2a6ee5636ae7102ffd13b7497769652bcc3202
Gerrit-Change-Number: 31096
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: msuraev <msuraev(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Sat, 28 Jan 2023 15:46:49 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment