[MERGED] osmo-sgsn[master]: GMM: dont reply to GMM_DETACH_REQ with POWER OFF when MS is ...

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed May 2 21:31:17 UTC 2018


Harald Welte has submitted this change and it was merged.

Change subject: GMM: dont reply to GMM_DETACH_REQ with POWER OFF when MS is unknown
......................................................................


GMM: dont reply to GMM_DETACH_REQ with POWER OFF when MS is unknown

Change-Id: I1d1cf64500f1295ab58d157d4d4dab16fcddbbf3
---
M src/gprs/gprs_gmm.c
1 file changed, 7 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/gprs/gprs_gmm.c b/src/gprs/gprs_gmm.c
index 28fba71..93d64a4 100644
--- a/src/gprs/gprs_gmm.c
+++ b/src/gprs/gprs_gmm.c
@@ -1933,6 +1933,13 @@
 		if (gh->msg_type == GSM48_MT_GMM_DETACH_ACK)
 			return gprs_llgmm_unassign(llme);
 
+		/* Don't reply to deatch requests, reason power off */
+		if (gh->msg_type == GSM48_MT_GMM_DETACH_REQ &&
+			gh->data[0] & 0x8) {
+			return 0;
+		}
+
+
 		gprs_llgmm_reset(llme);
 
 		/* Don't force it into re-attachment */

-- 
To view, visit https://gerrit.osmocom.org/7980
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1d1cf64500f1295ab58d157d4d4dab16fcddbbf3
Gerrit-PatchSet: 1
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list