dect
/
libdect
Archived
13
0
Fork 0
Commit Graph

67 Commits

Author SHA1 Message Date
Patrick McHardy f5b3fafa47 cc: convert -res primitives to return void
There is no reasonable way for the caller to respond to an error returned
by a -res primitive, the initiator is responsible for resending the
request. Change all CC -res primitives to return void.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-02-24 21:47:07 +01:00
Patrick McHardy d84f619c3a cc: don't stop completion timer if not running
PP: CC-SETUP
FP: CC-CONNECT

results in:

src/timer.c:99: dect_timer_stop: assertion `timer->state == DECT_TIMER_RUNNING' failed.
#0  0xb76b1548 in dect_backtrace() from /home/kaber/dect/libdect/src/libdect.so.0 at debug.c:136
#1  0xb76b1614 in __dect_assert_fail() from /home/kaber/dect/libdect/src/libdect.so.0 at debug.c:148
#2  0xb76b0a85 in dect_timer_stop() from /home/kaber/dect/libdect/src/libdect.so.0 at timer.c:102
#3  0xb76a343c in dect_cc_rcv_connect() from /home/kaber/dect/libdect/src/libdect.so.0 at cc.c:1468
#4  0xb76a0162 in dect_ddl_rcv_msg() from /home/kaber/dect/libdect/src/libdect.so.0 at lce.c:746
#5  0xb76a039b in dect_lce_data_link_event() from /home/kaber/dect/libdect/src/libdect.so.0 at lce.c:898
#6  0xb76b04cf in dect_fd_process() from /home/kaber/dect/libdect/src/libdect.so.0 at io.c:132
#7  0xb7690bdf in event_del() from /usr/lib/libev.so.3 at ??:0
#8  0xb7689934 in ev_invoke_pending() from /usr/lib/libev.so.3 at ??:0
#9  0xb768ef34 in ev_loop() from /usr/lib/libev.so.3 at ??:0
#10 0xb7690874 in event_base_loop() from /usr/lib/libev.so.3 at ??:0
#11 0xb7690907 in event_loop() from /usr/lib/libev.so.3 at ??:0
#12 0x080496dd in dect_event_loop() from /proc/self/exe at event_ops.c:112
#13 0x0804b67c in main() from /proc/self/exe at pp-cc.c:88

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-16 15:13:18 +01:00
Patrick McHardy 02a610e564 cc: connect U-plane when <<PROGRESS-INDICATOR>> IE indicates in-band information is available
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-10-11 17:22:10 +02:00
Patrick McHardy 318b67e8a1 cc: fix memory leak
Release <<PORTABLE-IDENTITY>> and <<FIXED-IDENTITY>> IEs when destroying
a call.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-10-09 18:53:57 +02:00
Patrick McHardy 62fb24bb7a cc: restart CC timers when receiving {CC-NOTIFY} message
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-17 17:42:26 +02:00
Patrick McHardy 72acc67c50 cc: add connect timer
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-17 17:42:26 +02:00
Patrick McHardy 2dc7accdbb cc: add completion timer
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-17 17:42:26 +02:00
Patrick McHardy cb378b3333 cc: add release timer
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-17 17:42:26 +02:00
Patrick McHardy 03ee13dcb4 cc: add overlap sending timer
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-17 17:42:26 +02:00
Patrick McHardy be63e53b94 cc: properly stop CC timers on conditions defined in appendix A.1
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-17 17:42:26 +02:00
Patrick McHardy 8cc1c1995f cc: properly implement CC state transitions
Implement CC state transitions. States are not checked yet during message
reception however.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-16 12:54:57 +02:00
Patrick McHardy 4ff96238d5 cc: add missing parameters to CC primitives
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-16 12:54:57 +02:00
Patrick McHardy 68c796f587 cc: fix message names
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-16 12:54:54 +02:00
Patrick McHardy 4129b0cdea cc: use MNCC_RELEASE-cfm when link is shut down in RELEASE_PENDING state
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-15 04:54:42 +02:00
Patrick McHardy 8f51a775ed cc: don't destroy setup_timer before call destruction
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-15 00:05:52 +02:00
Patrick McHardy fbe580f9c9 cc: add helper function for call shutdown
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-14 23:52:14 +02:00
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 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 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 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
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 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 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 7c0e516ed9 libdect: name timer related functions more consistently
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-02 05:25:03 +02:00
Patrick McHardy 3d125cbc83 libdect: name timer related functions more consistently
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-02 05:21:45 +02:00
Patrick McHardy 35dfe2ac3f libdect: name transaction related functions more consistently
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-02 05:15:41 +02:00
Patrick McHardy 6f8f9fe140 lce: add support for retransmissions
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-31 12:46:01 +02:00
Patrick McHardy af36668fb2 cc: add NULL state to call_states[]
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-28 17:59:06 +02:00
Patrick McHardy 699daad794 doc: more documentation updates
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-28 04:16:57 +02:00
Patrick McHardy cb5d6bd44b libdect: include cleanup - only include io.h where needed
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-26 22:47:53 +02:00
Patrick McHardy e6e12fb611 libdect: include cleanup - only include timer.h where needed
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-26 22:38:20 +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 1c450a1ac5 doc: fix up doxygen annotations, add some documentation
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-08 20:23:15 +02:00
Patrick McHardy d53c6e81a0 cc: add IWU-INFO message and MNCC_IWU_INFO primitives
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-03 23:35:26 +02:00
Patrick McHardy 6c1ba2669d cc: add CRSS hold message
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-04-01 22:58:20 +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 9f0a78314d cc: print LU1 send errors as strings
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-01-11 01:56:36 +01:00
Patrick McHardy 3bc5a8e744 mm/cc: validate portable identity type
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-01-10 20:58:48 +01:00
Patrick McHardy 50467ff9f0 cc: add escape-to-proprietary to parameter structures
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-12-21 11:05:19 +01:00
Patrick McHardy 4a7ea1b8ff cc: add missing newline
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-12-20 18:19:14 +01:00
Patrick McHardy 15beac3928 cc: add codec_list to dect_mncc_*_param structs where applicable
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-12-20 17:01:19 +01:00
Patrick McHardy 95ccbe1ad1 cc: fix codec_list/call_information placement in CC messages
The standard is obviously broken: IEs may only occur in ascending order
of the numerical IDs, yet codec_list and call_information IEs are specified
to be placed *after* escape_for_proprietary IEs.

Other implementations apparently chose to disregard the specified order
and place those two IEs after escape_for_proprietary, so do this as well.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-12-20 16:50:07 +01:00
Patrick McHardy 4292182dd6 cc: add CALL_PROC support
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-12-19 18:19:38 +01:00
Patrick McHardy d2d7bc2fd9 debug: improve debugging readability
Print an empty line before all entry points to seperate blocks of entries
belonging together.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-12-18 11:35:16 +01:00