Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | TLV/msgb: Return first byte of newly-pushed data from msgb_*_push() | Harald Welte | 2012-01-22 | 1 | -14/+28 |
| | | | | | The msgb_*_push() functions erroneously returned the firsrt byte after newly-pushed information, which makes no sense at all. | ||||
* | tests: Introduce a very basic gsm0808 test | Holger Hans Peter Freyther | 2012-01-22 | 7 | -1/+291 |
| | | | | | | This tests verifies the content of the GSM 08.08 messages, it does not verify the remaining headroom (which the SCCP/IPA code relies on being plenty to prepend the header). More to come in the future. | ||||
* | msgb_trim(): actually trim to an absolute length, as the comment states | Harald Welte | 2012-01-14 | 1 | -5/+3 |
| | | | | | The previous commit introduced a new msgb_trim() but the implementation differed from the specification. | ||||
* | msgb: introduce msgb_trim() and msgb_l3trim() to trim msgb's | Harald Welte | 2012-01-14 | 1 | -0/+28 |
| | |||||
* | Merge remote-tracking branch 'origin/zecke/lapd-fixes' | Holger Hans Peter Freyther | 2012-01-14 | 4 | -13/+40 |
|\ | |||||
| * | lapdm: Make sure that the msgb_l3len(msg) == length... | Holger Hans Peter Freyther | 2012-01-12 | 3 | -13/+17 |
| | | | | | | | | | | | | | | | | | | | | This code should not play with the internals of the msgb like this, this code got introduced in af48bed55607931307 and is breaking the osmo-bts usecase of forwarding an RSL message. Add a test case that fails without the new code. I would prefer if we could get rid of the manipulating the msgb like this, it is prone to errors like this one. | ||||
| * | lapd: Warn if someone attempts to send an empty message | Holger Hans Peter Freyther | 2012-01-12 | 2 | -0/+22 |
| | | | | | | | | | | | | DATA REQ with a msgb_l3len(msg) == 0 message does not make any sense, log an error and return immediately before attempting to send an empty I frame in lapd_send_i. | ||||
| * | lapd: Mention the L3 size of the payload being sent | Holger Hans Peter Freyther | 2012-01-12 | 1 | -1/+2 |
|/ | |||||
* | libosmocore/lapd: Fixed handling of sequence errors at lapd_core.c | Andreas.Eversberg | 2012-01-10 | 1 | -3/+21 |
| | | | | | | | | | | | | | | | If a sequence error is received, the N(R) variable must still be used to acknowledge previously transmitted frames. If there are two subsequent sequence errors received, ignore it. (Ignore every second subsequent error.) This happens if our reply with the REJ is too slow, so the remote gets a T200 timeout and sends another frame with a sequence error. Test showed that replying with two subsequent REJ messages could the remote L2 process to abort. Replying too slow shouldn't happen, but may happen over serial link between BB and LAPD. Written-by: Andreas.Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | Fix generation of GPRS Routing Area in case of 3-digit MNC | Gus Bourg | 2011-12-14 | 1 | -1/+1 |
| | | | | | This fixes a simple typo that causes erroneous GPRS Routing Area encoding if you use 3-digit MNCs. | ||||
* | lapd: Disable one part of the test as it fails on FreeBSD | Holger Hans Peter Freyther | 2011-12-12 | 1 | -1/+2 |
| | | | | | I thought this number would be wrong in the same way but it depends on OS/ARCH. Disable this part of the test for now. | ||||
* | lapd_test: Look at the content of LAPD messages and compare them | Holger Hans Peter Freyther | 2011-12-12 | 2 | -16/+61 |
| | | | | Verify the output, accept two known errors in the generation of it. | ||||
* | lapdm: Create a simple test case to transmit data between both ends | Holger Hans Peter Freyther | 2011-12-11 | 7 | -1/+294 |
| | | | | | | | This is testing the establishment of two ends (BTS, MS) one is in the polling mode as used by osmo-bts. Transfer data between the two ends. The sent data is not verified though. This should be followed up soon. | ||||
* | auth_core: add missing string.h include to reduce warnings | Harald Welte | 2011-12-07 | 1 | -0/+1 |
| | |||||
* | auth_core: don't use anonymous unions to make certain gcc versions happy | Harald Welte | 2011-12-07 | 5 | -20/+20 |
| | |||||
* | milenage_test: make sure test output is what .ok file expects | Harald Welte | 2011-12-07 | 1 | -1/+1 |
| | |||||
* | auth_milenage: we now copy RAND in auth_core, no need to do it twice | Harald Welte | 2011-12-07 | 1 | -1/+0 |
| | |||||
* | milenage_test: make sure test result matches expectations | Harald Welte | 2011-12-07 | 1 | -1/+1 |
| | |||||
* | add 'osmo-auc-gen' tool that can be used to generate auth vectors | Harald Welte | 2011-12-07 | 2 | -1/+187 |
| | | | | | | Thsi tool usses libosmocore in order to generate 2G and 3G authentication vectors from private key material, exactly like an AuC would produce them in a real network. | ||||
* | auth_core: Make sure we always save the RAND in the vector | Harald Welte | 2011-12-07 | 1 | -1/+8 |
| | |||||
* | auth_core: add functions for parsing algorithm names | Harald Welte | 2011-12-07 | 2 | -0/+23 |
| | |||||
* | whitespace fixes in milenage_test.ok | Harald Welte | 2011-12-07 | 1 | -7/+7 |
| | |||||
* | add milenage internal headers to ensure 'make dist' works | Harald Welte | 2011-12-07 | 1 | -0/+5 |
| | |||||
* | add autotest script for milenage/auth testing | Harald Welte | 2011-12-07 | 6 | -1/+102 |
| | |||||
* | Auth: Import milenage implementation from hostap (Jouni Malinen) | Harald Welte | 2011-12-06 | 14 | -3/+1659 |
| | | | | ... and add integration into the osmo_auth core. | ||||
* | Add a generic abstraction for GSM/3G authentication algorithms | Harald Welte | 2011-12-06 | 5 | -2/+229 |
| | | | | | Indiidual algorithms can be implemented as plugins. libosmogsm itself only provides COMP128v1 via this generic interface. | ||||
* | comp128: mark ki and srand as 'const' input parameters | Harald Welte | 2011-12-06 | 2 | -2/+2 |
| | |||||
* | increment LIBVERSION of libosmocore for new api | Harald Welte | 2011-12-01 | 1 | -1/+1 |
| | |||||
* | SMS: export gsm411_bcdify() and gsm411_unbcdify() functions | Harald Welte | 2011-12-01 | 2 | -20/+26 |
| | | | | | The same functions are e.g. required by the NITZ code in 04.08, and we don't want copy+paste. | ||||
* | tests: Use the missing from the source directory | Holger Hans Peter Freyther | 2011-11-29 | 2 | -378/+2 |
| | | | | | No need to keep a manual copy of the missing binary, use the one that will be in the top_srcdir. | ||||
* | Update .gitignore with new tests | Sylvain Munaut | 2011-11-25 | 1 | -0/+2 |
| | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | libosmocore: Update LIBVERSION because of ABI chaanges | Sylvain Munaut | 2011-11-24 | 1 | -1/+1 |
| | | | | | | The recent convolutional code changes break the ABI. Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | core/conv: Add regression testing code | Sylvain Munaut | 2011-11-24 | 6 | -1/+555 |
| | | | | | | | It tests both a given test vector encoding/decoding, and some random coding/decoding cycles. Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | core/conv: Add utility methods to know length of coded/decoded vectors | Sylvain Munaut | 2011-11-24 | 2 | -0/+40 |
| | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | core/conv: Add support for other termination types (trunc & tail biting) | Sylvain Munaut | 2011-11-24 | 2 | -38/+119 |
| | | | | | | | | Note that this breaks the ABI and the low level API. But it shouldn't break the high level API, nor the conv code definitions (because fields default to 0, and for new fields '0' is the previous behavior) Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | core/conv: Really only consider error for non-zero soft values | Sylvain Munaut | 2011-11-24 | 1 | -3/+6 |
| | | | | | | | | This should have been done with 1dd7c84733b20ba776510369e9daba1a822c5b44 but somehow was missed and only applied to the 'finish' method and not the 'scan' method. Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | core/conv: Minor documentation improvements | Sylvain Munaut | 2011-11-24 | 2 | -12/+19 |
| | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | gsm/lapd_core: Make sure rc is initialize in lapd_rx_u | Sylvain Munaut | 2011-11-20 | 1 | -1/+1 |
| | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | core/logging: Remove const qualifier on return of logp2syslog_level | Sylvain Munaut | 2011-11-20 | 1 | -1/+1 |
| | | | | | | This generates a warning because it doesn't "mean" anything. Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | core/serial: Fix warning when on platform other than linux | Sylvain Munaut | 2011-11-20 | 1 | -1/+1 |
| | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | gsm/a5: Bit faster way to compute parity ... | Sylvain Munaut | 2011-11-20 | 1 | -3/+2 |
| | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | utils: Fix alias to weak alias to allow OSX compilation | Sylvain Munaut | 2011-11-19 | 1 | -1/+1 |
| | | | | | | Using a weak alias works just as good AFAICT. Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | tests/a5: Add a5_test.ok as EXTRA_DIST | Sylvain Munaut | 2011-11-17 | 1 | -0/+1 |
| | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | tests: fix cut & paste error | Sylvain Munaut | 2011-11-17 | 1 | -1/+1 |
| | | | | | | | Damn ... I fixed it locally and didn't properly commit the fix before push. Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | gsm/a5: Add documentation | Sylvain Munaut | 2011-11-17 | 2 | -0/+82 |
| | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | gsm/a5: Rewrite A5/2 algo to avoid the delayed bit | Sylvain Munaut | 2011-11-17 | 1 | -23/+12 |
| | | | | | | It's just clearer that way ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | tests/a5: Add a5 regression testing | Sylvain Munaut | 2011-11-17 | 6 | -1/+117 |
| | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | gsm/a5: Add const qualifier on the key | Sylvain Munaut | 2011-11-17 | 2 | -6/+6 |
| | | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com> | ||||
* | tests: Fix the make distcheck of libosmocore with the tests | Holger Hans Peter Freyther | 2011-11-14 | 10 | -7/+7 |
| | |||||
* | Merge branch 'zecke/gnu-autotest' | Holger Hans Peter Freyther | 2011-11-14 | 14 | -11/+620 |
|\ |