Attention is currently required from: neels.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/29392 )
Change subject: Initial libosmo-gprs-llc library skeleton
......................................................................
Patch Set 1: Code-Review+2
(1 comment)
File debian/copyright:
https://gerrit.osmocom.org/c/libosmo-gprs/+/29392/comment/56514cd9_118e1406
PS1, Line 40: License: AGPL-3.0+
> (seems odd to have the same 'License:' line twice? but i don't know this syntax well)
This is how it's done in other multi-license osmo-projects. Lintian does not complain.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/29392
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: Ia537acc6f4e6ab576dc7959d427b80f62c474296
Gerrit-Change-Number: 29392
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 19 Sep 2022 15:29:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: neels <nhofmeyr(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: neels, pespin.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/29402 )
Change subject: llc: implement LLC PDU codec based on code from osmo-sgsn.git
......................................................................
Patch Set 2:
(9 comments)
Patchset:
PS2:
> Please fix the linter warnings which make sense.
Please see my very first comments above.
File include/osmocom/gprs/llc/llc.h:
https://gerrit.osmocom.org/c/libosmo-gprs/+/29402/comment/9da3c8d9_816dc949
PS2, Line 132:
> because it is computationally trivial to do '(1 << OSMO__CMD_RSP)', but hard to do the reverse (get the bit nr from a bitmask).
Why would you need to do the reverse? I see three most frequent use cases: a) checking if a flag is set; b) setting a flag; c) unsetting a flag. In all these use cases you need to do (1 << x), so I find it more convenient to have them defined as bitmasks.
https://gerrit.osmocom.org/c/libosmo-gprs/+/29402/comment/befe6e42_34b5ebce
PS2, Line 135: #define OSMO_GPRS_LLC_PDU_F_ACK_REQ (1 << 2) /* 6.3.5.2 Acknowledgement request bit (A) */
> > 'Acknowledgement' may be misspelled - perhaps 'Acknowledgment'? […]
From my comments above: this is the original spelling from the specs.
I guess you also saw pag[e]ing in 3GPP docs?
File src/llc/llc_pdu.c:
https://gerrit.osmocom.org/c/libosmo-gprs/+/29402/comment/0fe65358_1b421992
PS2, Line 80: void osmo_gprs_llc_pdu_hdr_dump_buf(const struct osmo_gprs_llc_pdu_decoded *pdu,
> please make this function signature match snprintf(), because then it can be used by OSMO_STRBUF_APP […]
Ack, will do in the next patch set.
https://gerrit.osmocom.org/c/libosmo-gprs/+/29402/comment/e0d5d1a2_5145d909
PS2, Line 127: /* 6.4.1 Unnumbered (U) frames */
> i'd prefer an enum to group these
What would be the benefit of doing so?
https://gerrit.osmocom.org/c/libosmo-gprs/+/29402/comment/c02fbaad_d66765ff
PS2, Line 144: addr[0] |= pdu->sapi & 0x0f;
> The msgb is passed in from the caller, who knows what data may linger from a previous msgb_trim() or […]
Ack
https://gerrit.osmocom.org/c/libosmo-gprs/+/29402/comment/5ebc4fd1_fb15ce8c
PS2, Line 157: ctrl[0] |= (pdu->seq_tx >> 4) & 0x1f;
> bit shifting would be fine with me; but the advantage of a packed struct is that the decode function […]
Indeed, this can be improved later. For now we can live with manual bit-shifts.
https://gerrit.osmocom.org/c/libosmo-gprs/+/29402/comment/0211e025_816a2739
PS2, Line 277: che
> weird to see this linter vote after […]
The linter job has been executing before the mentioned patch was merged.
File tests/llc_pdu_codec/pdu_codec_test.c:
https://gerrit.osmocom.org/c/libosmo-gprs/+/29402/comment/d62ac501_afa7d49b
PS2, Line 66: struct msgb *msg = msgb_alloc(1024, "LLC-PDU");
> declare msg at start of scope
... so that the code looks more like Pascal ;)
What's wrong with doing so (especially in tests)?
--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/29402
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: I61d7e2e6d0a8f2cdfc2113e637e447dc428cc70d
Gerrit-Change-Number: 29402
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-CC: neels <nhofmeyr(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 19 Sep 2022 15:21:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: neels <nhofmeyr(a)sysmocom.de>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: neels, daniel.
Hello osmith, Jenkins Builder, neels, fixeria, daniel,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libosmo-abis/+/29365
to look at the new patch set (#3).
Change subject: ipa: Allow users closing lower layer tcp/ipa connections
......................................................................
ipa: Allow users closing lower layer tcp/ipa connections
This is useful for users to abort connections which are in "connecting"
state, since the higher layer struct e1inp_sign_link is not provided to
the user until the TCP+IPA handshake in the socket becomes fully
established (sign_link_up() callback).
This is intended for osmo-bts: when something fails and may enter into
SHUTDOWN state, it is desirable to close new RSL links (sockets) which
are in progress to connect, while it waits for a while to complete
shutdown (power ramping down, etc.).
Change-Id: Ia6418321f3b6f1f7274efd414625a4b10a09a362
---
M include/osmocom/abis/e1_input.h
M src/input/ipaccess.c
2 files changed, 30 insertions(+), 8 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/65/29365/3
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/29365
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Ia6418321f3b6f1f7274efd414625a4b10a09a362
Gerrit-Change-Number: 29365
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: neels.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/29369 )
Change subject: e1inp_line_ipa_rsl_ts(): Return null instead of reading out of bounds
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
> indicate this API change in TODO-RELEASE?
I'd say this should have been the expected behavior since ever, instead of simply crashing, there's no much need for that.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/29369
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Ic382ab509e4541124f36df153e4b247d9cba35c5
Gerrit-Change-Number: 29369
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-CC: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 19 Sep 2022 14:58:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: neels <nhofmeyr(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: neels, daniel.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/29365 )
Change subject: ipa: Allow users closing lower layer tcp/ipa connections
......................................................................
Patch Set 2:
(1 comment)
File src/input/ipaccess.c:
https://gerrit.osmocom.org/c/libosmo-abis/+/29365/comment/e4d94ca5_55d5d8da
PS2, Line 1151:
> (unrelated ws)
I find it a bit stupid to submit a separate patch to fix a whitespace issue in a place which is losely related to the lines being modified, but ok.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/29365
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Ia6418321f3b6f1f7274efd414625a4b10a09a362
Gerrit-Change-Number: 29365
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 19 Sep 2022 14:50:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: neels <nhofmeyr(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: neels, daniel.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/29365 )
Change subject: ipa: Allow users closing lower layer tcp/ipa connections
......................................................................
Patch Set 2:
(1 comment)
File src/input/ipaccess.c:
https://gerrit.osmocom.org/c/libosmo-abis/+/29365/comment/445043e2_f292733b
PS2, Line 1179:
> is moving this to above an unrelated change?
it's part of same code refactoring, it shows that this functionality was already being used internally.
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/29365
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Ia6418321f3b6f1f7274efd414625a4b10a09a362
Gerrit-Change-Number: 29365
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 19 Sep 2022 14:48:46 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: neels <nhofmeyr(a)sysmocom.de>
Gerrit-MessageType: comment