aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-09-17contrib: Enable -Werror by defaultPau Espin Pedrol1-1/+1
Change-Id: I2a88cdcbf76ea28a30e82836030f894c2152d5ed
2017-09-15Fix Out of bounds compilation warning in OCTET8Pau Espin Pedrol8-11/+8
The code in OCTET8 implementation assumes the len is placed inside the byte preceding the memory buffer, which is true for the defined cases. However, it creates a compilation warning. Better pass the value directly from the struct field rather than playing addr games. this way we also assert we require to explicitly pass the len. Fixes lots of warning like the one below: /home/pespin/dev/sysmocom/bin/../git/libsmpp34/src/smpp34_unpack.c: In function ‘smpp34_u npack’: /home/pespin/dev/sysmocom/bin/../git/libsmpp34/src/smpp34_unpack.c:147:14: warning: array subscript is above array bounds [-Warray-bounds] lenval = *((inst par) - 1);\ ^~~~~~~~~~~~~~~~~ /home/pespin/dev/sysmocom/bin/../git/libsmpp34/def_frame/submit_sm.frame:18:2: note: in e xpansion of macro ‘OCTET8’ OCTET8( instancia, short_message, 254 ); ^~~~~~ Change-Id: Id110f4e977c3becdb44cf5492c372e530ea51551
2017-09-15bind_receiver_resp_test.c: Fix compilation warningPau Espin Pedrol1-1/+1
/home/pespin/dev/sysmocom/bin/../git/libsmpp34/test_pdu/bind_receiver_resp_test.c: In function ‘main’: /home/pespin/dev/sysmocom/bin/../git/libsmpp34/test_pdu/bind_receiver_resp_test.c:55:58: warning: ‘snprintf’ output truncated before the last format character [-Wformat-truncation=] snprintf((char*)b.system_id, sizeof(b.system_id), "%s", "1234567890123456"); ^ /home/pespin/dev/sysmocom/bin/../git/libsmpp34/test_pdu/bind_receiver_resp_test.c:55:5: note: ‘snprintf’ output 17 bytes into a destination of size 16 snprintf((char*)b.system_id, sizeof(b.system_id), "%s", "1234567890123456"); Change-Id: I4ec682a5e2ee4d02008a9c86a0a5507792667d0e
2017-09-15smpp34_unpack.c: remove unused variablePau Espin Pedrol1-2/+0
Fixes compilation warning below: /home/pespin/dev/sysmocom/bin/../git/libsmpp34/src/smpp34_unpack.c: In function ‘smpp34_unpack’: /home/pespin/dev/sysmocom/bin/../git/libsmpp34/src/smpp34_unpack.c:232:18: warning: variable ‘l’ set but not used [ -Wunused-but-set-variable] uint32_t l; Change-Id: I75baa65b575deec1cc040490f2e76ebb54e46ca7
2017-09-15smpp34_structs.h: Fix truncated output in str_tlv_idPau Espin Pedrol1-1/+1
Fixes compilation warning below: %s’ directive output may be truncated writing between 8 and 33 bytes into a regio n of size 30 [-Wformat-truncation=] snprintf(buff, SMALL_BUFF, "%s", ^~ /home/pespin/dev/sysmocom/bin/../git/libsmpp34/src/smpp34_params.c:136:5: note: ‘ snprintf’ output between 9 and 34 bytes into a destination of size 30 snprintf(buff, SMALL_BUFF, "%s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #define OPERACION( p_tlv_id ) (tlv_id == p_tlv_id)?#p_tlv_id: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #include "def_list/tlv_id.list" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Reserved" ~~~~~~~~~~ #undef OPERACION ~~~~~~~~~~~~~~~~ ); Change-Id: Ie2ba6182eb0cdd98cadb8317aef49141244aa92d
2017-09-15smpp34_structs.h: Fix trailing whitespacePau Espin Pedrol1-39/+39
Change-Id: I5838e216fe16b4789bb1a0ce40ce496f46a3c328
2017-09-15smpp34_dumpBuf.c: remove unused variablePau Espin Pedrol1-2/+0
Fixes compilation warning below: smpp34_dumpBuf.c:52:9: warning: variable ‘lefterror’ set but not used [-Wunused-but-set-variable] int lefterror = 0; Change-Id: Iea8ff80d3e4d16aaca6e37d64593b50fa27c8cfb
2017-08-28Use release helper from libosmocoreMax4-1/+16
See https://osmocom.org/projects/cellular-infrastructure/wiki/Make_a_new_release for details. Change-Id: Ief2b4d0400b142e84e7ce005a6da5c880c78a8f5 Related: OS#1861
2017-08-14prepare for 1.12 release1.12.01.12Harald Welte1-2/+9
Change-Id: If21d2456dd8ebf4bcea0592a841741269b33a308
2017-08-14update .gitignoreHarald Welte1-0/+7
Change-Id: Ie294cb355a6618295e9864358413052837c35a03
2017-08-14Use osmocom-style versioning in Makefile, configure, debian/rulesHarald Welte4-1/+166
We have a particular method of generating package version information in the Osmocom project, based on a 'git-version-gen' script that looks up the latest git tag and generates a version from that. This version is then used in pkgconfig, etc. Change-Id: I1e6ed7af7107f8a74010721acd34f92a3237a7a1
2017-08-14add delivery receipt definitionsPablo Neira Ayuso1-0/+4
The registered_delivery field in SMPP message is a toggle on/off, this patch adds two new definition so we don't have to use magic numbers from the code. Change-Id: I5b3afff1b3b77cccd949e0606914c7ac3ba6114c
2017-08-11add esm_class definitionsPablo Neira Ayuso1-0/+8
Add special message attributes definitions that are associated with the short message. Thus, we can get rid of magic numbers in our codebase. Change-Id: I91afd8b462b8fd3b2c4c5b54f4eeb7ec5b730b65
2017-08-11add smpp34_tlv_for_each() helperPablo Neira Ayuso1-0/+3
So we don't need to remember this is an opencoded list of TLVs. Change-Id: I446929feed049d0411e1629ca263e2bc41f714cc
2017-03-17README.md: Make sure all hyperlinks use <>Harald Welte1-7/+7
Change-Id: Iebc3f9b60004b4c17f0a35b90c2b226a8f357a10
2017-03-16Actually fill the README file with contents (and markdown syntax)Harald Welte4-2/+65
Change-Id: I2343b2fd45d00935c0e27c84e8b55c39765d51f8
2016-12-21Integrate Debian packaging changesMax6-22/+72
debian/control: * restructure to make it easier to incorporate further changes * update package descriptions * update project URL debian/rules: * use proper hardening syntax * remove useless comment debian/compat: update compatibility version debian/*.install: fix paths debian/copyright: add file matching Debian format Change-Id: I50b54d7d89f7c7ed3e5a10fbf734d967090f30c7 Related: OS#1694
2016-12-21Add gerrit settingsMax1-0/+3
Make it simple to setup and use this repo with 'git review' command. Change-Id: Ic97dda1950689ed86dcf01a49a0894aedaf57bab
2016-10-01configure: check for pkg-config presenceNeels Hofmeyr1-0/+7
Change-Id: I6251b2a8e76e5850a346d88fd3c02435b0b445ad
2016-07-06gitignore: ignore all build artifacts3G_2016_09Neels Hofmeyr1-0/+7
Change-Id: Ie253062060da2ebf22f1aaf99090c0f144fde52e
2016-05-25Fix various typos in log messagesRuben Undheim4-19/+19
Change-Id: If52a8546b09ac14c00e6323984eda6d88a558830 Reviewed-on: https://gerrit.osmocom.org/115 Reviewed-by: Neels Hofmeyr <nhofmeyr@sysmocom.de> Tested-by: Jenkins Builder
2016-05-25debian: Make upgrading from debian SID easierHolger Hans Peter Freyther1-1/+7
Make sure the version number of this sourcepackage is higher than the one found in Debian SID. Change-Id: I77126b0b9a8dbc4dcdc02a5a3b4718129b308930 Reviewed-on: https://gerrit.osmocom.org/112 Tested-by: Jenkins Builder Reviewed-by: Holger Freyther <holger@freyther.de>
2016-04-13jenkins: Add the build script from jenkins hereHolger Hans Peter Freyther1-0/+9
This can be used to replicate a build issue more easily.
2014-10-01test: Be able to bind to a local source/portHolger Hans Peter Freyther2-3/+20
Modify the code to show how to configure it.
2014-09-25libsmpp: Fix src != build directory build needed for dizzyHolger Hans Peter Freyther1-1/+1
2013-09-24debian: Add depedency between packagesHolger Hans Peter Freyther2-1/+7
2013-09-24debian: Add a packageHolger Hans Peter Freyther7-0/+63
2013-09-24Rename binary to binaries to fix building a debian packageHolger Hans Peter Freyther3-3/+3
dh will execute the binary rule and this will not do anything as a directory with that name already exists..
2013-09-09misc: Fix compilation on FreeBSD of the exampleHolger Hans Peter Freyther1-2/+4
Include netinet/in.h and check for FreeBSD for the gethostbyname_r usage.
2013-09-05const: Make the data parameter for unpack constHolger Hans Peter Freyther2-6/+6
2012-12-18build test_apps only if libxml2 is availableHarald Welte1-0/+5
2012-12-18binary/Makefile.am: library is in builddir, not srcdirHarald Welte1-1/+1
this will fix out-of-tree builds
2012-12-18add test_apps/Makefile to configure.acHarald Welte1-0/+1
2012-11-09misc: Always include stdint.h as it is almost 2013 nowHolger Hans Peter Freyther36-73/+1
C99 is there for over a decode, always depend on the stdint header being present, specially as the code is using uint32_t all over the place.
2012-11-09misc: Use stdlib.h instead of malloc.h to make it compile on FreeBSDHolger Hans Peter Freyther7-7/+7
/usr/include/malloc.h:3:2: error: #error "<malloc.h> has been replaced by <stdlib.h>"
2012-11-09auto-foo: Build test apps with libxml2 only if it is availableHarald Welte3-9/+13
And disable the smsc build as it depends on libosmocore
2012-11-09add missing C files for running a small SMSC-side SMPP implementationHarald Welte3-0/+680
2012-11-08don't install all the test programs to the system!Harald Welte3-9/+6
2012-11-08add .gitignoreHarald Welte1-0/+6
2012-11-08add pkg-config supportHarald Welte5-2/+20
2012-11-08delete auto-generated filesHarald Welte15-39076/+0
2012-11-07initial import of libsmpp34-1.101.10Harald Welte121-0/+45425