dect
/
libdect
Archived
13
0
Fork 0
Commit Graph

479 Commits

Author SHA1 Message Date
Patrick McHardy 073d8f6617 timer: add some debugging code
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-14 00:55:37 +02:00
Patrick McHardy 9b20956773 cc: periodically dump LU1 queue statistics
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-09 13:27:21 +02:00
Patrick McHardy 5d36c7a302 cc: remove duplicate ULEI index assignment
addr->dect_index is already assigned by dect_transaction_get_ulei().

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-08 20:21:11 +02:00
Patrick McHardy 94ecef4cc3 mm: use mme->current in dect_mm_procedure_complete()
Procedures are supposed to be completed in reverse order of initiation,
so use mme->current for simplicity.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-08 20:06:43 +02:00
Patrick McHardy 657e322db1 mm: use mme->current in dect_mm_send_msg() instead of passing the MM procedure manually
Only the active procedure is supposed to send messages, so use mme->current for
simplicity.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-08 20:04:09 +02:00
Patrick McHardy 76efa8738e ss: close docbook marker
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-08 20:00:44 +02:00
Patrick McHardy f2d4925a61 example: add FP only CC example
Stripped down version of cc.c.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-08 19:39:59 +02:00
Patrick McHardy 65a5d5582c example: add PP CC example
Stripped down version of cc.c for PP-only usage.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-08 19:19:12 +02:00
Patrick McHardy 8c4fc03f20 mm: complete the proper procedure when authentication fails during key allocation
It should probably just use mme->current, but this needs some more thought.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-03 13:38:32 +02:00
Patrick McHardy 54cf9fbbe4 example: add getopt_long option parsing
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-03 13:26:53 +02:00
Patrick McHardy ac6d2ef7ae example: prefix FP examples with fp-
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-03 13:20:47 +02:00
Patrick McHardy 20d309fc70 lce: move protocol registration to dect_lce_init
Perform protocol initialization outside of __init functions to avoid
multiple registration with threaded library users.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-03 12:18:20 +02:00
Patrick McHardy f5c9434230 mm/cc: provide empty parameters to -cfm primitives when aborting a transaction
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-03 11:27:05 +02:00
Patrick McHardy 09d758f452 example: centralize ipui definition
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-03 10:05:51 +02: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 54f5b57e97 build: properly quote all arguments in configure.ac
Fixes:

checking event.h usability... yes
checking event.h presence... yes
checking for event.h... yes
configure: line 4346: syntax error near unexpected token `newline'
configure: line 4346: `  yes:no:'

with autoconf 2.61-8 and dash 0.5.5.1-7 on Debian.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-03 05:20:44 +02:00
Patrick McHardy 1038f1b083 lce: order MM transactions properly
Order MM transactions such that the last one opened is shut down first.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-03 04:45:22 +02:00
Patrick McHardy 661b96d618 mm: only abort locally initiated transactions on link shurtdown.
A transaction only needs to be aborted for initiated transactions,
fix a segfault when calling (validly) non-existant callbacks.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-03 04:45:22 +02:00
Patrick McHardy 8a5f1b5c90 build: use full path to echo to deal with dash builtin which doesn't support -e
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-01 08:26:46 +02:00
Patrick McHardy 99920e2e60 clms: fix compilation error on debian stable
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-31 14:18:47 +02:00
Patrick McHardy f3c0797405 ss: add missing {FACILITY} attributes
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-26 04:13:28 +02:00
Patrick McHardy 626ad52a0f sfmt: log invalid IEs on TX
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-26 04:10:35 +02:00
Patrick McHardy ab287ce143 ie: add <<TIME-DATE>> IE
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-26 02:13:24 +02:00
Patrick McHardy 6a9b663d14 example: set IPUI in PP examples
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-26 02:00:39 +02:00
Patrick McHardy fb12b53aa1 sfmt: add parsing function for <<FEATURE-INDICATE>> IE
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-25 04:49:04 +02:00
Patrick McHardy 23e0b42c71 lce: make sure MM transactions are shutdown last
Insert MM transactions at the end of the list to make sure they get
destroyed last on shutdown. This makes sure that other protocols
which might invoke and wait for the completion of MM transactions
have their transactions terminated first and don't mistake a link
shutdown or a protocol specific error for a MM error.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-25 03:39:06 +02:00
Patrick McHardy 4c3b4aa379 cc: fix segfault due to incorrect call destruction
Only destroy the link when invoking the MNCC_RELEASE-cfm primitive,
on MNCC_RELEASE-ind destruction happends in MNCC_RELEASE-res.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-25 03:39:06 +02:00
Patrick McHardy 58496f45e8 cc,ss: prefix message types with DECT_
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-24 22:42:40 +02:00
root fa12cefa8a sfmt: accept empty <<PORTABLE-IDENTITY>> IEs
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-23 16:27:38 +02:00
Patrick McHardy f83e4b328a Revert "mm: change PMID when an access rights request is not confirmed"
This reverts commit de54717db0.

Major misunderstanding, the PMID is supposed to get changed on
unconfirmed MAC layer Access requests, not on Access rights requests.

Signed-off-by: Patrick MCHardy <kaber@trash.net>
2010-08-23 12:17:54 +02:00
Patrick McHardy dddf792e7e examples: minor fixes
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-17 22:37:20 +02:00
Patrick McHardy 3d98bc7b6e lce: set the IPUI for incoming data links as soon as it is known
Set the IPUI of a data link as soon a request containing the portable_identity
is received. Additionally verify that the identity matches the IPUI if already
set.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-16 02:07:26 +02:00
Patrick McHardy 5a346fac33 lce: don't use full pages by default
GAP doesn't require full page support, it is only mandatory for the NG-DECT
part 1 profile.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-16 01:07:14 +02:00
Patrick McHardy ded21cc584 lce: add full page support
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-15 22:33:34 +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 77f31308d8 libdect: add ConnetionLess Message Service (CLMS) support
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-13 15:07:36 +02:00
Patrick McHardy f04852105c ie: export IE types and construction/parsing functions
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-13 13:03:42 +02:00
Patrick McHardy 906820a35e libdect: prefix IE types with DECT_
Use DECT_ as common prefix for all IEs since they need to be exported for
the CLMS service.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-13 13:03:42 +02:00
Patrick McHardy 248c55c33f ss: include ss.h in ss documentation group
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-13 13:01:25 +02:00
Patrick McHardy 2698aeada7 ie: add <<NETWORK-PARAMETER>> IE
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-13 07:47:35 +02:00
Patrick McHardy c2195bb5d2 lce: clear padding in cmsg buffer
Make valgrind happy (tm).

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-13 07:23:50 +02:00
Patrick McHardy 9801d01020 utils: convert paging to use dect_msg_buf structures
Change dect_lce_broadcast to take a dect_msg_buf in prepatation for the next
patch. Also add an on-stack initializer macro for mb's and make use of it.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-13 05:17:13 +02:00
Patrick McHardy 32fe0ad9b2 lce: support sending and receiving full and long page messages
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-13 03:55:45 +02:00
Patrick McHardy c7c118c6d0 lce: use MSG_NOSIGNAL to avoid SIGPIPE signals on stream sockets
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-12 04:13:01 +02:00
Patrick McHardy d993094726 mm: catch link establishment errors in dect_mm_endpoint_alloc
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-12 01:38:20 +02:00
Patrick McHardy 296024994e cc: send {RELEASE-COM} message when necessary
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-09 21:17:59 +02:00
Patrick McHardy f920361f12 example: add pp-common.c for common PP functions
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-09 18:10:58 +02:00
Patrick McHardy 79f63c91cf ie: group party-identity related definitions and structures more logically
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-06 16:33:13 +02:00
Patrick McHardy 766807cf0e ie: add support for default cipher key index reception and transmission
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-05 10:42:15 +02:00
Patrick McHardy a32f8ab727 doc: add documentation for dect_llme_rfp_preload_req
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-05 10:26:10 +02:00