Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | core: Add generic CRC functions (templates expended to 8 16 32 64 bits) | Sylvain Munaut | 2011-09-16 | 2 | -1/+126 |
| | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | LAPDm: Fix encoding of RLL ERROR IE | Harald Welte | 2011-09-03 | 1 | -1/+0 |
| | |||||
* | core/serial: Add utilities to deal with serial ports | Sylvain Munaut | 2011-09-02 | 2 | -0/+213 |
| | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | gsm/gsm48_ie: Fix other range format decoding | Andreas.Eversberg | 2011-09-02 | 1 | -66/+63 |
| | | | | | | | | As it turns out, the other range were affected too, so Anreas wrote the fix for them as well. Written-by: Andreas.Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | RSL: add rsl_ipac_msg_name() for ipa specific RSL extension names | Harald Welte | 2011-09-02 | 1 | -0/+36 |
| | |||||
* | gsm/gsm48_ie: Fix Range 256 format decoding | Sylvain Munaut | 2011-09-01 | 1 | -20/+35 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the mail: --- appended is another patch for fixing a bug in the calculation of the frequency lists. This time the patch is for the "Range 256 format". The problem is that the operand for the "smod" operation might be negative, in this case the simplified version won't work as expected. In the patch I introduced a separate function for "smod" which takes care of the sign. I have not yet checked if the other formats are also affected, this would be the case if the "smod" operand can be negative. There might be other solutions to fix the problem without the need for a separate function, however I have not thought further about it. A test vector is the following frequency list ("Range 256 format", first byte is the length): 09 8b 1c 83 8c 15 ef 02 2d 30 The correct ARFCNs are 569 571 576 578 586 608 712 715 719 The uncorrected version would instead return: 444 457 460 464 569 576 578 586 608 This means four ARFCNs are wrong which will cause problems if for example the frequency list contains the ARFCNs for hopping. ---- Written-by: Dieter Spaar <spaar@mirider.augusta.de> Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | add functions for bit-reversal | Harald Welte | 2011-09-01 | 1 | -0/+57 |
| | | | | | Sometimes we need stuff like reversing every bit in each byte (but not the byte-order). | ||||
* | logging: add osmo_vlogp() as vararg / va_list compatible function | Harald Welte | 2011-08-31 | 1 | -4/+5 |
| | |||||
* | doxygen: Add main page for all three libraries | Harald Welte | 2011-08-30 | 3 | -0/+113 |
| | |||||
* | doxygen: Add documentation for Abis OML | Harald Welte | 2011-08-17 | 1 | -4/+29 |
| | |||||
* | doxygen: split VTY configuration in multiple files | Harald Welte | 2011-08-17 | 2 | -2/+2 |
| | |||||
* | RSL: add doxygen documentation | Harald Welte | 2011-08-17 | 1 | -3/+27 |
| | |||||
* | doxygen: Add documentation for LAPDm code | Harald Welte | 2011-08-17 | 1 | -4/+38 |
| | |||||
* | doxygen: Add documentation about TLV parser | Harald Welte | 2011-08-17 | 1 | -15/+25 |
| | |||||
* | doxygen: Add (partial) VTY API documentation | Harald Welte | 2011-08-17 | 4 | -16/+87 |
| | |||||
* | doxygen: Add documentation for gsmtap_util.[ch] | Harald Welte | 2011-08-17 | 1 | -6/+51 |
| | |||||
* | doxygen: Add documentation to signal.[ch] | Harald Welte | 2011-08-17 | 1 | -1/+23 |
| | |||||
* | doxygen: document panic.[ch] | Harald Welte | 2011-08-17 | 1 | -0/+8 |
| | |||||
* | doxygen: Add docs for rate_ctr | Harald Welte | 2011-08-17 | 1 | -0/+19 |
| | |||||
* | doxygen: Add 'write_queue' module | Harald Welte | 2011-08-17 | 1 | -0/+28 |
| | |||||
* | doxygen: add doxygen module 'utils' | Harald Welte | 2011-08-17 | 1 | -0/+51 |
| | |||||
* | doxygen documentation for logging framework | Harald Welte | 2011-08-17 | 2 | -5/+93 |
| | |||||
* | some more doxygen work (include the notion of modules) | Harald Welte | 2011-08-17 | 9 | -18/+295 |
| | |||||
* | logging: fix parsing of logging mask (-d DMI case) | Pablo Neira Ayuso | 2011-08-11 | 1 | -0/+5 |
| | | | | | | Without this patch, `-d DMI' enables logging for DMI and DMIB. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org> | ||||
* | gsm/gsm48_ie: Fix frequency list decoding | Andreas.Eversberg | 2011-07-30 | 1 | -1/+1 |
| | | | | | Fix-by: Andreas.Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | use the 'L' prefix in debug names (DLINP instead of DINP) | Harald Welte | 2011-07-29 | 1 | -4/+4 |
| | |||||
* | sms: Fix style issues with the code, add spaces after keywords | Holger Hans Peter Freyther | 2011-07-24 | 1 | -5/+5 |
| | |||||
* | sms: SMS where cropped (from VTY), concatenation of SMS where not possible | Dennis Wehrle | 2011-07-24 | 1 | -29/+89 |
| | | | | | | | | | | | | Additionally it wasn't possible to send concatenated sms from the vty. To send multiple sms, it is necessary to use padding bits and add a user_data_header. Therefore the gsm_7bit_encode function was splitted to gsm_7bit_encode and gsm_septets2octets. gsm_septets2octets: this is the old gsm_7bit_encode function + additional padding parameter Additionally the gsm_7bit_decode function was modified to take account for the user_data_header. With the new gsm_get_octet_len function you can get the octet length for a given septet length. I also added several sms tests. | ||||
* | remove DLRSL and DLNM, we don't need them | Harald Welte | 2011-07-21 | 1 | -12/+0 |
| | | | | | They are not used anywhere in our libraries, so they should be defined by the respective applications | ||||
* | make sure we don't have namespace clashes between libraries and apps | Harald Welte | 2011-07-19 | 1 | -6/+6 |
| | | | | | | | | * All loging prefixes in libraries should be DL like DLINP * All signals / subsystems should be called S_L_* SS_L_* * All command nodes should be called L_*_NODE This makes sure existinc code still compiles as expected | ||||
* | 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 |
| |