This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
lynxis lazus gerrit-no-reply at lists.osmocom.orglynxis lazus has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/25774 ) Change subject: ns2: don't forward an invalid RESET PDU to the FSM ...................................................................... ns2: don't forward an invalid RESET PDU to the FSM When receiving an invalid RESET (e.g. wrong NSEI or NSVCI) do not forward the PDU to the NSVC fsm. Answer it with correct NSEI & NSVCI, log the PDU, then ignore it. Fixes: OS#5258 Change-Id: I6e562def9c5a1e4534d42884215272b1e66d26c2 --- M src/gb/gprs_ns2_vc_fsm.c 1 file changed, 2 insertions(+), 0 deletions(-) Approvals: daniel: Looks good to me, approved pespin: Looks good to me, but someone else must approve Jenkins Builder: Verified diff --git a/src/gb/gprs_ns2_vc_fsm.c b/src/gb/gprs_ns2_vc_fsm.c index 726fc0c..d28897e 100644 --- a/src/gb/gprs_ns2_vc_fsm.c +++ b/src/gb/gprs_ns2_vc_fsm.c @@ -887,6 +887,8 @@ /* 48.016 § 7.3.1 send RESET_ACK to wrong NSVCI + ignore */ if (nsh->pdu_type == NS_PDUT_RESET) { ns2_tx_reset_ack(nsvc); + LOG_NS_SIGNAL(nsvc, "Rx", nsh->pdu_type, LOGL_ERROR, " with wrong NSVCI (exp: %05u, got %05u). Ignoring PDU.\n", nsvc->nsvci, nsvci); + goto out; } else if (nsh->pdu_type == NS_PDUT_STATUS) { /* this is a PDU received over a NSVC and reports a status for another NSVC */ target_nsvc = gprs_ns2_nsvc_by_nsvci(nsvc->nse->nsi, nsvci); -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/25774 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I6e562def9c5a1e4534d42884215272b1e66d26c2 Gerrit-Change-Number: 25774 Gerrit-PatchSet: 2 Gerrit-Owner: lynxis lazus <lynxis at fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: daniel <dwillmann at sysmocom.de> Gerrit-Reviewer: lynxis lazus <lynxis at fe80.eu> Gerrit-Reviewer: pespin <pespin at sysmocom.de> Gerrit-CC: laforge <laforge at osmocom.org> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211015/76e24420/attachment.htm>