Attention is currently required from: jolly.

laforge has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/35082?usp=email )

Change subject: LAPDm: Reject (release) establishment on DCC0, SAPI 0 without 
L3 payload
......................................................................


Patch Set 1: Code-Review+1

(1 comment)

File src/common/rsl.c:

https://gerrit.osmocom.org/c/osmo-bts/+/35082/comment/59b49993_7d9faff6
PS1, Line 3839:                 if (msgb_l2len(msg) == sizeof(*rllh) && 
(rllh->link_id & 0xc7) == 0x00) {
Using our union abis_rsl_link_id and then comparing sapin and cbits 
individually is probably the more higher-level / cleaner approach than doing 
low-level bit-masking which no developer understands off their head without 
reading the relevant spec section.

It's not critical, I just think we should always try to aim making code as 
readable as possible.  Open Source is not written to just execute, but to be 
read by other developers.



--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/35082?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I6819b51a876b8743c2d4a04165b7900723a1631c
Gerrit-Change-Number: 35082
Gerrit-PatchSet: 1
Gerrit-Owner: jolly <andr...@eversberg.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanits...@sysmocom.de>
Gerrit-Reviewer: laforge <lafo...@osmocom.org>
Gerrit-Attention: jolly <andr...@eversberg.eu>
Gerrit-Comment-Date: Wed, 22 Nov 2023 12:18:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

Reply via email to