Age | Commit message (Collapse) | Author | Files | Lines |
|
This patch converts libdect to build with libnl3. Older libnl versions will
not work anymore, to fix this the build system will be converted to automake
and pkgconfig soon.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
FC16 apparently needs -ldl, probably for SDL (examples/).
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Profile support is supposed to be handled on the IWU layer, remove
unused dect_profile_indicator() function.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Unfinished, so far only meant for testing the kernel side.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
The procedure only consists of a single message in FP->PP direction,
don't terminate prematurely in FP mode.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
The address of the destination element is calculated incorrectly,
the passed IE double pointer points directly to the dect_ie_list
and not to the container.
Signed-off-by: Patrick MCHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Fix compilation with current gccs which require enum definition.
Signed-off-by: Patrick McHardy <kaber@trash,net>
|
|
Signed-off-by: Patrick McHardy <kaber <trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Not working properly without changes to src/mm.c, concretely all FP
transactions only transmitting a single message are currently broken
since the transaction is closed before the PP can respond to the page
message.
Uncomment dect_transaction_close() in dect_mm_info_req() for testing.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
In some cases (f.i. temporary identity assignment) the initiator procedure is
converted, don't hard-code the role.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
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>
|
|
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 MM -res primitives to complete the procedure on error
and return void.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Indirect link establishment is to be used in FP mode when the PP does not
support fast setup. The current condition will also attempt to use it in
PP mode.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Maintain TPUIs and use for paging PTs.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Maintain LCE location table and use it for determining paging mode
and setup capabilities.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Add fp-siemens-proprietary to .gitignore.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Change PMID/IPUIassignment debugging output to match other debugging
messages.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick Mchardy <kaber@t61.localnet>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
The functions are already exported, also export the declarations
since they are useful and easier to use than f.i. using libevent
directly.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
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>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
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>
|
|
Instead of setting the handler to NULL, restore the broadcast message
reception handler. Otherwise messages will be lost after sending a
unicast request. This currently only works because the requests are
either sent before the broadcast message handler is installed by the
initialization function or (in FP mode) there are no broadcast messages.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Already contained in the header files, but never implemented.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
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>
|
|
src/backtrace.c: In function 'translate_addresses_buf':
src/backtrace.c:158: warning: field width should have type 'int', but argument 4 has type 'long unsigned int'
src/backtrace.c:158: warning: field width should have type 'int', but argument 4 has type 'long unsigned int'
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
libev contains an libevent compat header file that at least on Debian
is only installed optionally. Make sure event.h and the event library
match since their respective struct event definitions don't match.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|