dect
/
libdect
Archived
13
0
Fork 0
Commit Graph

18 Commits

Author SHA1 Message Date
Patrick McHardy ff3028a515 lce: maintain LCE location table
Maintain LCE location table and use it for determining paging mode
and setup capabilities.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-01-09 12:17:34 +01:00
Patrick McHardy 7ce0366c31 libdect: also clear dect handle private area
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-16 15:06:43 +01:00
Patrick McHardy 4e04c104d1 libdect: don't reseed PRNG on dect_open_handle()
Move seeding to an __init function to avoid reseeding the PRNG multiple
times with the same seed when opening multiple handles in a short amount
of time.

While at it, switch from rand() to random() since it uses a better
PRNG in old libcs and non-Linux systems.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-14 22:08:45 +01:00
Patrick McHardy 582a7d50c7 libdect: support allocating per-handle private space
Similar to other objects, support a private data area for libdect handles
for applications dealing with multiple handles simultenously.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-14 19:09:33 +01:00
Patrick McHardy dc4ad23707 libdect: make handle initialization/shutdown symetrical
Proper error handling on failed dect_init() calls is currently not
possible since dect_close_handle() expects a fully initialized handle.
Kill dect_alloc_handle() and add a dect_open_handle() function that
performs all setup.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-03 08:53:54 +02:00
Patrick McHardy e9ecafde61 libdect: documentation update
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-14 16:32:27 +02:00
Patrick McHardy 5ee0094057 libdect: zero libdect handle on allocation
Zero the DECT handle on allocation to properly initialize the various members.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-31 18:58:56 +02:00
Patrick McHardy 29e67ec155 lce: properly maintain PMID
Use a default value for PMID while no TPUI is assigned, use an assigned TPUI value
otherwise.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-31 14:27:38 +02:00
Patrick McHardy 901ff947e8 lce: add support for PP indirect link establishment
TODO:
 - Update tp->tpui based on temporary identity assignments
 - Implement group TPUI support

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-30 01:55:15 +02:00
Patrick McHardy d3cc83f72b doc: minor updates
Restructuring of module section, minor updates.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-26 21:33:39 +02:00
Patrick McHardy adc06cfd50 lce: fix up for kernel sockaddr changes
Also add support to bind to clusters by name.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-25 00:03:41 +02:00
Patrick McHardy 931c335680 debug: make debugging more colorful
Add definitions for the various libdect subsystems, pass them to the
registered debugging handlers and add a handler to the example programs
to colorize debugging messages.

Still could use some cleanup, but causes too many clashes.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-24 21:49:43 +02:00
Patrick McHardy 3b587ea913 Update copyright statements
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-08 21:30:57 +02:00
Patrick McHardy 37d31a6e42 annotate exported symbols and hide everything else
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-02-18 07:51:14 +01:00
Patrick McHardy 0d301955cf debug: allow to disable debugging code
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-02-18 03:56:15 +01:00
Patrick McHardy 5fba0356bb debug: make debug hook signature vprintf() compatible
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-11-13 02:30:52 +01:00
root 402864857d mm: auth support
Add auth support and beginning of MM procedure management.
Unfinished, but working well enough for an initial commit.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-07-16 04:50:52 +02:00
Patrick McHardy 0406a88b39 Import libdect
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-06 18:41:57 +02:00