Change in libosmocore[master]: gsm_03_40.h: define max SM-TP-UDL (User-Data-Length) values

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Tue Apr 9 08:15:38 UTC 2019


Vadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/13553


Change subject: gsm_03_40.h: define max SM-TP-UDL (User-Data-Length) values
......................................................................

gsm_03_40.h: define max SM-TP-UDL (User-Data-Length) values

As per 3GPP TS 03.40, section 9.2.3.16 "TP-User-Data-Length (TP-UDL)"
field may contain up to 140 octets (or 140 * 8 / 7 = 160 septets).

Change-Id: I54f88d2908ac47228813fb8c049f4264e5145241
---
M include/osmocom/gsm/protocol/gsm_03_40.h
1 file changed, 5 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/53/13553/1

diff --git a/include/osmocom/gsm/protocol/gsm_03_40.h b/include/osmocom/gsm/protocol/gsm_03_40.h
index a65203f..33a5c59 100644
--- a/include/osmocom/gsm/protocol/gsm_03_40.h
+++ b/include/osmocom/gsm/protocol/gsm_03_40.h
@@ -3,6 +3,11 @@
 
 #pragma once
 
+/* SM-TP-UD (User-Data) field may contain up to 140 octets
+ * (or 140 * 8 / 7 = 160 septets). See section 9.2.3.24. */
+#define GSM340_UDL_OCT_MAX 140  /*!< Maximum TP-UD length (in octets) for 7-bit encoding */
+#define GSM340_UDL_SPT_MAX 160  /*!< Maximum TP-UD length (in seplets) for 8-bit and UCS-2 encoding */
+
 /**
  * 9.1.2.5 Type Of Number
  */

-- 
To view, visit https://gerrit.osmocom.org/13553
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I54f88d2908ac47228813fb8c049f4264e5145241
Gerrit-Change-Number: 13553
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190409/68b7277c/attachment.html>


More information about the gerrit-log mailing list