osmith has uploaded this change for review. ( https://gerrit.osmocom.org/12666


Change subject: gsm_23_003.h: add GSM23003_IMEI_NUM_NO_CHK_DIGITS
......................................................................

gsm_23_003.h: add GSM23003_IMEI_NUM_NO_CHK_DIGITS

Add new define for the 14 digit IMEI without the Luhn checksum, as it
is used in OsmoHLR.

Change-Id: I02b54cf01a674a1911c5c897fbec02240f88b521
---
M include/osmocom/gsm/protocol/gsm_23_003.h
1 file changed, 3 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/66/12666/1

diff --git a/include/osmocom/gsm/protocol/gsm_23_003.h 
b/include/osmocom/gsm/protocol/gsm_23_003.h
index ee697ff..65ac328 100644
--- a/include/osmocom/gsm/protocol/gsm_23_003.h
+++ b/include/osmocom/gsm/protocol/gsm_23_003.h
@@ -24,6 +24,9 @@
                                         GSM23003_IMEI_SNR_NUM_DIGITS + 1)
 #define GSM23003_IMEISV_NUM_DIGITS     (GSM23003_IMEI_TAC_NUM_DIGITS + \
                                         GSM23003_IMEI_SNR_NUM_DIGITS + 2)
+/* IMEI without Luhn checksum */
+#define GSM23003_IMEI_NUM_NO_CHK_DIGITS        (GSM23003_IMEI_TAC_NUM_DIGITS + 
\
+                                        GSM23003_IMEI_SNR_NUM_DIGITS)

 /* Chapter 19.2 "epc.mnc000.mcc000.3gppnetwork.org" */
 #define GSM23003_HOME_NETWORK_DOMAIN_LEN       33

--
To view, visit https://gerrit.osmocom.org/12666
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: I02b54cf01a674a1911c5c897fbec02240f88b521
Gerrit-Change-Number: 12666
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>

Reply via email to