Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | logging: add libosmo-abis logging subsystems | Pablo Neira Ayuso | 2011-07-18 | 1 | -0/+34 |
| | | | | | | This adds the libosmo-abis logging subsystems to libosmocore, it uses the new change that harald proposed based on negative numbers for library logging subsystems. | ||||
* | lapdm: fix memory leak due to unreachable code | Harald Welte | 2011-07-16 | 1 | -1/+0 |
| | | | | detected by Smatch | ||||
* | gsm 08.08: use ANSI function definition with (void) | Harald Welte | 2011-07-16 | 1 | -1/+1 |
| | |||||
* | tlv: Make tlv parser arrays 256 entries wide to prevent overflow on 0xff | Harald Welte | 2011-07-16 | 1 | -1/+1 |
| | | | | | | | If we encounter a tag with 0xFF, we overflow our existing tlv_parse array definitions. Warning: this breaks ABI | ||||
* | gprs_cipher_core: Fix potential buffer overflows | Harald Welte | 2011-07-16 | 1 | -3/+3 |
| | | | | detected by Smatch | ||||
* | telnet_interface: if we don't check for the return value, don't use ret | Harald Welte | 2011-07-16 | 1 | -5/+4 |
| | |||||
* | telnet_interface: get rid of 'const' warning | Harald Welte | 2011-07-16 | 1 | -1/+1 |
| | |||||
* | get rid of non-ANSI function declarations missing (void) | Harald Welte | 2011-07-16 | 3 | -6/+6 |
| | | | | Detected by Smatch | ||||
* | timer: use (void) for functions that take no arguments | Harald Welte | 2011-07-16 | 1 | -3/+3 |
| | | | | This has been detected by http://smatch.sourceforge.net/ | ||||
* | osmo_hexdump: Fix segfault when input is too long. | Holger Hans Peter Freyther | 2011-07-15 | 1 | -0/+2 |
| | | | | | | | | | | In snprinftf the size is a size_t (unsigned) in case we want to write more than we have available, len_remain will be < 0. This was spotted while removing hexdump from simtrace and comparing it to our implementation. int snprintf(char *str, size_t size, const char *format, ...); | ||||
* | GSM 08.08: Fix generation of CIPHER MODE REJECT | Harald Welte | 2011-07-12 | 1 | -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() function | Harald Welte | 2011-07-11 | 1 | -0/+86 |
| | |||||
* | fix against corrupted output in parallel logging | Harald Welte | 2011-07-02 | 1 | -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 state | Harald Welte | 2011-06-29 | 1 | -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 allocations | Harald Welte | 2011-06-29 | 1 | -0/+5 |
| | |||||
* | make sure abis_nm <-> osmocom pchan type conversion always works | Harald Welte | 2011-06-29 | 1 | -0/+2 |
| | |||||
* | LAPDm: Uplink SACCH frames use format B, not format B4 | Harald Welte | 2011-06-29 | 1 | -5/+12 |
| | |||||
* | LAPDm: When Rx DATA from L1, L1 does not know the SAPI | Harald Welte | 2011-06-27 | 1 | -13/+14 |
| | | | | We have to determine the SAPI ourselves inside the LAPDm header. | ||||
* | Fix the generation of the log_categories string + LAPDM | Harald Welte | 2011-06-27 | 1 | -4/+7 |
| | | | | | | | | ... I should do more testing :( Conflicts: src/logging.c | ||||
* | logging: make sure to add the internal categories, as intended | Harald Welte | 2011-06-27 | 1 | -0/+6 |
| | |||||
* | add LAPDm code from osmocom-bb into libosmocore | Harald Welte | 2011-06-27 | 3 | -1/+2518 |
| | |||||
* | logging: introduce library-internal logging categories | Harald Welte | 2011-06-27 | 2 | -21/+93 |
| | | | | | | | | | | 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 openbsc | Harald Welte | 2011-06-26 | 2 | -1/+44 |
| | |||||
* | add some utility functions for paging related calculation (TS 05.02) | Harald Welte | 2011-06-26 | 1 | -7/+7 |
| | |||||
* | add gsm48_number_of_paging_subchannels() function | Harald Welte | 2011-06-26 | 1 | -0/+13 |
| | | | | (from openbsc's rsl_number_of_paging_subchannels) | ||||
* | merge process.[ch] with application.[ch] | Harald Welte | 2011-06-26 | 4 | -74/+63 |
| | |||||
* | gsm/utils: Adding conversion of "mobile power class" to dBm | Andreas Eversberg | 2011-06-26 | 1 | -0/+41 |
| | | | | | Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | sysinfo: add EXTENDED MEASUREMENT ORDER / MEASUREMENT INFO to SI types | Harald Welte | 2011-06-25 | 1 | -0/+6 |
| | | | | | those two are used in the RSL SACCH FILLING messages and delivered like SI5 / SI6. | ||||
* | add value_string definitions for RSL message types | Harald Welte | 2011-06-23 | 1 | -0/+76 |
| | |||||
* | socket: add OSMO_SOCK_F_[CONNECT|BIND|NON_BLOCK] flags | Pablo Neira Ayuso | 2011-06-13 | 2 | -12/+32 |
| | | | | | | | | 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. | ||||
* | socket: getaddrinfo(): set AI_PASSIVE if we want to bind | Harald Welte | 2011-05-31 | 1 | -0/+3 |
| | | | | This will tell getaddrinfo() that we want a INADDR_ANY style socket | ||||
* | gsmtap_util: Remove msg_free from the wq call back | Sylvain Munaut | 2011-05-29 | 1 | -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 size | Sylvain Munaut | 2011-05-29 | 1 | -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.h | Harald Welte | 2011-05-29 | 1 | -1/+0 |
| | |||||
* | socket: remove unused IPv4 related header includes | Harald Welte | 2011-05-29 | 1 | -2/+0 |
| | |||||
* | socket: Skip ifa's without ifa->ifa_addr | Harald Welte | 2011-05-24 | 1 | -0/+2 |
| | | | | Apparently getifaddrs() returns ifa's without an ifa_addr set. | ||||
* | Import abis_nm_{chcomb4pchan,pchan4chcomb}() from openbsc | Harald Welte | 2011-05-24 | 1 | -0/+32 |
| | |||||
* | Import sytem information related definitions + code from openbsc | Harald Welte | 2011-05-24 | 2 | -1/+132 |
| | |||||
* | abis_nm: remove abis_nm_obj_class_name / abis_nm_adm_state_name | Harald Welte | 2011-05-23 | 1 | -14/+4 |
| | | | | | | | | 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 Welte | 2011-05-23 | 1 | -1/+1 |
| | |||||
* | abis_nm: import definitions and common code on A-bis OML from OpenBSC | Harald Welte | 2011-05-22 | 2 | -1/+407 |
| | |||||
* | socket: use listen() and SO_REUSEADDR, new osmo_sock_init_ofd() function | Harald Welte | 2011-05-22 | 1 | -1/+34 |
| | | | | | | 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.c | Harald Welte | 2011-05-22 | 1 | -1/+0 |
| | |||||
* | gsmtap: deal with apps that call gsmtap_send*() with NULL gsmtap_inst | Harald Welte | 2011-05-22 | 1 | -0/+6 |
| | |||||
* | vty: print actual application name rather than always OpenBSC on connect | Harald Welte | 2011-05-22 | 1 | -3/+9 |
| | |||||
* | GSMTAP/socket code: Check for sys/socket.h and conditionally compile | Harald Welte | 2011-05-22 | 2 | -7/+13 |
| | |||||
* | gsmtap: rework GSMTAP API to be more future-proof | Harald Welte | 2011-05-22 | 3 | -88/+251 |
| | | | | | | * use write_queue where applicable * provide functions that work on raw FD and those with osmo_fd * add support for multiple gsmtap instances (no global variables) | ||||
* | logging: fix corrupted output | Pablo Neira Ayuso | 2011-05-19 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | | | | Harald reported a problem in the logging: http://lists.osmocom.org/pipermail/openbsc/2011-May/002896.html Reverting 81e9636454294ae10ef9bc8bf149dd0248afce76 seems to fix the problem. However, that workaround looks ugly. Holger gives us another clue on what was wrong: http://lists.osmocom.org/pipermail/openbsc/2011-May/002905.html While digging in the manpage, I found this: "The functions vprintf(), vfprintf(), vsprintf(), vsnprintf() are equivalent to the functions printf(), fprintf(), sprintf(), snprintf(), respectively, except that they are called with a va_list instead of a variable number of arguments. These functions do not call the va_end macro. Consequently, the value of ap is undefined after the call. The application should call va_end(ap) itself afterwards." | ||||
* | app: Introduce some routines to help with application startup | Holger Hans Peter Freyther | 2011-05-12 | 2 | -2/+51 |
| | | | | | | | | | The plan is to collect structs and routines for application setup and remove many copies of the boilerplate code we have right now. This starts with routines to ignore certain signals and the stderr init code. Increment the age of the library because a new interface was added. | ||||
* | libosmocore: bump library interface version to '1' for new osmo_ names | Harald Welte | 2011-05-08 | 4 | -2/+7 |
| |