diff --git a/0001-gsm_23_003.h-add-GSM23003_IMEI_NUM_DIGITS_NO_CHK.patch b/0001-gsm_23_003.h-add-GSM23003_IMEI_NUM_DIGITS_NO_CHK.patch new file mode 100644 index 0000000..ae622af --- /dev/null +++ b/0001-gsm_23_003.h-add-GSM23003_IMEI_NUM_DIGITS_NO_CHK.patch @@ -0,0 +1,30 @@ +From 49fb992cd7bf94f25b93d9eeb711225daefa3a2d Mon Sep 17 00:00:00 2001 +From: Oliver Smith +Date: Mon, 21 Jan 2019 16:32:46 +0100 +Subject: [PATCH] gsm_23_003.h: add GSM23003_IMEI_NUM_DIGITS_NO_CHK + +Add new define for the 14 digit IMEI without the Luhn checksum, as it +is used in OsmoHLR. + +Change-Id: I02b54cf01a674a1911c5c897fbec02240f88b521 +--- + include/osmocom/gsm/protocol/gsm_23_003.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/include/osmocom/gsm/protocol/gsm_23_003.h b/include/osmocom/gsm/protocol/gsm_23_003.h +index ee697ff4..babd0f4b 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_DIGITS_NO_CHK (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 +-- +2.16.4 + diff --git a/libosmocore.changes b/libosmocore.changes index 6b97c35..3ffd271 100644 --- a/libosmocore.changes +++ b/libosmocore.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Feb 19 14:54:30 UTC 2019 - Martin Hauke + +- Add patch: + * 0001-gsm_23_003.h-add-GSM23003_IMEI_NUM_DIGITS_NO_CHK.patch + Needed for osmo-hlr 1.0.0 + ------------------------------------------------------------------- Thu Jan 31 14:47:59 UTC 2019 - mardnh@gmx.de diff --git a/libosmocore.spec b/libosmocore.spec index 29d2b7c..23184ff 100644 --- a/libosmocore.spec +++ b/libosmocore.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -24,6 +24,7 @@ License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later AND AGPL Group: Productivity/Telephony/Utilities Url: https://osmocom.org/projects/libosmocore/wiki/Libosmocore Source: %name-%version.tar.xz +Patch0: 0001-gsm_23_003.h-add-GSM23003_IMEI_NUM_DIGITS_NO_CHK.patch BuildRequires: automake >= 1.6 BuildRequires: libtool >= 2 BuildRequires: pkg-config >= 0.20 @@ -272,6 +273,7 @@ applications that want to make use of libosmovty. %prep %setup -q +%patch0 -p1 %build echo "%version" >.tarball-version