Attention is currently required from: laforge, fixeria, dexter.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/31417 )
Change subject: l1sap: Accept RFC5993 and TS 101.318 HR GSM payload
......................................................................
Patch Set 6:
(4 comments)
File src/common/l1sap.c:
https://gerrit.osmocom.org/c/osmo-bts/+/31417/comment/0a00aaf2_241cdc79
PS6, Line 1274: if (OSMO_UNLIKELY((resp_msg->len != GSM_HR_BYTES + 1) && rfc5993)) {
Should this be:
"OSMO_UNLIKELY((resp_msg->len != GSM_HR_BYTES + 1) && !ts101318)"
You are not interested on whether the BTS supports the other type, instead you are interested in knowing if the received format is not supported?
https://gerrit.osmocom.org/c/osmo-bts/+/31417/comment/24136ea7_28b857fc
PS6, Line 1279: } else if (OSMO_UNLIKELY((resp_msg->len != GSM_HR_BYTES) && ts101318)) {
same here, !rfc5993
https://gerrit.osmocom.org/c/osmo-bts/+/31417/comment/1a8a9154_dfa6e64e
PS6, Line 1940: if (lchan->type == GSM_LCHAN_TCH_H && rtp_pl_len == GSM_HR_BYTES
please break each condition into one line with uniform formatting.
https://gerrit.osmocom.org/c/osmo-bts/+/31417/comment/cbde0555_eca145a5
PS6, Line 1950: } else if (lchan->type == GSM_LCHAN_TCH_H && rtp_pl_len == GSM_HR_BYTES + 1
I see you are using "GSM_HR_BYTES" and "GSM_HR_BYTES + 1" in several places.
It would be far cleared if you added defines for those (they can be at the start if this C file for instance). For instance something like:
GSM_HR_BYTES_RTP_RFC5993 (GSM_HR_BYTES)
GSM_HR_BYTES_RTP_TS101318 (GSM_HR_BYTES + 1)
BTW, you are checking twice that "lchan->type == GSM_LCHAN_TCH_H", make levels of checks.
--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/31417
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I453562da412fde5b928bd2b588129c58ec8e2a7e
Gerrit-Change-Number: 31417
Gerrit-PatchSet: 6
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 03 May 2023 12:07:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: tnt, dexter.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/32569 )
Change subject: e1d: get rid of strange file descriptor registered check
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
For now it's fine. Ideally at some point the code in e1d should be improved to make sure that the assumption:
"bfd->fd != -1" == "osmo_fd_registered(bfd)"
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/32569
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I92c426271dc5455427471030fcf0749566e4c2ee
Gerrit-Change-Number: 32569
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: tnt <tnt(a)246tNt.com>
Gerrit-Attention: tnt <tnt(a)246tNt.com>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 03 May 2023 11:55:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: dexter.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/32579 )
Change subject: select: speed up osmo_fd_is_registered
......................................................................
Patch Set 1: Code-Review-2
(1 comment)
Patchset:
PS1:
the iteartion is done precisely to avoid that kind of hacky checks whith assumptions regarding the content of the list items which may not be true.
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/32579
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I1ce894da39e3f2329c88666a5dda594b8bce4228
Gerrit-Change-Number: 32579
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 03 May 2023 11:54:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: fixeria, dexter.
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/pysim/+/32532 )
Change subject: pySim-shell: fix compatibility problem with cmd2 >= 2.0.0 (Settable)
......................................................................
Patch Set 12:
(1 comment)
File pySim-shell.py:
https://gerrit.osmocom.org/c/pysim/+/32532/comment/2ba819e5_7f79db6b
PS12, Line 162: # pylint: disable=E1121
> I have tested this also with too-many-function-args but it seems not to be recognized by pylint. […]
We currently use a rather old pylint version (the one in debian buster), so apparently it doesn't disable the check for the whole block as it says in the documentation.
Adding it at the end of each line, and adding a \ for multiline statements makes it work with the current version in the meantime.
```
self.add_settable(cmd2.Settable('numeric_path', bool, 'Print File IDs instead of names', self, \
onchange_cb=self._onchange_numeric_path)) # pylint: disable=too-many-function-args
self.add_settable(cmd2.Settable('conserve_write', bool, 'Read and compare before write', self, \
onchange_cb=self._onchange_conserve_write)) # pylint: disable=too-many-function-args
self.add_settable(cmd2.Settable('json_pretty_print', bool, 'Pretty-Print JSON output', self)) # pylint: disable=too-many-function-args
self.add_settable(cmd2.Settable('apdu_trace', bool, 'Trace and display APDUs exchanged with card', self, \
onchange_cb=self._onchange_apdu_trace)) # pylint: disable=too-many-function-args
```
as diff:
```
diff --git a/pySim-shell.py b/pySim-shell.py
index 1e390d2..f265f5d 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -159,14 +159,13 @@ class PysimApp(cmd2.Cmd):
self.add_settable(cmd2.Settable('apdu_trace', bool, 'Trace and display APDUs exchanged with card',
onchange_cb=self._onchange_apdu_trace))
else:
- # pylint: disable=E1121
- self.add_settable(cmd2.Settable('numeric_path', bool, 'Print File IDs instead of names', self,
- onchange_cb=self._onchange_numeric_path))
- self.add_settable(cmd2.Settable('conserve_write', bool, 'Read and compare before write', self,
- onchange_cb=self._onchange_conserve_write))
- self.add_settable(cmd2.Settable('json_pretty_print', bool, 'Pretty-Print JSON output', self))
- self.add_settable(cmd2.Settable('apdu_trace', bool, 'Trace and display APDUs exchanged with card', self,
- onchange_cb=self._onchange_apdu_trace))
+ self.add_settable(cmd2.Settable('numeric_path', bool, 'Print File IDs instead of names', self, \
+ onchange_cb=self._onchange_numeric_path)) # pylint: disable=too-many-function-args
+ self.add_settable(cmd2.Settable('conserve_write', bool, 'Read and compare before write', self, \
+ onchange_cb=self._onchange_conserve_write)) # pylint: disable=too-many-function-args
+ self.add_settable(cmd2.Settable('json_pretty_print', bool, 'Pretty-Print JSON output', self)) # pylint: disable=too-many-function-args
+ self.add_settable(cmd2.Settable('apdu_trace', bool, 'Trace and display APDUs exchanged with card', self, \
+ onchange_cb=self._onchange_apdu_trace)) # pylint: disable=too-many-function-args
self.equip(card, rs)
def equip(self, card, rs):
```
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/32532
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I38efe4702277ee092a5542d7d659df08cb0adeff
Gerrit-Change-Number: 32532
Gerrit-PatchSet: 12
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-CC: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 03 May 2023 11:48:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: comment