From bhagavathula.ravisharan at ieee.org Mon Mar 9 13:58:50 2015 From: bhagavathula.ravisharan at ieee.org (Ravi Sharan) Date: Mon, 9 Mar 2015 19:28:50 +0530 Subject: baseband-devel Digest, Vol 3, Issue 7 In-Reply-To: References: Message-ID: Sanchit, You might want to consider applying this patch. Ravi Sharan. On Sun, Jan 25, 2015 at 2:43 PM, wrote: > Send baseband-devel mailing list submissions to > baseband-devel at lists.osmocom.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.osmocom.org/mailman/listinfo/baseband-devel > or, via email, send a message with subject or body 'help' to > baseband-devel-request at lists.osmocom.org > > You can reach the person managing the list at > baseband-devel-owner at lists.osmocom.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of baseband-devel digest..." > > Today's Topics: > > 1. Regarding Mobile Application of Osmocombb . Core Dumped. > Ubuntu 14.04 (Sanchit Agarwal) > > > ---------- Forwarded message ---------- > From: Sanchit Agarwal > To: baseband-devel at lists.osmocom.org > Cc: > Date: Wed, 21 Jan 2015 01:38:27 +0530 > Subject: Regarding Mobile Application of Osmocombb . Core Dumped. Ubuntu 14.04 > Hi > I have compiled mobile app with tx support . > i.e i have checked-out the testing branch . > > Layer 1 seems to be uploaded to the mobile phone successfully. > > But the program crashes every-time there is a successful connection with the network service provider. > > I am attaching my mobile.log and layer1.log file along for debugging. > > Hoping some one replies. > > > " mmsgb(0x8955b0): Not enough headroom msgb_push (4285966792 < 7) > errors > Dropping frame with 66 bit errors > Dropping frame with 65 bit errors > Dropping frame with 58 bit errors > Dropping frame with 56 bit errors > LOSS counter for CCCH 57 > Dropping frame with 66 bit errors > Dropping frame with 66 bit errors > Dropping frame with 65 bit errors > Dropping frame with 65 bit errors > Dropping frame with 70 bit errors > Dropping frame with 65 bit errors > Dropping frame with 80 bit errors > LOSS counter for CCCH 53 > Dropping frame with 61 bit errors > Dropping frame with 76 bit errors > Dropping frame with 57 bit errors > Dropping frame with 67 bit errors > Dropping frame with 58 bit errors > Dropping frame with 72 bit errors > Dropping frame with 63 bit errors > Dropping frame with 70 bit errors > LOSS counter for CCCH 49 > Dropping frame with 57 bit errors > Dropping frame with 61 bit errors > Dropping frame with 52 bit errors > Dropping frame with 77 bit errors > Dropping frame with 60 bit errors > Dropping frame with 57 bit errors > Dropping frame with 76 bit errors > LOSS counter for CCCH 45 > Dropping frame with 70 bit errors > Dropping frame with 57 bit errors > Dropping frame with 65 bit errors > Dropping frame with 46 bit errors > Dropping frame with 65 bit errors > Dropping frame with 46 bit errors > Dropping frame with 70 bit errors > Dropping frame with 77 bit errors > LOSS counter for CCCH 46 > Dropping frame with 51 bit errors > Dropping frame with 56 bit errors > Dropping frame with 65 bit errors > Dropping frame with 59 bit errors > Dropping frame with 65 bit errors > Dropping frame with 60 bit errors > Dropping frame with 72 bit errors > Dropping frame with 79 bit errors > Dropping frame with 75 bit errors > Dropping frame with 59 bit errors > Dropping frame with 72 bit errors > Dropping frame with 66 bit errors > Dropping frame with 69 bit errors > Dropping frame with 70 bit errors > Dropping frame with 65 bit errors > Dropping frame with 69 bit errors > Dropping frame with 66 bit errors > Dropping frame with 82 bit errors > Dropping frame with 80 bit errors > LOSS counter for CCCH 86 > Dropping frame with 67 bit errors > Dropping frame with 63 bit errors > Dropping frame with 69 bit errors > Dropping frame with 69 bit errors > Dropping frame with 66 bit errors > Dropping frame with 76 bit errors > Dropping frame with 63 bit errors > LOSS counter for CCCH 87 > Dropping frame with 53 bit errors > Dropping frame with 54 bit errors > LOSS counter for CCCH 88 > LOSS counter for CCCH 89 > Dropping frame with 46 bit errors > Dropping frame with 50 bit errors > Dropping frame with 45 bit errors > backtrace() returned 10 addresses > /usr/local/lib/libosmocore.so.6(osmo_panic+0xbe) [0x7f3ccd0745ce] > /usr/local/lib/libosmogsm.so.5(lapdm_phsap_up+0x18e) [0x7f3cccc3cc5e] > ./mobile() [0x438c29] > ./mobile() [0x4394cc] > /usr/local/lib/libosmocore.so.6(osmo_wqueue_bfd_cb+0x73) [0x7f3ccd071b63] > /usr/local/lib/libosmocore.so.6(osmo_select_main+0x18f) [0x7f3ccd070b9f] > ./mobile() [0x4048bf] > /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f3ccc679ec5] > ./mobile() [0x404a46] > " > > > there is core dumped after this error. > > _______________________________________________ > baseband-devel mailing list > baseband-devel at lists.osmocom.org > https://lists.osmocom.org/mailman/listinfo/baseband-devel > -- Ravi Sharan B A G. From bhagavathula.ravisharan at ieee.org Mon Mar 9 13:59:30 2015 From: bhagavathula.ravisharan at ieee.org (Ravi Sharan) Date: Mon, 9 Mar 2015 19:29:30 +0530 Subject: baseband-devel Digest, Vol 3, Issue 7 In-Reply-To: References: Message-ID: Sanchit, You might want to consider applying this patch found at https://patchwork.ozlabs.org/patch/381856/ On Mon, Mar 9, 2015 at 7:28 PM, Ravi Sharan wrote: > Sanchit, > > You might want to consider applying this patch. > > Ravi Sharan. > > On Sun, Jan 25, 2015 at 2:43 PM, > wrote: >> Send baseband-devel mailing list submissions to >> baseband-devel at lists.osmocom.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.osmocom.org/mailman/listinfo/baseband-devel >> or, via email, send a message with subject or body 'help' to >> baseband-devel-request at lists.osmocom.org >> >> You can reach the person managing the list at >> baseband-devel-owner at lists.osmocom.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of baseband-devel digest..." >> >> Today's Topics: >> >> 1. Regarding Mobile Application of Osmocombb . Core Dumped. >> Ubuntu 14.04 (Sanchit Agarwal) >> >> >> ---------- Forwarded message ---------- >> From: Sanchit Agarwal >> To: baseband-devel at lists.osmocom.org >> Cc: >> Date: Wed, 21 Jan 2015 01:38:27 +0530 >> Subject: Regarding Mobile Application of Osmocombb . Core Dumped. Ubuntu 14.04 >> Hi >> I have compiled mobile app with tx support . >> i.e i have checked-out the testing branch . >> >> Layer 1 seems to be uploaded to the mobile phone successfully. >> >> But the program crashes every-time there is a successful connection with the network service provider. >> >> I am attaching my mobile.log and layer1.log file along for debugging. >> >> Hoping some one replies. >> >> >> " mmsgb(0x8955b0): Not enough headroom msgb_push (4285966792 < 7) >> errors >> Dropping frame with 66 bit errors >> Dropping frame with 65 bit errors >> Dropping frame with 58 bit errors >> Dropping frame with 56 bit errors >> LOSS counter for CCCH 57 >> Dropping frame with 66 bit errors >> Dropping frame with 66 bit errors >> Dropping frame with 65 bit errors >> Dropping frame with 65 bit errors >> Dropping frame with 70 bit errors >> Dropping frame with 65 bit errors >> Dropping frame with 80 bit errors >> LOSS counter for CCCH 53 >> Dropping frame with 61 bit errors >> Dropping frame with 76 bit errors >> Dropping frame with 57 bit errors >> Dropping frame with 67 bit errors >> Dropping frame with 58 bit errors >> Dropping frame with 72 bit errors >> Dropping frame with 63 bit errors >> Dropping frame with 70 bit errors >> LOSS counter for CCCH 49 >> Dropping frame with 57 bit errors >> Dropping frame with 61 bit errors >> Dropping frame with 52 bit errors >> Dropping frame with 77 bit errors >> Dropping frame with 60 bit errors >> Dropping frame with 57 bit errors >> Dropping frame with 76 bit errors >> LOSS counter for CCCH 45 >> Dropping frame with 70 bit errors >> Dropping frame with 57 bit errors >> Dropping frame with 65 bit errors >> Dropping frame with 46 bit errors >> Dropping frame with 65 bit errors >> Dropping frame with 46 bit errors >> Dropping frame with 70 bit errors >> Dropping frame with 77 bit errors >> LOSS counter for CCCH 46 >> Dropping frame with 51 bit errors >> Dropping frame with 56 bit errors >> Dropping frame with 65 bit errors >> Dropping frame with 59 bit errors >> Dropping frame with 65 bit errors >> Dropping frame with 60 bit errors >> Dropping frame with 72 bit errors >> Dropping frame with 79 bit errors >> Dropping frame with 75 bit errors >> Dropping frame with 59 bit errors >> Dropping frame with 72 bit errors >> Dropping frame with 66 bit errors >> Dropping frame with 69 bit errors >> Dropping frame with 70 bit errors >> Dropping frame with 65 bit errors >> Dropping frame with 69 bit errors >> Dropping frame with 66 bit errors >> Dropping frame with 82 bit errors >> Dropping frame with 80 bit errors >> LOSS counter for CCCH 86 >> Dropping frame with 67 bit errors >> Dropping frame with 63 bit errors >> Dropping frame with 69 bit errors >> Dropping frame with 69 bit errors >> Dropping frame with 66 bit errors >> Dropping frame with 76 bit errors >> Dropping frame with 63 bit errors >> LOSS counter for CCCH 87 >> Dropping frame with 53 bit errors >> Dropping frame with 54 bit errors >> LOSS counter for CCCH 88 >> LOSS counter for CCCH 89 >> Dropping frame with 46 bit errors >> Dropping frame with 50 bit errors >> Dropping frame with 45 bit errors >> backtrace() returned 10 addresses >> /usr/local/lib/libosmocore.so.6(osmo_panic+0xbe) [0x7f3ccd0745ce] >> /usr/local/lib/libosmogsm.so.5(lapdm_phsap_up+0x18e) [0x7f3cccc3cc5e] >> ./mobile() [0x438c29] >> ./mobile() [0x4394cc] >> /usr/local/lib/libosmocore.so.6(osmo_wqueue_bfd_cb+0x73) [0x7f3ccd071b63] >> /usr/local/lib/libosmocore.so.6(osmo_select_main+0x18f) [0x7f3ccd070b9f] >> ./mobile() [0x4048bf] >> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f3ccc679ec5] >> ./mobile() [0x404a46] >> " >> >> >> there is core dumped after this error. >> >> _______________________________________________ >> baseband-devel mailing list >> baseband-devel at lists.osmocom.org >> https://lists.osmocom.org/mailman/listinfo/baseband-devel >> > > > > -- > Ravi Sharan B A G. -- Ravi Sharan B A G. From radiarisainanasitraka at yahoo.fr Wed Mar 11 11:14:57 2015 From: radiarisainanasitraka at yahoo.fr (Radiarisainana Sitraka) Date: Wed, 11 Mar 2015 11:14:57 +0000 (UTC) Subject: OS-Hardward Osmocom Message-ID: <1410680172.555132.1426072497137.JavaMail.yahoo@mail.yahoo.com> ? what the best os to us osmocom?Can we run Osmocom? with 3G modem Huawei E3131A -------------- next part -------------- An HTML attachment was scrubbed... URL: From radiarisainanasitraka at yahoo.fr Wed Mar 11 11:18:19 2015 From: radiarisainanasitraka at yahoo.fr (Radiarisainana Sitraka) Date: Wed, 11 Mar 2015 11:18:19 +0000 (UTC) Subject: Osmocom Project Message-ID: <1246217525.4251306.1426072699597.JavaMail.yahoo@mail.yahoo.com> What is the best OS to install Osmocom?The Modem 3g Huawei E3131A can be used by OsmocomBB ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From apchy_ll at 126.com Mon Mar 16 17:23:48 2015 From: apchy_ll at 126.com (apchy_ll) Date: Mon, 16 Mar 2015 10:23:48 -0700 (MST) Subject: Missing packet when sniffing by luca/gsmmap In-Reply-To: <1406623574009-4026613.post@n3.nabble.com> References: <1406623574009-4026613.post@n3.nabble.com> Message-ID: <1426526628097-4026713.post@n3.nabble.com> http://baseband-devel.722152.n3.nabble.com/Working-of-ccch-scan-and-capturing-the-SDCCH-td4025206.html -- View this message in context: http://baseband-devel.722152.n3.nabble.com/Missing-packet-when-sniffing-by-luca-gsmmap-tp4026613p4026713.html Sent from the baseband-devel mailing list archive at Nabble.com. From max.suraev at fairwaves.co Wed Mar 25 16:20:31 2015 From: max.suraev at fairwaves.co (Max) Date: Wed, 25 Mar 2015 17:20:31 +0100 Subject: [PATCH] Add A5/3-4 cipher support Message-ID: <1427300431-20371-1-git-send-email-max.suraev@fairwaves.co> Signed-off-by: Max --- include/osmocom/gsm/a5.h | 2 +- src/gsm/a5.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++-- tests/Makefile.am | 3 +- tests/a5/a5_test.c | 67 +++++++++++++++++++++++++++++++++++---------- tests/a5/a5_test.ok | 24 ++++++++++++++++ 5 files changed, 148 insertions(+), 19 deletions(-) diff --git a/include/osmocom/gsm/a5.h b/include/osmocom/gsm/a5.h index c076734..d22cdbb 100644 --- a/include/osmocom/gsm/a5.h +++ b/include/osmocom/gsm/a5.h @@ -48,7 +48,7 @@ osmo_a5_fn_count(uint32_t fn) } /* Notes: - * - key must be 8 bytes long (or NULL for A5/0) + * - key must be 8 or 16 (for a5/4) bytes long (or NULL for A5/0) * - the dl and ul pointer must be either NULL or 114 bits long * - fn is the _real_ GSM frame number. * (converted internally to fn_count) diff --git a/src/gsm/a5.c b/src/gsm/a5.c index 10a063e..d0c7c5f 100644 --- a/src/gsm/a5.c +++ b/src/gsm/a5.c @@ -36,23 +36,80 @@ #include #include +#include #include +#include /* Somme OS (like Nuttx) don't have ENOTSUP */ #ifndef ENOTSUP #define ENOTSUP EINVAL #endif +/* ------------------------------------------------------------------------ */ +/* A5/3&4 */ +/* ------------------------------------------------------------------------ */ + +/*! \brief Generate a GSM A5/4 cipher stream + * \param[in] key 16 byte array for the key (as received from the SIM) + * \param[in] fn Frame number + * \param[out] dl Pointer to array of ubits to return Downlink cipher stream + * \param[out] ul Pointer to array of ubits to return Uplink cipher stream + * \param[in] fn_correct true if fn is a real GSM frame number and thus requires internal conversion + * + * Either (or both) of dl/ul should be NULL if not needed. + * + * Implementation based on specifications from 3GPP TS 55.216, 3GPP TR 55.919 and ETSI TS 135 202 + * with slight simplifications (CE hardcoded to 0). + */ +void +_a5_4(const uint8_t *ck, uint32_t fn, ubit_t *dl, ubit_t *ul, bool fn_correct) +{ + uint8_t i, gamma[32], uplink[15]; + uint32_t fn_count = (fn_correct) ? osmo_a5_fn_count(fn) : fn; + + if (ul) { + _kasumi_kgcore(0xF, 0, fn_count, 0, ck, gamma, 228); + for(i = 0; i < 15; i++) uplink[i] = (gamma[i + 14] << 2) + (gamma[i + 15] >> 6); + osmo_pbit2ubit(ul, uplink, 114); + } + if (dl) { + _kasumi_kgcore(0xF, 0, fn_count, 0, ck, gamma, 114); + osmo_pbit2ubit(dl, gamma, 114); + } +} + +/*! \brief Generate a GSM A5/3 cipher stream + * \param[in] key 8 byte array for the key (as received from the SIM) + * \param[in] fn Frame number + * \param[out] dl Pointer to array of ubits to return Downlink cipher stream + * \param[out] ul Pointer to array of ubits to return Uplink cipher stream + * \param[in] fn_correct true if fn is a real GSM frame number and thus requires internal conversion + * + * Either (or both) of dl/ul should be NULL if not needed. + * + * Implementation based on specifications from 3GPP TS 55.216, 3GPP TR 55.919 and ETSI TS 135 202 + * with slight simplifications (CE hardcoded to 0). + */ +void +_a5_3(const uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul, bool fn_correct) +{ + uint8_t ck[16]; + memcpy(ck, key, 8); + memcpy(ck + 8, key, 8); + /* internal function require 128 bit key so we expand by concatenating supplied 64 bit key */ + _a5_4(ck, fn, dl, ul, fn_correct); +} + /*! \brief Main method to generate a A5/x cipher stream * \param[in] n Which A5/x method to use - * \param[in] key 8 byte array for the key (as received from the SIM) + * \param[in] key 8 or 16 (for a5/4) byte array for the key (as received from the SIM) * \param[in] fn Frame number * \param[out] dl Pointer to array of ubits to return Downlink cipher stream * \param[out] ul Pointer to array of ubits to return Uplink cipher stream * \returns 0 for success, -ENOTSUP for invalid cipher selection. * - * Currently A5/[0-2] are supported. + * Currently A5/[0-4] are supported. * Either (or both) of dl/ul can be NULL if not needed. */ int @@ -75,8 +132,16 @@ osmo_a5(int n, const uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul) osmo_a5_2(key, fn, dl, ul); break; + case 3: + _a5_3(key, fn, dl, ul, true); + break; + + case 4: + _a5_4(key, fn, dl, ul, true); + break; + default: - /* a5/[3..7] not supported here/yet */ + /* a5/[5..7] not supported here/yet */ return -ENOTSUP; } diff --git a/tests/Makefile.am b/tests/Makefile.am index 2c80063..809bf64 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -18,8 +18,9 @@ endif utils_utils_test_SOURCES = utils/utils_test.c utils_utils_test_LDADD = $(top_builddir)/src/libosmocore.la -a5_a5_test_SOURCES = a5/a5_test.c +a5_a5_test_SOURCES = a5/a5_test.c ../src/gsm/a5.c a5_a5_test_LDADD = $(top_builddir)/src/libosmocore.la $(top_builddir)/src/gsm/libosmogsm.la +a5_a5_test_LDFLAGS = -static kasumi_kasumi_test_SOURCES = kasumi/kasumi_test.c ../src/gsm/kasumi.c kasumi_kasumi_test_LDADD = $(top_builddir)/src/libosmocore.la $(top_builddir)/src/gsm/libosmogsm.la diff --git a/tests/a5/a5_test.c b/tests/a5/a5_test.c index 14436f1..0dbc6fb 100644 --- a/tests/a5/a5_test.c +++ b/tests/a5/a5_test.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include @@ -36,24 +37,48 @@ static const uint8_t ul[] = { 0x80, 0xba, 0xab, 0xc0, 0x59, 0x26, 0x40, }; -static const char * -binstr(ubit_t *d, int n) +static inline bool print_a5(int n, int k, const char * dir, const ubit_t * out, const char * block) { - static char str[256]; - int i; + uint8_t len = 114 / 8 + 1, buf[len], res[len]; + printf("A5/%d - %s: %s => ", n, dir, osmo_ubit_dump(out, 114)); + osmo_hexparse(block, res, len); + osmo_ubit2pbit(buf, out, 114); + if (0 != memcmp(buf, res, len)) { + printf("FAIL\nGOT: [%d] %s\nEXP: [%d] %s\n", k, osmo_hexdump_nospc(buf, len), k, osmo_hexdump_nospc(res, len)); + return false; + } + printf("OK\n"); + return true; +} + +static inline bool test_a53(const char * kc, uint32_t count, const char * block1, const char * block2) +{ + ubit_t dlout[114], ulout[114]; + uint8_t key[8]; + + osmo_hexparse(kc, key, 8); + _a5_3(key, count, dlout, NULL, false); + _a5_3(key, count, NULL, ulout, false); - for (i=0; i OK\n"); else { printf(" => BAD\n"); - printf(" Expected: %s", binstr(out, 114)); + printf(" Expected: %s", osmo_ubit_dump(out, 114)); fprintf(stderr, "[!] A5/%d DL failed", n); exit(1); } @@ -82,17 +107,31 @@ int main(int argc, char **argv) osmo_a5(n, key, fn, NULL, out); - printf("A5/%d - UL: %s", n, binstr(out, 114)); + printf("A5/%d - UL: %s", n, osmo_ubit_dump(out, 114)); if (!memcmp(exp, out, 114)) printf(" => OK\n"); else { printf(" => BAD\n"); - printf(" Expected: %s", binstr(out, 114)); + printf(" Expected: %s", osmo_ubit_dump(out, 114)); fprintf(stderr, "[!] A5/%d UL failed", n); exit(1); } } +// test vectors from 3GPP TS 55.217 and TS 55.218 + test_a53("2BD6459F82C5BC00", 0x24F20F, "889EEAAF9ED1BA1ABBD8436232E440", "5CA3406AA244CF69CF047AADA2DF40"); + test_a53("952C49104881FF48", 0x061272, "FB4D5FBCEE13A33389285686E9A5C0", "25090378E0540457C57E367662E440"); + test_a53("EFA8B2229E720C2A", 0x33FD3F, "0E4015755A336469C3DD8680E30340", "6F10669E2B4E18B042431A28E47F80"); + test_a53("952C49104881FF48", 0x061527, "AB7DB38A573A325DAA76E4CB800A40", "4C4B594FEA9D00FE8978B7B7BC1080"); + test_a53("3451F23A43BD2C87", 0x0E418C, "75F7C4C51560905DFBA05E46FB54C0", "192C95353CDF979E054186DF15BF00"); + test_a53("CAA2639BE82435CF", 0x2FF229, "301437E4D4D6565D4904C631606EC0", "F0A3B8795E264D3E1A82F684353DC0"); + test_a53("7AE67E87400B9FA6", 0x2F24E5, "F794290FEF643D2EA348A7796A2100", "CB6FA6C6B8A705AF9FEFE975818500"); + test_a53("58AF69935540698B", 0x05446B, "749CA4E6B691E5A598C461D5FE4740", "31C9E444CD04677ADAA8A082ADBC40"); + test_a53("017F81E5F236FE62", 0x156B26, "2A6976761E60CC4E8F9F52160276C0", "A544D8475F2C78C35614128F1179C0"); + test_a53("1ACA8B448B767B39", 0x0BC3B5, "A4F70DC5A2C9707F5FA1C60EB10640", "7780B597B328C1400B5C74823E8500"); + test_a54("3D43C388C9581E337FF1F97EB5C1F85E", 0x35D2CF, "A2FE3034B6B22CC4E33C7090BEC340", "170D7497432FF897B91BE8AECBA880"); + test_a54("A4496A64DF4F399F3B4506814A3E07A1", 0x212777, "89CDEE360DF9110281BCF57755A040", "33822C0C779598C9CBFC49183AF7C0"); + return 0; } diff --git a/tests/a5/a5_test.ok b/tests/a5/a5_test.ok index 4497e14..cefcdb6 100644 --- a/tests/a5/a5_test.ok +++ b/tests/a5/a5_test.ok @@ -4,3 +4,27 @@ A5/1 - DL: 110010111010001001010101011101100001011101011101001110110001110001111 A5/1 - UL: 110110010000001101011110000011110010101011101100000100111001101000000101110101001010100001111011101100010110010010 => OK A5/2 - DL: 010001011001110010001000110000111000001010110111111111111011001110011000110100101111100101101110000011110001010010 => OK A5/2 - UL: 111100000011101010101100110111101110001101011011010111100110010110000000101110101010101111000000010110010010011001 => OK +A5/3 - DL: 100010001001111011101010101011111001111011010001101110100001101010111011110110000100001101100010001100101110010001 => OK +A5/3 - UL: 010111001010001101000000011010101010001001000100110011110110100111001111000001000111101010101101101000101101111101 => OK +A5/3 - DL: 111110110100110101011111101111001110111000010011101000110011001110001001001010000101011010000110111010011010010111 => OK +A5/3 - UL: 001001010000100100000011011110001110000001010100000001000101011111000101011111100011011001110110011000101110010001 => OK +A5/3 - DL: 000011100100000000010101011101010101101000110011011001000110100111000011110111011000011010000000111000110000001101 => OK +A5/3 - UL: 011011110001000001100110100111100010101101001110000110001011000001000010010000110001101000101000111001000111111110 => OK +A5/3 - DL: 101010110111110110110011100010100101011100111010001100100101110110101010011101101110010011001011100000000000101001 => OK +A5/3 - UL: 010011000100101101011001010011111110101010011101000000001111111010001001011110001011011110110111101111000001000010 => OK +A5/3 - DL: 011101011111011111000100110001010001010101100000100100000101110111111011101000000101111001000110111110110101010011 => OK +A5/3 - UL: 000110010010110010010101001101010011110011011111100101111001111000000101010000011000011011011111000101011011111100 => OK +A5/3 - DL: 001100000001010000110111111001001101010011010110010101100101110101001001000001001100011000110001011000000110111011 => OK +A5/3 - UL: 111100001010001110111000011110010101111000100110010011010011111000011010100000101111011010000100001101010011110111 => OK +A5/3 - DL: 111101111001010000101001000011111110111101100100001111010010111010100011010010001010011101111001011010100010000100 => OK +A5/3 - UL: 110010110110111110100110110001101011100010100111000001011010111110011111111011111110100101110101100000011000010100 => OK +A5/3 - DL: 011101001001110010100100111001101011011010010001111001011010010110011000110001000110000111010101111111100100011101 => OK +A5/3 - UL: 001100011100100111100100010001001100110100000100011001110111101011011010101010001010000010000010101011011011110001 => OK +A5/3 - DL: 001010100110100101110110011101100001111001100000110011000100111010001111100111110101001000010110000000100111011011 => OK +A5/3 - UL: 101001010100010011011000010001110101111100101100011110001100001101010110000101000001001010001111000100010111100111 => OK +A5/3 - DL: 101001001111011100001101110001011010001011001001011100000111111101011111101000011100011000001110101100010000011001 => OK +A5/3 - UL: 011101111000000010110101100101111011001100101000110000010100000000001011010111000111010010000010001111101000010100 => OK +A5/4 - DL: 101000101111111000110000001101001011011010110010001011001100010011100011001111000111000010010000101111101100001101 => OK +A5/4 - UL: 000101110000110101110100100101110100001100101111111110001001011110111001000110111110100010101110110010111010100010 => OK +A5/4 - DL: 100010011100110111101110001101100000110111111001000100010000001010000001101111001111010101110111010101011010000001 => OK +A5/4 - UL: 001100111000001000101100000011000111011110010101100110001100100111001011111111000100100100011000001110101111011111 => OK -- 2.1.0 From max.suraev at fairwaves.co Wed Mar 25 17:06:01 2015 From: max.suraev at fairwaves.co (Max) Date: Wed, 25 Mar 2015 18:06:01 +0100 Subject: [PATCH] Fix lintian-reported errors Message-ID: <1427303161-6552-1-git-send-email-max.suraev@fairwaves.co> Signed-off-by: Max --- debian/README.source | 1 + debian/control | 17 ++++++++++++++--- debian/copyright | 15 ++------------- 3 files changed, 17 insertions(+), 16 deletions(-) create mode 100644 debian/README.source diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..982a696 --- /dev/null +++ b/debian/README.source @@ -0,0 +1 @@ +We do some Debian-specific source patching magic. See debian/patches for clarification. diff --git a/debian/control b/debian/control index 7de6358..1470e73 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: libosmocore Section: libs Priority: optional Maintainer: Harald Welte -Build-Depends: debhelper (>= 9), autotools-dev, autoconf, automake, libtool, dh-autoreconf, libdpkg-perl, git, doxygen, libpcsclite-dev, pkg-config +Build-Depends: debhelper (>= 9), autotools-dev, autoconf, automake, libtool, dh-autoreconf, libdpkg-perl, git, doxygen, libpcsclite-dev, pkg-config, quilt Standards-Version: 3.9.6 Homepage: http://bb.osmocom.org/trac/wiki/libosmocore Vcs-Git: git://git.osmocom.org/libosmocore.git @@ -14,6 +14,7 @@ Architecture: any Depends: libosmocodec0, libosmocore6, libosmogb3, libosmogsm5, libosmovty1, ${misc:Depends} Multi-Arch: foreign Description: Open Source MObile COMmunications CORE library + Metapackage for Open Source MObile COMmunications CORE library. Package: libosmocodec0 Section: libs @@ -21,6 +22,7 @@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Multi-Arch: same Description: Osmo codec library + Open Source MObile COMmunications codec library. Package: libosmocore6 Section: libs @@ -28,6 +30,7 @@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Multi-Arch: same Description: Osmo Core library + Open Source MObile COMmunications CORE library. Package: libosmogb3 Section: libs @@ -35,6 +38,7 @@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Multi-Arch: same Description: Osmo GPRS GB library + Open Source MObile COMmunications library containing GPRS support functions. Package: libosmogsm5 Section: libs @@ -42,6 +46,7 @@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Multi-Arch: same Description: Osmo GSM utility library + Open Source MObile COMmunications library implementing various GSM routines. Package: libosmovty1 Section: libs @@ -49,6 +54,7 @@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Multi-Arch: same Description: Osmo VTY library + Open Source MObile COMmunications library implementing VTY interface. Package: libosmoctrl0 Section: libs @@ -56,6 +62,7 @@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Multi-Arch: same Description: Osmo control library + Open Source MObile COMmunications control library. Package: libosmosim0 Section: libs @@ -63,19 +70,22 @@ Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Multi-Arch: same Description: Osmo SIM library - + Open Source MObile COMmunications SIM library. + Package: libosmocore-dev Section: libdevel Architecture: any -Depends: ${misc:Depends}, libosmocore +Depends: ${misc:Depends}, libosmocore, libjs-jquery Multi-Arch: same Description: Development headers for Open Source MObile COMmunications CORE library + Open Source MObile COMmunications library development files. Package: libosmocore-utils Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libosmocore Multi-Arch: same Description: Utilities for gsm + Open Source MObile COMmunications library utilities. Package: libosmocore-dbg Architecture: any @@ -84,3 +94,4 @@ Priority: extra Depends: libosmocore (= ${binary:Version}), ${misc:Depends} Multi-Arch: same Description: Debug symbols for Open Source MObile COMmunications CORE library + Debug version of Open Source MObile COMmunications CORE library. diff --git a/debian/copyright b/debian/copyright index c450be5..c2bfe66 100644 --- a/debian/copyright +++ b/debian/copyright @@ -6,7 +6,7 @@ It was downloaded from: git://git.osmocom.org/libosmocore.git -Upstream Author(s): +Upstream Authors: Harald Welte Holger Hans Peter Freyther @@ -36,19 +36,8 @@ Copyright: License: GNU General Public License, Version 2 or later + see "/usr/share/common-licenses/GPL-2" The Debian packaging is: Copyright (C) 2010 Harald Welte - -# Please chose a license for your packaging work. If the program you package -# uses a mainstream license, using the same license is the safest choice. -# Please avoid to pick license terms that are more restrictive than the -# packaged work, as it may make Debian's contributions unacceptable upstream. -# If you just want it to be GPL version 3, leave the following lines in. - -and is licensed under the GPL version 3, -see "/usr/share/common-licenses/GPL-3". - -# Please also look if there are files or directories which have a -# different copyright/license attached and list them here. -- 2.1.0 From Max.Suraev at fairwaves.co Wed Mar 25 17:11:05 2015 From: Max.Suraev at fairwaves.co (=?UTF-8?B?4piO?=) Date: Wed, 25 Mar 2015 18:11:05 +0100 Subject: [PATCH] Add A5/3-4 cipher support In-Reply-To: <1427300431-20371-1-git-send-email-max.suraev@fairwaves.co> References: <1427300431-20371-1-git-send-email-max.suraev@fairwaves.co> Message-ID: <5512EC29.3010900@fairwaves.co> Previous patch http://patchwork.ozlabs.org/patch/360531/ bitrot - ported to latest master and hope to get some feedback. -- best regards, Max, http://fairwaves.co From Max.Suraev at fairwaves.co Wed Mar 25 17:08:40 2015 From: Max.Suraev at fairwaves.co (=?UTF-8?B?4piO?=) Date: Wed, 25 Mar 2015 18:08:40 +0100 Subject: [PATCH] Fix lintian-reported errors In-Reply-To: <1427303161-6552-1-git-send-email-max.suraev@fairwaves.co> References: <1427303161-6552-1-git-send-email-max.suraev@fairwaves.co> Message-ID: <5512EB98.2070505@fairwaves.co> Parts of the previous patch http://patchwork.ozlabs.org/patch/367967/ were incorporated already. Adjusted the rest - hopefully it will be pulled-in as well. cheers, Max. From holger at freyther.de Wed Mar 25 23:44:23 2015 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Thu, 26 Mar 2015 00:44:23 +0100 Subject: [PATCH] Fix lintian-reported errors In-Reply-To: <1427303161-6552-1-git-send-email-max.suraev@fairwaves.co> References: <1427303161-6552-1-git-send-email-max.suraev@fairwaves.co> Message-ID: <20150325234423.GO540@xiaoyu.lan> On Wed, Mar 25, 2015 at 06:06:01PM +0100, Max wrote: > -Build-Depends: debhelper (>= 9), autotools-dev, autoconf, automake, libtool, dh-autoreconf, libdpkg-perl, git, doxygen, libpcsclite-dev, pkg-config > +Build-Depends: debhelper (>= 9), autotools-dev, autoconf, automake, libtool, dh-autoreconf, libdpkg-perl, git, doxygen, libpcsclite-dev, pkg-config, quilt yes. > Description: Open Source MObile COMmunications CORE library > + Metapackage for Open Source MObile COMmunications CORE library. Well, this description is not up to standard of Debian. So we simply fix a warning for the sake of fixing the warning. Is this really an improvement? > +Upstream Authors: sure. > GNU General Public License, Version 2 or later > + see "/usr/share/common-licenses/GPL-2" no idea. > The Debian packaging is: > > Copyright (C) 2010 Harald Welte > - > -# Please chose a license for your packaging work. If the program you package > -# uses a mainstream license, using the same license is the safest choice. > -# Please avoid to pick license terms that are more restrictive than the > -# packaged work, as it may make Debian's contributions unacceptable upstream. > -# If you just want it to be GPL version 3, leave the following lines in. > - > -and is licensed under the GPL version 3, > -see "/usr/share/common-licenses/GPL-3". > - > -# Please also look if there are files or directories which have a > -# different copyright/license attached and list them here. The copyright file is not up to standards with debian. We silent the warning without doing the work needed for a debian package. Can we do it properly? holger From Max.Suraev at fairwaves.co Sun Mar 29 10:24:37 2015 From: Max.Suraev at fairwaves.co (=?UTF-8?B?4piO?=) Date: Sun, 29 Mar 2015 12:24:37 +0200 Subject: patches4review Message-ID: <5517D2E5.5060601@fairwaves.co> Hi. As a follow-up on today's discussion here are the links to patches I'd like to get reviewed and merged: gprs-related: http://patchwork.ozlabs.org/patch/360414/ http://patchwork.ozlabs.org/patch/360435/ http://patchwork.ozlabs.org/patch/368252/ api cleanup: http://patchwork.ozlabs.org/patch/360430/ http://patchwork.ozlabs.org/patch/360431/ Also, would be nice to get patchwork subscribed back to ML. -- best regards, Max, http://fairwaves.co