Harald Welte
3fb0b6f26e
Create libosmovty as library from OpenBSC VTY functions
2010-05-25 22:28:39 +02:00
Holger Hans Peter Freyther
75bd69bc91
rate_ctr: Make the struct rate_ctr_group_desc members const
2010-05-23 21:14:32 +08:00
Andreas.Eversberg
0ebd688746
Added some "get"-functions to bitvec of libosmocore.
...
- Getting Low or High value from current postion
- Getting unsigned interger from current postion
2010-05-19 18:14:01 +02:00
Holger Hans Peter Freyther
9a3dec0c01
gsm0808: Add API to wrap a GSM48 msg with a BSSMAP/DTAP msg.
2010-05-16 08:15:40 +08:00
Holger Hans Peter Freyther
5dcef3c8b1
gsm48: Add paging response header
2010-05-15 22:35:25 +08:00
Holger Hans Peter Freyther
102bcafb58
gsm0808: Add TLV entries for types used by the Compl Layer3 Information
2010-05-14 07:25:01 +08:00
Harald Welte
d2dce6df04
[rate_ctr] always 'overflow' in next larger inetrval when interval ends
...
If a second ends, we add the number of events in that just-ended second
to the number of events in the currently running minute. The same happens
at the end of a minute: We add the number of events in that just-ended
minute into the number of events of the still-running hour, etc.
This gives a much more meaningful numbers and we don't end up with
"12 events per second, but 0 events per minute" kind of situations
anymore.
2010-05-13 13:28:12 +02:00
Harald Welte
cf734784b0
[rate_ctr] Rename group_prefix_fmt to group_name_prefix
2010-05-13 12:53:35 +02:00
Harald Welte
dd178b2dc9
rate_counters: Remove group-name-sprintf-with-idx string
2010-05-13 12:50:44 +02:00
Harald Welte
087fcff9a5
rate_ctr: Store the numeric index as part of 'rate_ctr_group'
2010-05-13 12:16:17 +02:00
Harald Welte
7b45d60887
Add new 'rate counter' implementation to libosmocore
...
A 'rate counter' is a counter that counts events but also keeps
track of the rate of events (per second, minute, hour and day).
'rate counters' are generally abstracted in 'rate counter groups',
which are instances of a 'rate counter group description'. This
way we can have e.g. a description describing what kind of counters
a BTS (or TRX) has - and we can then create one instance of that
group for every BTS or TRX that exists.
2010-05-13 11:35:30 +02:00
Harald Welte
7638af95fd
logging: add log_vty_{level,category}_string()
2010-05-11 16:39:22 +02:00
Harald Welte
9ac2225ff4
logging: introuduce log_level_str() to obtain the name of a log level
2010-05-11 11:19:40 +02:00
Harald Welte
95df5c0179
msgb: initialize cb[] to zero during msgb_reset()
2010-05-01 23:53:26 +02:00
Harald Welte
35a939463e
Import gsm48_construct_ra() from openbsc
2010-05-01 14:25:22 +02:00
Harald Welte
debf955074
gsm48.h: Prevent accidental re-inclusion of same header file
2010-05-01 12:06:48 +02:00
Harald Welte
a1c4f765ec
import gsm48_parse_ra() and gprs_tlli_type() from openbsc
2010-05-01 12:00:21 +02:00
Holger Hans Peter Freyther
5ba4dc171b
Add missing file.
2010-05-01 15:14:05 +08:00
Harald Welte
074c9f904c
msgb: introduce msgb->cb (the control buffer)
2010-04-30 14:29:11 +02:00
Harald Welte
bb77c9d6cc
msgb: remove smsh, llch, tlli and gmmh
...
This is a lot of GSM/GPRS specific stuff in struct msgb which we want
to avoid. The 'control buffer' will replace them.
2010-04-30 14:26:12 +02:00
Harald Welte
3120ac3f78
remove the unneeded bts_link pointer from msgb
2010-04-30 14:19:48 +02:00
Sylvain Munaut
100224df0b
Update .gitignore
...
m4/*.m4 -> autoreconf adds stuff there
tests -> Build product
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-04-28 10:10:47 +02:00
Sylvain Munaut
a074ec4b89
gsm 08.08: Fix some u_int8_t -> uint8_t
...
This breaks the ARM build in osmocom-bb. Besides uint??_t seems to
be the preferred type in osmocore. (coming from stdint.h vs sys/types.h)
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-04-28 10:05:29 +02:00
Sylvain Munaut
221030fc85
gsm_utils: Just add some constant and timekeeping utils
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-04-27 21:48:40 +02:00
Holger Hans Peter Freyther
ba6172a7fd
gsm0808: Port asiggnment_complete msg creation to libosmocore.
2010-04-17 06:21:49 +02:00
Holger Hans Peter Freyther
81716d5fa8
gsm0808: Port cipher_complete to be part of libosmocore.
2010-04-17 06:16:35 +02:00
Holger Hans Peter Freyther
7daa01c434
gsm0808: Add the TLV definition for some of the 0808 IEs
2010-04-17 05:14:36 +02:00
Holger Hans Peter Freyther
280cd5153f
Add GSM0808 utilities to Osmocore.
...
The code is coming from the on-waves/bsc-master branch.
2010-04-15 10:10:39 +02:00
Holger Hans Peter Freyther
2c86c2a726
gsm_08_08.h: Remove OpenBSC include file from the header.
2010-04-15 10:01:39 +02:00
Holger Hans Peter Freyther
ebaed74e17
Add GSM08.08 protocol header.
...
This header is copied from bssap.h of the on-waves/bsc-master
branch and only contains the protocol specific information.
2010-04-15 03:14:51 +02:00
Holger Hans Peter Freyther
23ba4747d1
select.c: Make the ugly hacker uglier...
...
Right now I'm seeing crashes when removing a link and deleting
it and I need this hack to make it not crash. We will have to
understand if llist_for_each_entry_safe has a bug or if we are
doing something bad with the list (anchors not properly initialized).
2010-04-11 17:34:52 +02:00
Harald Welte
163d0ea85b
remove references to u_int*_t and use uint*_t instead
2010-04-09 07:57:40 +02:00
Andreas Eversberg
1ef041ff1e
gsm48: introduce MM_CONNECTION_PEND state
2010-04-09 07:52:12 +02:00
Harald Welte
b1ac2b96f8
gsm48-ie.c: Fix year in copyright message
2010-04-09 07:51:03 +02:00
Holger Hans Peter Freyther
4052c811a9
write_queue: Add callback for exceptions as well.
2010-04-08 10:58:20 +02:00
Harald Welte
9bb553ee40
import gsm48_mi_to_string() from OpenBSC
2010-03-28 18:14:50 +08:00
Harald Welte
a3b844cf45
logging: only compile stderr target if we actualy have stderr
2010-03-27 00:04:40 +08:00
Harald Welte
01fd5cb3f0
only include strings.h if it is actually preent
2010-03-26 23:51:31 +08:00
Harald Welte
cc6313cc69
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.
2010-03-26 22:04:03 +08:00
Harald Welte
3ae2758fba
rename 'debug' interface to 'logging' interface
...
It's not really about debugging, but about generic logging...
2010-03-26 21:26:01 +08:00
Harald Welte
faadfe2b93
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.
2010-03-26 21:26:01 +08:00
Harald Welte
d788f6688c
debug.c: fix no-color-printing in case .color = NULL
2010-03-26 21:26:01 +08:00
Harald Welte
4a2bb9e38b
Import 'debug' support from OpenBSC into libosmocore
2010-03-26 21:26:01 +08:00
Holger Hans Peter Freyther
99a263ff20
write_queue: Add a method to clear the queue.
2010-03-26 09:22:38 +01:00
Harald Welte
52b4abdcb3
replace rsl_rlm_cause_strs with rsl_rlm_cause_name()
2010-03-25 12:11:38 +08:00
Harald Welte
9eb6d88d64
replace gsm48_cc_msg_names[] with gsm48_cc_msg_name()
...
and implement the backend using value_string
2010-03-25 12:00:54 +08:00
Harald Welte
e9e190a8d8
use more value_string in gsm48 and rsl
2010-03-25 11:46:46 +08:00
Harald Welte
b59f9350f8
get_value_string(): return "unknown 0x..." instead of "unknown"
2010-03-25 11:46:46 +08:00
Holger Hans Peter Freyther
b2eb83fa95
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.
2010-03-24 02:55:33 +01:00
Harald Welte
4cd3d8a2c7
add git-version-gen magic to automatically generate package version
2010-03-23 00:30:19 +08:00