summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* GSM 08.08: Fix generation of CIPHER MODE REJECTHarald Welte2011-07-121-1/+1
| | | | | The message has a total length of 4 octets, so don't allocate only 3 in the msgb.
* gsm 08.08: add value_strings and gsm0808_msg_name() functionHarald Welte2011-07-112-0/+89
|
* fix against corrupted output in parallel loggingHarald Welte2011-07-021-1/+1
| | | | | | | | | In 825607672215b7a12ea6e201a89cd5209f6d657f it was attempted to fix a bug previously introduced by logging related changes. The problem is that a va_list can be corrupted after it has been used once, so we need to va_copy before each successive use. And if we copy it, we also need to use the copy, and not the original ;)
* lapdm: make sure we flush all queues whenever entering IDLE stateHarald Welte2011-06-291-0/+11
| | | | | this fixes a memory leak where the final UA would always remain in memory after a LAPDm entity has been disconnected.
* add msgb_set_talloc_ctx() to set the talloc context for msgb allocationsHarald Welte2011-06-292-0/+7
|
* make sure abis_nm <-> osmocom pchan type conversion always worksHarald Welte2011-06-291-0/+2
|
* LAPDm: Uplink SACCH frames use format B, not format B4Harald Welte2011-06-291-5/+12
|
* LAPDm: When Rx DATA from L1, L1 does not know the SAPIHarald Welte2011-06-271-13/+14
| | | | We have to determine the SAPI ourselves inside the LAPDm header.
* Fix the generation of the log_categories string + LAPDMHarald Welte2011-06-271-4/+7
| | | | | | | | ... I should do more testing :( Conflicts: src/logging.c
* logging: make sure to add the internal categories, as intendedHarald Welte2011-06-271-0/+6
|
* add LAPDm code from osmocom-bb into libosmocoreHarald Welte2011-06-276-3/+2707
|
* logging: introduce library-internal logging categoriesHarald Welte2011-06-273-27/+104
| | | | | | | | | | We do this by using a trick: library-internal log categories use negative subsystem numbers, which are converted into positive array indexes at the time of logging. library-internal log categories need to be knwo at compile-time, while application-specified categories now are of unlimited number, as they are dynamically allocated.
* import gsm0502_calc_paging_group() from openbscHarald Welte2011-06-264-1/+48
|
* add some utility functions for paging related calculation (TS 05.02)Harald Welte2011-06-263-8/+43
|
* add gsm48_number_of_paging_subchannels() functionHarald Welte2011-06-262-0/+15
| | | | (from openbsc's rsl_number_of_paging_subchannels)
* add MAX() macro as OSMO_MAXHarald Welte2011-06-261-0/+1
|
* merge process.[ch] with application.[ch]Harald Welte2011-06-266-80/+67
|
* gsm/utils: Adding conversion of "mobile power class" to dBmAndreas Eversberg2011-06-262-0/+43
| | | | | Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* sysinfo: add EXTENDED MEASUREMENT ORDER / MEASUREMENT INFO to SI typesHarald Welte2011-06-252-0/+8
| | | | | those two are used in the RSL SACCH FILLING messages and delivered like SI5 / SI6.
* RSL: Fix typoHarald Welte2011-06-251-1/+1
|
* add value_string definitions for RSL message typesHarald Welte2011-06-232-0/+77
|
* introduce GSM primitive definitionsHarald Welte2011-06-233-1/+32
| | | | | The idea here is to use the osmocom core primitive code ot abstract out primitives for inter-layer comunication in GSM.
* add new 'prim.h' header file for primitivesHarald Welte2011-06-232-1/+21
|
* socket: add OSMO_SOCK_F_[CONNECT|BIND|NON_BLOCK] flagsPablo Neira Ayuso2011-06-133-15/+40
| | | | | | | | This extends the socket infrastructure in libosmocore to allow to create non-blocking sockets. Basically, it replaces the connect0_bind1 parameter by one flags parameter.
* Merge branch 'master' of git.osmocom.org:libosmocorePablo Neira Ayuso2011-06-136-7/+12
|\
| * add missing #include file to sysinfo.hHarald Welte2011-06-051-0/+1
| | | | | | | | (otherwise 'struct value_string' would not be defined)
| * abis_nm.h: Add include to gsm_utils.hHarald Welte2011-06-051-0/+1
| |
| * socket: getaddrinfo(): set AI_PASSIVE if we want to bindHarald Welte2011-05-311-0/+3
| | | | | | | | This will tell getaddrinfo() that we want a INADDR_ANY style socket
| * abis_nm: Forward declare the used enumsHolger Hans Peter Freyther2011-05-311-0/+3
| | | | | | | | | | This file is using enums in that might or might not be known to the compiler. Forward declare them.
| * gsmtap_util: Remove msg_free from the wq call backSylvain Munaut2011-05-291-3/+0
| | | | | | | | | | | | write_queue already frees the message after the callback is called. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
| * gsm/sysinfo: Fix rsl2sitype array sizeSylvain Munaut2011-05-291-1/+1
| | | | | | | | | | | | 0xff is the maximum value ... so there is 256 elements. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
| * gsm/sysinfo: don't include netinet/in.hHarald Welte2011-05-291-1/+0
| |
| * bitvec: add missing stdint.hHarald Welte2011-05-291-0/+1
| |
| * socket: remove unused IPv4 related header includesHarald Welte2011-05-291-2/+0
| |
| * socket: Skip ifa's without ifa->ifa_addrHarald Welte2011-05-241-0/+2
| | | | | | | | Apparently getifaddrs() returns ifa's without an ifa_addr set.
* | Merge branch 'master' of git.osmocom.org:libosmocorePablo Neira Ayuso2011-05-249-19/+245
|\|
| * Import abis_nm_{chcomb4pchan,pchan4chcomb}() from openbscHarald Welte2011-05-243-0/+60
| |
| * libosmocore: rename configure.in -> configure.acAlexander Huemer2011-05-241-0/+0
| | | | | | | | | | rename autoconf input file to align with osmocom-bb host applications, and because that suffix is preferred nowadays.
| * libosmocore: add missing AC_LANG_SOURCE for current autoconfAlexander Huemer2011-05-241-1/+1
| | | | | | | | | | | | autoconf >=2.68 demands the body of an AC_COMPILE_IFELSE to be wrapped in an AC_LANG_SOURCE macro, otherwise outputs annoying warnings on the invocation of `autoreconf -i`. this patch follows that demand.
| * Import sytem information related definitions + code from openbscHarald Welte2011-05-245-2/+177
| |
| * abis_nm: Mark the structs as extern to avoid compiler warningHolger Hans Peter Freyther2011-05-231-2/+2
| | | | | | | | warning: array ‘abis_nm_obj_class_names’ assumed to have one element
| * abis_nm: remove abis_nm_obj_class_name / abis_nm_adm_state_nameHarald Welte2011-05-232-16/+7
| | | | | | | | | | | | | | | | and export the underlying raw value_string arrays instead: abis_nm_obj_class_names / abis_nm_adm_state_names. This permits the caller to use get_string_value() as well as get_value_string().
| * rename abis_nm_adm_name() to abis_nm_adm_state_name()Harald Welte2011-05-232-2/+2
| |
* | Merge branch 'master' of git.osmocom.org:libosmocorePablo Neira Ayuso2011-05-2314-107/+891
|\|
| * abis_nm: import definitions and common code on A-bis OML from OpenBSCHarald Welte2011-05-224-2/+432
| |
| * libosmogsm: add ipaccess related header fileHarald Welte2011-05-222-1/+94
| |
| * socket: use listen() and SO_REUSEADDR, new osmo_sock_init_ofd() functionHarald Welte2011-05-222-1/+37
| | | | | | | | | | | | osmo_sock_init_ofd() is a wrapper around osmo_sock_init() which will take care of initializing and registering a 'struct osmo_fd' for the newly-created socket.
| * remove debug printf from socket.cHarald Welte2011-05-221-1/+0
| |
| * gsmtap: deal with apps that call gsmtap_send*() with NULL gsmtap_instHarald Welte2011-05-221-0/+6
| |
| * vty: print actual application name rather than always OpenBSC on connectHarald Welte2011-05-221-3/+9
| |