osmocom-bb.git
14 years agoremove references to u_int*_t and use uint*_t instead
Harald Welte [Fri, 9 Apr 2010 05:57:40 +0000 (07:57 +0200)]
remove references to u_int*_t and use uint*_t instead

14 years agogsm48: introduce MM_CONNECTION_PEND state
Andreas Eversberg [Fri, 9 Apr 2010 05:52:12 +0000 (07:52 +0200)]
gsm48: introduce MM_CONNECTION_PEND state

14 years agogsm48-ie.c: Fix year in copyright message
Harald Welte [Fri, 9 Apr 2010 05:50:18 +0000 (07:50 +0200)]
gsm48-ie.c: Fix year in copyright message

14 years agowrite_queue: Add callback for exceptions as well.
Holger Hans Peter Freyther [Thu, 8 Apr 2010 08:58:20 +0000 (10:58 +0200)]
write_queue: Add callback for exceptions as well.

14 years agoimport gsm48_mi_to_string() from OpenBSC
Harald Welte [Sun, 28 Mar 2010 10:14:50 +0000 (18:14 +0800)]
import gsm48_mi_to_string() from OpenBSC

14 years agologging: only compile stderr target if we actualy have stderr
Harald Welte [Fri, 26 Mar 2010 16:04:40 +0000 (00:04 +0800)]
logging: only compile stderr target if we actualy have stderr

14 years agoonly include strings.h if it is actually preent
Harald Welte [Fri, 26 Mar 2010 15:51:31 +0000 (23:51 +0800)]
only include strings.h if it is actually preent

14 years agologging: fix default initialization of per-category loglevels
Harald Welte [Fri, 26 Mar 2010 14:04:03 +0000 (22:04 +0800)]
logging: fix default initialization of per-category loglevels

Before this patch, there was a bug in the code caused by a memcpy
from one data structure to another. unfortuantely the data structures
were not the same, so we have to explicitly iterate over the array
and assign the structure members manually.

14 years agorename 'debug' interface to 'logging' interface
Harald Welte [Fri, 26 Mar 2010 13:24:24 +0000 (21:24 +0800)]
rename 'debug' interface to 'logging' interface

It's not really about debugging, but about generic logging...

14 years agodebug: remove unneeded 'number' member of 'struct debug_info_cat'
Harald Welte [Fri, 26 Mar 2010 13:05:43 +0000 (21:05 +0800)]
debug: remove unneeded 'number' member of 'struct debug_info_cat'

As the debug subsystem number is used as index into the debug_info_cat
array, there is no need to store the number explicitly inside the
structure again.

14 years agodebug.c: fix no-color-printing in case .color = NULL
Harald Welte [Fri, 26 Mar 2010 01:45:03 +0000 (09:45 +0800)]
debug.c: fix no-color-printing in case .color = NULL

14 years agoImport 'debug' support from OpenBSC into libosmocore
Harald Welte [Fri, 26 Mar 2010 01:33:40 +0000 (09:33 +0800)]
Import 'debug' support from OpenBSC into libosmocore

14 years agowrite_queue: Add a method to clear the queue.
Holger Hans Peter Freyther [Fri, 26 Mar 2010 08:20:22 +0000 (09:20 +0100)]
write_queue: Add a method to clear the queue.

14 years agoreplace rsl_rlm_cause_strs with rsl_rlm_cause_name()
Harald Welte [Thu, 25 Mar 2010 04:11:38 +0000 (12:11 +0800)]
replace rsl_rlm_cause_strs with rsl_rlm_cause_name()

14 years agoreplace gsm48_cc_msg_names[] with gsm48_cc_msg_name()
Harald Welte [Thu, 25 Mar 2010 04:00:54 +0000 (12:00 +0800)]
replace gsm48_cc_msg_names[] with gsm48_cc_msg_name()

and implement the backend using value_string

14 years agouse more value_string in gsm48 and rsl
Harald Welte [Thu, 25 Mar 2010 03:44:57 +0000 (11:44 +0800)]
use more value_string in gsm48 and rsl

14 years agoget_value_string(): return "unknown 0x..." instead of "unknown"
Harald Welte [Thu, 25 Mar 2010 03:37:04 +0000 (11:37 +0800)]
get_value_string(): return "unknown 0x..." instead of "unknown"

14 years agoCreate a dummy m4 directory to make autoreconf --install --force work
Holger Hans Peter Freyther [Wed, 24 Mar 2010 01:55:33 +0000 (02:55 +0100)]
Create a dummy m4 directory to make autoreconf --install --force work

Even when removing AC_CONFIG_MACRO_DIR aclocal insisted that it
needs to have a m4 directory. Make it happy by providing one. As git
is not tracking directories I needed to add a dummy file.

14 years agoadd git-version-gen magic to automatically generate package version
Harald Welte [Mon, 22 Mar 2010 16:30:19 +0000 (00:30 +0800)]
add git-version-gen magic to automatically generate package version

14 years agobump version to 0.1.0
Harald Welte [Mon, 22 Mar 2010 16:23:23 +0000 (00:23 +0800)]
bump version to 0.1.0

14 years agoosmocore: Add a direct l4h to the union of l4h pointers
Holger Hans Peter Freyther [Mon, 22 Mar 2010 02:11:10 +0000 (03:11 +0100)]
osmocore: Add a direct l4h to the union of l4h pointers

This is needed for the BSSAP code of the On Waves/BSC master branch

14 years agofix compiler warnings (itsme <itsme@xs4all.nl>)
Harald Welte [Mon, 22 Mar 2010 00:28:44 +0000 (08:28 +0800)]
fix compiler warnings (itsme <itsme@xs4all.nl>)

 * added several 'const' for strings.
 * added 'extern' to declarations of rsl_rlm_cause_strs

14 years agogsm48.h: Make the array extern to a silence a linker warning
Holger Hans Peter Freyther [Thu, 11 Mar 2010 13:42:41 +0000 (14:42 +0100)]
gsm48.h: Make the array extern to a silence a linker warning

/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld:
Warning: size of symbol `rsl_rlm_cause_strs' changed from 8 in ./openbsc/src/libbsc.a(abis_rsl.o)
to 120 in /usr/local/lib/libosmocore.so

spotted and sent to the list by Andreas

14 years agowrite_queue: Make the bfd cb public so it can be used in a different context
Holger Hans Peter Freyther [Fri, 5 Mar 2010 18:42:09 +0000 (19:42 +0100)]
write_queue: Make the bfd cb public so it can be used in a different context

* I'm doing a nonblocking connect and for this I need to select
  on writable and the first thing I need to do is to check the
  SOL_SOCKET SO_ERROR state. I realize this by setting a different
  cb on the embedded bfd during setup and then go back to the real
  implementation.

14 years agoimport GSM04.08 encode/decode functions and mncc.h from openbsc
Harald Welte [Sun, 7 Mar 2010 22:39:54 +0000 (23:39 +0100)]
import GSM04.08 encode/decode functions and mncc.h from openbsc

14 years agoadd option --disable-tests to disable building of test binaries
Harald Welte [Sun, 7 Mar 2010 19:33:59 +0000 (20:33 +0100)]
add option --disable-tests to disable building of test binaries

14 years agoadd --disable-talloc option to build without talloc support
Harald Welte [Sun, 7 Mar 2010 19:24:30 +0000 (20:24 +0100)]
add --disable-talloc option to build without talloc support

14 years agouse strtol instead of atoi
Harald Welte [Sun, 7 Mar 2010 17:23:47 +0000 (18:23 +0100)]
use  strtol instead of atoi

14 years agomsgb: Buffer formatting and scanning functions.
Ingo Albrecht [Sun, 7 Mar 2010 17:03:41 +0000 (18:03 +0100)]
msgb: Buffer formatting and scanning functions.

14 years agoimport some gsm band/arfcn/time related utilities from OsmocomBB
Harald Welte [Sun, 7 Mar 2010 16:50:21 +0000 (17:50 +0100)]
import some gsm band/arfcn/time related utilities from OsmocomBB

14 years agointroduce RxLev statistics module, an efficient way for power scan data
Harald Welte [Sat, 6 Mar 2010 10:34:27 +0000 (11:34 +0100)]
introduce RxLev statistics module, an efficient way for power scan data

14 years agosome more ip.access specific ABIS_NM defines
Harald Welte [Sat, 6 Mar 2010 10:29:07 +0000 (11:29 +0100)]
some more ip.access specific ABIS_NM defines

14 years agomark some occasions of bitvec as 'const' as appropriate
Harald Welte [Sat, 6 Mar 2010 10:28:49 +0000 (11:28 +0100)]
mark some occasions of bitvec as 'const' as appropriate

14 years agoadd GSTMAP ARCFCN flag bits
Harald Welte [Thu, 4 Mar 2010 14:15:37 +0000 (15:15 +0100)]
add GSTMAP ARCFCN flag bits

14 years agoupdate GSMTAP to version 0x02
Harald Welte [Thu, 4 Mar 2010 14:02:54 +0000 (15:02 +0100)]
update GSMTAP to version 0x02

14 years agofix CCCH parsing
Harald Welte [Thu, 4 Mar 2010 13:30:15 +0000 (14:30 +0100)]
fix CCCH parsing

14 years agoadd new rsl_dec_chan_nr() function
Harald Welte [Thu, 4 Mar 2010 13:27:48 +0000 (14:27 +0100)]
add new rsl_dec_chan_nr() function

14 years agoimport gsm48 utility functions from OpenBSC
Harald Welte [Thu, 4 Mar 2010 09:53:03 +0000 (10:53 +0100)]
import gsm48 utility functions from OpenBSC

* gsm48_generate_lai() gsm48_generate_mid_from_tmsi() gsm48_generate_mid_from_imsi()
* gsm48_cc_msg_names[]

14 years agoimport bcd2char() and char2bcd() from OpenBSC
Harald Welte [Thu, 4 Mar 2010 09:50:32 +0000 (10:50 +0100)]
import bcd2char() and char2bcd() from OpenBSC

14 years agoimport gsm_band_name() and gsm_band_parse() from OpenBSC
Harald Welte [Thu, 4 Mar 2010 09:39:17 +0000 (10:39 +0100)]
import gsm_band_name() and gsm_band_parse() from OpenBSC

14 years agoadd 'transparent' argument to rsl_rll_push_l3() and rsl_rll_push_l3()
Harald Welte [Thu, 4 Mar 2010 09:32:09 +0000 (10:32 +0100)]
add 'transparent' argument to rsl_rll_push_l3() and rsl_rll_push_l3()

this is required to make those functions useful for OpenBSC, nut just
OsmocomBB

14 years agofix rsl_enc_chan_nr() for SDCCH4
Harald Welte [Thu, 4 Mar 2010 09:12:50 +0000 (10:12 +0100)]
fix rsl_enc_chan_nr() for SDCCH4

14 years agoimport some GSM 04.08 utility code from OpenBSC
Harald Welte [Tue, 2 Mar 2010 22:17:33 +0000 (23:17 +0100)]
import some GSM 04.08 utility code from OpenBSC

14 years agoadd two new RSL utility functions
Harald Welte [Tue, 2 Mar 2010 20:59:20 +0000 (21:59 +0100)]
add two new RSL utility functions

14 years agoadd msgb_l1() and msgb_l1len() inline functions
Harald Welte [Mon, 1 Mar 2010 21:30:51 +0000 (22:30 +0100)]
add msgb_l1() and msgb_l1len() inline functions

14 years agoImport value_string utilities and some RSL stuff from OpenBSC
Harald Welte [Mon, 1 Mar 2010 20:58:31 +0000 (21:58 +0100)]
Import value_string utilities and some RSL stuff from OpenBSC

14 years agomsgb: add msgb->l1h member
Harald Welte [Mon, 1 Mar 2010 11:55:15 +0000 (12:55 +0100)]
msgb: add msgb->l1h member

14 years ago[write_queue] Add a generic write queue class
Holger Hans Peter Freyther [Fri, 26 Feb 2010 19:30:32 +0000 (20:30 +0100)]
[write_queue] Add a generic write queue class

The write queue can be a dropin replacement for the bsc_fd. It
is featuring two callbacks. One for ready read and one for ready
write. Whenever there is a message in the queue the write_queue
will set the BSC_FD_WRITE flag and then call the write callback.

It will make sure to delete the msgb after the write function
has been called. This class is intended to be be used in the
osmocom, layer2, bsc_msc_ip, bsc_hack and other applications.

14 years ago[timer] Fix compile warning of the timer test
Holger Hans Peter Freyther [Fri, 26 Feb 2010 19:03:13 +0000 (20:03 +0100)]
[timer] Fix compile warning of the timer test

14 years agomsgb.c: Style cleanup in initialization
Sylvain Munaut [Wed, 24 Feb 2010 21:57:46 +0000 (22:57 +0100)]
msgb.c: Style cleanup in initialization

Don't assign the same var twice & init all from the same source.

14 years agofix msgb_talroom() calculation
Harald Welte [Wed, 24 Feb 2010 21:54:11 +0000 (22:54 +0100)]
fix msgb_talroom() calculation

14 years agoMerge remote branch 'origin/master'
Harald Welte [Wed, 24 Feb 2010 21:52:58 +0000 (22:52 +0100)]
Merge remote branch 'origin/master'

14 years agoadd msgb and tlv support bits required for openbsc gprs branch
Harald Welte [Sun, 21 Feb 2010 18:03:41 +0000 (19:03 +0100)]
add msgb and tlv support bits required for openbsc gprs branch

14 years agoadd GPL to project source
Harald Welte [Sun, 21 Feb 2010 08:21:30 +0000 (09:21 +0100)]
add GPL to project source

14 years agofix select.c build (config.h)
Harald Welte [Sat, 20 Feb 2010 21:23:08 +0000 (22:23 +0100)]
fix select.c build (config.h)

14 years agofix config.h directory
Harald Welte [Sat, 20 Feb 2010 21:06:24 +0000 (22:06 +0100)]
fix config.h directory

14 years agoadd missing automake / autoconf files
Harald Welte [Sat, 20 Feb 2010 20:09:24 +0000 (21:09 +0100)]
add missing automake / autoconf files

14 years agoupdate gitignore file
Harald Welte [Sat, 20 Feb 2010 20:07:42 +0000 (21:07 +0100)]
update gitignore file

14 years agoadd missing Makefile.am in include/osmocore/protocol directory
Harald Welte [Sat, 20 Feb 2010 19:37:26 +0000 (20:37 +0100)]
add missing Makefile.am in include/osmocore/protocol directory

14 years agointial checkin of the libosmocore project
Harald Welte [Sat, 20 Feb 2010 19:34:29 +0000 (20:34 +0100)]
intial checkin of the libosmocore project