Change in osmo-sgsn[master]: Echo zero byte XID-Field of Type L3_PAR

Harald Welte gerrit-no-reply at
Thu May 2 09:38:29 UTC 2019

Harald Welte has submitted this change and it was merged. ( )

Change subject: Echo zero byte XID-Field of Type L3_PAR

Echo zero byte XID-Field of Type L3_PAR

After Activate PDP Context request, Motorola KRZR
sends a zero length XID-Field of Type L3 Parameters

If this is not echoed back, the phone will send
Deactivate PDP Context request with SM Cause:
LLC or SNDCP failure(A/Gb only) (25)

Closes: OS#3426

Change-Id: Ibd75f7b943c84ed7264481fa2e4bc3cb2f6745d4
M src/gprs/gprs_sndcp.c
1 file changed, 8 insertions(+), 0 deletions(-)

  Harald Welte: Looks good to me, approved; Verified
  Keith Whyte: Looks good to me, but someone else must approve
  Jenkins Builder: Verified

diff --git a/src/gprs/gprs_sndcp.c b/src/gprs/gprs_sndcp.c
index 23d1e9a..d9aa1e5 100644
--- a/src/gprs/gprs_sndcp.c
+++ b/src/gprs/gprs_sndcp.c
@@ -1120,6 +1120,14 @@
+	/* Some phones send zero byte length SNDCP frames
+	 * and do require a confirmation response. */
+	if (xid_field_indication->data_len == 0) {
+		xid_field_response->type = GPRS_LLC_XID_T_L3_PAR;
+		xid_field_response->data_len = 0;
+		return 0;
+	}
 	/* Parse SNDCP-CID XID-Field */
 	comp_fields = gprs_sndcp_parse_xid(&version, lle->llme,

To view, visit
To unsubscribe, or for help writing mail filters, visit

Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ibd75f7b943c84ed7264481fa2e4bc3cb2f6745d4
Gerrit-Change-Number: 13811
Gerrit-PatchSet: 8
Gerrit-Owner: Keith Whyte <keith at>
Gerrit-Reviewer: Harald Welte <laforge at>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Keith Whyte <keith at>
Gerrit-Reviewer: lynxis lazus <lynxis at>
Gerrit-CC: Pau Espin Pedrol <pespin at>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gerrit-log mailing list