[libosmocore] 02/03: merge patched into master

Ruben Undheim rubund-guest at moszumanska.debian.org
Mon Dec 7 22:47:27 UTC 2015


This is an automated email from the git hooks/post-receive script.

rubund-guest pushed a commit to branch master
in repository libosmocore.

commit c569fc386962aa4fed762c68304f6c2e68dab129
Merge: 643efb9 15f0458
Author: Ruben Undheim <ruben.undheim at gmail.com>
Date:   Mon Dec 7 22:04:01 2015 +0100

    merge patched into master

 debian/.git-dpm                                    |  4 ++--
 ...tched-struct-for-big-endian-architectures.patch | 28 +++++++++++++---------
 include/osmocom/gsm/protocol/gsm_03_41.h           | 12 ++++++----
 3 files changed, 27 insertions(+), 17 deletions(-)

diff --cc debian/.git-dpm
index c0e26ba,0000000..6a15974
mode 100644,000000..100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@@ -1,8 -1,0 +1,8 @@@
 +# see git-dpm(1) from git-dpm package
- 30016f26b881ccc05561206adb69c7a7eab562a1
- 30016f26b881ccc05561206adb69c7a7eab562a1
++15f0458fb78be796007243b1967f3ae0ee903507
++15f0458fb78be796007243b1967f3ae0ee903507
 +16ca4aeb70817af9c2739dc58e910ac67e9b0864
 +16ca4aeb70817af9c2739dc58e910ac67e9b0864
 +libosmocore_0.9.0.orig.tar.gz
 +705eca7a77d295fcaf08ed4c3d0feb8b696fe914
 +574737
diff --cc debian/patches/0004-Patched-struct-for-big-endian-architectures.patch
index ce9dfa1,0000000..2adf9ba
mode 100644,000000..100644
--- a/debian/patches/0004-Patched-struct-for-big-endian-architectures.patch
+++ b/debian/patches/0004-Patched-struct-for-big-endian-architectures.patch
@@@ -1,80 -1,0 +1,86 @@@
- From 30016f26b881ccc05561206adb69c7a7eab562a1 Mon Sep 17 00:00:00 2001
++From 15f0458fb78be796007243b1967f3ae0ee903507 Mon Sep 17 00:00:00 2001
 +From: Ruben Undheim <ruben.undheim at gmail.com>
 +Date: Mon, 7 Dec 2015 19:34:28 +0100
 +Subject: Patched struct for big-endian architectures
 +
 +---
-  include/osmocom/gsm/protocol/gsm_03_41.h | 27 +++++++++++++++++++++++++++
-  1 file changed, 27 insertions(+)
++ include/osmocom/gsm/protocol/gsm_03_41.h | 31 +++++++++++++++++++++++++++++++
++ 1 file changed, 31 insertions(+)
 +
 +diff --git a/include/osmocom/gsm/protocol/gsm_03_41.h b/include/osmocom/gsm/protocol/gsm_03_41.h
- index 0ece6cc..f007cc1 100644
++index 0ece6cc..e4c077c 100644
 +--- a/include/osmocom/gsm/protocol/gsm_03_41.h
 ++++ b/include/osmocom/gsm/protocol/gsm_03_41.h
- @@ -2,6 +2,7 @@
++@@ -2,8 +2,13 @@
 + 
 + #include <stdint.h>
 + 
 ++#include <osmocom/core/endian.h>
 + #include <osmocom/gsm/protocol/gsm_04_12.h>
 + 
+++#ifndef OSMO_IS_LITTLE_ENDIAN
+++ #define OSMO_IS_LITTLE_ENDIAN 0
+++#endif
+++
 + /* GSM TS 03.41 definitions also TS 23.041*/
- @@ -13,19 +14,36 @@
++ 
++ #define GSM341_MAX_PAYLOAD	(GSM412_MSG_LEN-sizeof(struct gsm341_ms_message))
++@@ -13,19 +18,36 @@
 + /* Chapter 9.3.2 */
 + struct gsm341_ms_message {
 + 	struct {
- +#ifdef OSMO_IS_LITTLE_ENDIAN
+++#if OSMO_IS_LITTLE_ENDIAN == 1
 + 		uint8_t code_hi:6;
 + 		uint8_t gs:2;
 + 		uint8_t update:4;
 + 		uint8_t code_lo:4;
 ++#else
 ++		uint8_t code_lo:4;
 ++		uint8_t update:4;
 ++		uint8_t gs:2;
 ++		uint8_t code_hi:6;
 ++#endif
 + 	} serial;
 + 	uint16_t msg_id;
 + 	struct {
- +#ifdef OSMO_IS_LITTLE_ENDIAN
+++#if OSMO_IS_LITTLE_ENDIAN == 1
 + 		uint8_t language:4;
 + 		uint8_t group:4;
 ++#else
 ++		uint8_t group:4;
 ++		uint8_t language:4;
 ++#endif
 + 	} dcs;
 + 	struct {
- +#ifdef OSMO_IS_LITTLE_ENDIAN
+++#if OSMO_IS_LITTLE_ENDIAN == 1
 + 		uint8_t total:4;
 + 		uint8_t current:4;
 ++#else
 ++		uint8_t current:4;
 ++		uint8_t total:4;
 ++#endif
 + 	} page;
 + 	uint8_t data[0];
 + } __attribute__((packed));
- @@ -33,12 +51,21 @@ struct gsm341_ms_message {
++@@ -33,12 +55,21 @@ struct gsm341_ms_message {
 + /* Chapter 9.4.1.3 */
 + struct gsm341_etws_message {
 + 	struct {
- +#ifdef OSMO_IS_LITTLE_ENDIAN
+++#if OSMO_IS_LITTLE_ENDIAN == 1
 + 		uint8_t code_hi:4;
 + 		uint8_t popup:1;
 + 		uint8_t alert:1;
 + 		uint8_t gs:2;
 + 		uint8_t update:4;
 + 		uint8_t code_lo:4;
 ++#else
 ++		uint8_t code_lo:4;
 ++		uint8_t update:4;
 ++		uint8_t gs:2;
 ++		uint8_t alert:1;
 ++		uint8_t popup:1;
 ++		uint8_t code_hi:4;
 ++#endif
 + 	} serial;
 + 	uint16_t msg_id;
 + 	uint16_t warning_type;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libosmocore.git



More information about the debian-science-commits mailing list