Accepting request 677394 from home:mnhauke:osmocom:latest

- Add patch:
  * 0001-gsm_23_003.h-add-GSM23003_IMEI_NUM_DIGITS_NO_CHK.patch
    Needed for osmo-hlr 1.0.0

OBS-URL: https://build.opensuse.org/request/show/677394
OBS-URL: https://build.opensuse.org/package/show/network:telephony/libosmocore?expand=0&rev=67
This commit is contained in:
Jan Engelhardt 2019-02-19 15:39:36 +00:00 committed by Git OBS Bridge
parent f205da5a62
commit 91bdb80bea
3 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,30 @@
From 49fb992cd7bf94f25b93d9eeb711225daefa3a2d Mon Sep 17 00:00:00 2001
From: Oliver Smith <osmith@sysmocom.de>
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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Feb 19 14:54:30 UTC 2019 - Martin Hauke <mardnh@gmx.de>
- 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

View File

@ -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