Change in osmo-gbproxy[master]: Update the max_sdu_len from NS

daniel gerrit-no-reply at lists.osmocom.org
Tue Mar 9 15:30:50 UTC 2021


daniel has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gbproxy/+/23295 )


Change subject: Update the max_sdu_len from NS
......................................................................

Update the max_sdu_len from NS

Related: OS#4889
Change-Id: Ie26550198db0cc34ca0a882c137c8685a5662f2a
---
M src/gb_proxy.c
1 file changed, 6 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gbproxy refs/changes/95/23295/1

diff --git a/src/gb_proxy.c b/src/gb_proxy.c
index 78e1e1d..a42055c 100644
--- a/src/gb_proxy.c
+++ b/src/gb_proxy.c
@@ -1540,10 +1540,15 @@
 		LOGP(DGPRS, LOGL_NOTICE, "NS-NSE %d became available\n", nsp->nsei);
 		sgsn_nse = gbproxy_nse_by_nsei(cfg, nsp->nsei, NSE_F_SGSN);
 		if (sgsn_nse) {
+			// Update the NSE max SDU len
+			sgsn_nse->max_sdu_len = nsp->u.status.mtu;
+
 			uint8_t cause = BSSGP_CAUSE_OML_INTERV;
 			bvc = gbproxy_bvc_by_bvci(sgsn_nse, 0);
-			if (bvc)
+			if (bvc) {
+				bssgp_bvc_fsm_set_max_pdu_len(bvc->fi, sgsn_nse->max_sdu_len);
 				osmo_fsm_inst_dispatch(bvc->fi, BSSGP_BVCFSM_E_REQ_RESET, &cause);
+			}
 		}
 		break;
 	case GPRS_NS2_AFF_CAUSE_FAILURE:

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gbproxy/+/23295
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gbproxy
Gerrit-Branch: master
Gerrit-Change-Id: Ie26550198db0cc34ca0a882c137c8685a5662f2a
Gerrit-Change-Number: 23295
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210309/bffbbbc0/attachment.htm>


More information about the gerrit-log mailing list