aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2012-05-14src/codec: Fix typo in MakefileSylvain Munaut1-1/+1
Thanks to horizon for pointing this out Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-26LAPDm: Ensure there is no payload in DISC frames0.4.2Harald Welte1-1/+6
When we send DISC frames (especially generated from RSL), we don't want any remaining bytes from the RSL message showing up as bogus DISC payload.
2012-04-18doc: Fix the Doxygen section endingsSylvain Munaut24-24/+24
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-08sync prototype of osmo_sockaddr_is_local with declarationHarald Welte1-1/+1
in e476442cf0e84c65565ace545f5b73602b5f0ffc we changed from sockle_t to unsigned int, but only in the header, not in the implementation!
2012-04-05libosmogsm: Add tvlv_att_def to exported symbolsHarald Welte1-0/+1
2012-04-05misc: Fix make distcheck, add the new libosmogsm.map file to the tarballHolger Hans Peter Freyther1-0/+2
2012-04-05lapdm: fix RSL message format in RLL ERROR INDICATIONHarald Welte1-1/+0
In rsl_rll_error() we don't need to re-set the msg->l2h as that would corrupt the message. The recipient would interpret any cause value as 0.
2012-04-04libosmogsm: Introduce explicit list of exported symbolsHarald Welte3-3/+233
There is now a "libosmogsm.map" file containing an explicit list of to-be-exported symbols. This should prevent us from leaking non-static symbols into the global namespace. A similar scheme should be adopted by all other osmocom libraries
2012-03-28vty: Add a function to write the current config to a file.Holger Hans Peter Freyther1-46/+130
2012-03-21auth_milenage/osmo-auc-gen: compute OPC in case only OP is knownHarald Welte1-2/+13
2012-03-21milenage: Add function to compute OPC from OP and KHarald Welte2-0/+17
2012-03-16lapd: Remove unused variable t200_start in lapd_acknowledge.Holger Hans Peter Freyther1-2/+1
lapd_core.c: In function 'lapd_acknowledge': lapd_core.c:710:38: warning: variable 't200_start' set but not used [-Wunused-but-set-variable]
2012-03-02gsm/a5: Rewrite equation doc with proper numberingSylvain Munaut1-4/+4
No idea where I copied the original from but here we use the other notation. (matches wikipedia and sources) Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-03-01vty/telnet: Add function to allow binding telnet interface to custom ↵Sylvain Munaut1-35/+22
IP/Interface Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-01-26GSM 08.08: change gsm0808_create_classmark_update() prototypeHarald Welte1-3/+6
The caller explicitly specifies CM2 and CM3, rather than one blob containing both.
2012-01-26GSM 08.08: Cleanup the code, remove lots of magic hard-coded numbersHarald Welte1-116/+60
Rather than manually hard-coding numbers and using byte-arrays, we use the msgb_*_{push,put}() function family of libosmocore/libosmogsm. This is currently untested.
2012-01-12lapdm: Make sure that the msgb_l3len(msg) == length...Holger Hans Peter Freyther1-4/+4
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.
2012-01-12lapd: Warn if someone attempts to send an empty messageHolger Hans Peter Freyther1-0/+7
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.
2012-01-12lapd: Mention the L3 size of the payload being sentHolger Hans Peter Freyther1-1/+2
2012-01-10libosmocore/lapd: Fixed handling of sequence errors at lapd_core.cAndreas.Eversberg1-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>
2011-12-14Fix generation of GPRS Routing Area in case of 3-digit MNCGus Bourg1-1/+1
This fixes a simple typo that causes erroneous GPRS Routing Area encoding if you use 3-digit MNCs.
2011-12-07auth_core: add missing string.h include to reduce warningsHarald Welte1-0/+1
2011-12-07auth_core: don't use anonymous unions to make certain gcc versions happyHarald Welte2-7/+7
2011-12-07auth_milenage: we now copy RAND in auth_core, no need to do it twiceHarald Welte1-1/+0
2011-12-07auth_core: Make sure we always save the RAND in the vectorHarald Welte1-1/+8
2011-12-07auth_core: add functions for parsing algorithm namesHarald Welte1-0/+20
2011-12-07add milenage internal headers to ensure 'make dist' worksHarald Welte1-0/+5
2011-12-06Auth: Import milenage implementation from hostap (Jouni Malinen)Harald Welte14-3/+1659
... and add integration into the osmo_auth core.
2011-12-06Add a generic abstraction for GSM/3G authentication algorithmsHarald Welte3-1/+141
Indiidual algorithms can be implemented as plugins. libosmogsm itself only provides COMP128v1 via this generic interface.
2011-12-06comp128: mark ki and srand as 'const' input parametersHarald Welte1-1/+1
2011-12-01increment LIBVERSION of libosmocore for new api0.3.11Harald Welte1-1/+1
2011-12-01SMS: export gsm411_bcdify() and gsm411_unbcdify() functionsHarald Welte1-20/+20
The same functions are e.g. required by the NITZ code in 04.08, and we don't want copy+paste.
2011-11-24libosmocore: Update LIBVERSION because of ABI chaangesSylvain Munaut1-1/+1
The recent convolutional code changes break the ABI. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-24core/conv: Add utility methods to know length of coded/decoded vectorsSylvain Munaut1-0/+34
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-24core/conv: Add support for other termination types (trunc & tail biting)Sylvain Munaut1-32/+94
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>
2011-11-24core/conv: Really only consider error for non-zero soft valuesSylvain Munaut1-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>
2011-11-24core/conv: Minor documentation improvementsSylvain Munaut1-0/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-20gsm/lapd_core: Make sure rc is initialize in lapd_rx_uSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-20core/logging: Remove const qualifier on return of logp2syslog_levelSylvain Munaut1-1/+1
This generates a warning because it doesn't "mean" anything. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-20core/serial: Fix warning when on platform other than linuxSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-20gsm/a5: Bit faster way to compute parity ...Sylvain Munaut1-3/+2
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-19utils: Fix alias to weak alias to allow OSX compilationSylvain Munaut1-1/+1
Using a weak alias works just as good AFAICT. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-17gsm/a5: Add documentationSylvain Munaut1-0/+68
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-17gsm/a5: Rewrite A5/2 algo to avoid the delayed bitSylvain Munaut1-23/+12
It's just clearer that way ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-17gsm/a5: Add const qualifier on the keySylvain Munaut1-3/+3
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-13timer: Better fix to the timer re-scheduling situationPablo Neira Ayuso1-6/+3
As it turns out, the previous fix didn't cover the case of a timer X being re-scheduled inside a timer call back expiring at the same time as the previous X instance. Written-by: Pablo Neira Ayuso <pablo@gnumonks.org> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-12gsm/gsm0411_smc: Fix typoSylvain Munaut1-1/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-12include/gsm_04_11: Fix compatibility issue with GSM411_TMR_TC1ASylvain Munaut1-1/+1
We need to keep the old one for compatibility ! Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-12gsm/sms: Rewrite of SMR process, extracted from OpenBSCAndreas Eversberg2-1/+452
The SMR process is used to transfer SMS TPDUs. It is now extracted from OpenBSC. It includes a real state machine now for easier debugging. Also it implements the TR1M and TR2M timers. The memory notification procedure is missing, but not required for network side. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-12gsm/sms: Rewrite of SMC process, extracted from OpenBSCAndreas Eversberg2-1/+540
The SMC process is used to transfer RP frames. It is now extracted from OpenBSC. It includes a real state machine now for easier debugging. Written-by: Andreas Eversberg <jolly@eversberg.eu> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>