summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2013-04-01build: convert build to libnl3HEADmasterPatrick McHardy2-8/+8
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>
2012-02-09Merge branch 'master' of ssh://dect.osmocom.org/var/cache/git/libdectPatrick McHardy17-130/+448
2012-02-09utils: resync fallback definitions with current kernelPatrick McHardy1-2/+2
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-12-09build: fix compilation on FC16Patrick McHardy1-1/+1
FC16 apparently needs -ldl, probably for SDL (examples/). Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-12-08utils: resync NETLINK_DECT with kernel headersPatrick McHardy1-1/+1
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-10-09lce: remove now unused function dect_profile_indicator()Patrick McHardy1-12/+0
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>
2011-10-05libdect: add preliminary wideband supportPatrick McHardy16-117/+447
Unfinished, so far only meant for testing the kernel side. Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-10-05utils: resync AF_DECT definition with kernel headersPatrick McHardy1-1/+1
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-08-04s_fmt: dump <IWU-TO-IWU> contentsPatrick McHardy1-0/+2
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-07-18sfmt: use trans_table for auth flagsPatrick McHardy1-5/+9
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-06-18utils: resync value of NETLINK_DECT with 3.0.0-rc3Patrick McHardy1-1/+1
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-05-30mm: only complete info request procedure in PP modePatrick McHardy1-1/+2
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>
2011-05-05sfmt: fix parsing of <<REPEAT-INDICATOR>> IEsPatrick McHardy1-1/+1
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>
2011-05-05mm: fix typo in debug messagePatrick McHardy1-1/+1
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-04-23netlink: include dect_netlink.hPatrick McHardy1-0/+1
Fix compilation with current gccs which require enum definition. Signed-off-by: Patrick McHardy <kaber@trash,net>
2011-03-21lce: use symbolic identifiers for S-SAP sockaddrPatrick McHardy1-2/+2
Signed-off-by: Patrick McHardy <kaber <trash.net>
2011-03-20mm: properly complete procedure consisting only of a single messagePatrick McHardy1-3/+4
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-03-20lce: attempt to support transactions only consisting of a single messagePatrick McHardy1-2/+17
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-03-20example: fp-locate-suggestPatrick McHardy3-1/+66
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>
2011-03-19build: remove libintl.h from AC_CHECK_HEADERSPatrick McHardy1-1/+1
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-02-26mm: use mme->current in -res primitives instead of hard-coding procedure rolePatrick McHardy1-7/+7
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>
2011-02-26lce: add proper timer names from EN 300 175 05 to comments and debug messagesPatrick McHardy2-10/+11
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-02-24cc: convert -res primitives to return voidPatrick McHardy2-27/+21
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-24mm: convert -res primitives to return voidPatrick McHardy2-110/+69
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>
2011-01-24libdect: adjust AF_DECT value for 2.6.38-rc2Patrick McHardy1-2/+2
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-01-11lce: really fix set-up conditionPatrick McHardy1-1/+1
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-01-11ie: fix compilation with refcount debuggingPatrick McHardy1-1/+1
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-01-11lce: fix condition to decide whether to use direct link establishmentPatrick McHardy1-2/+1
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>
2011-01-10lce: maintain TPUI assignment in location tablePatrick McHardy4-13/+62
Maintain TPUIs and use for paging PTs. Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-01-09lce: maintain LCE location tablePatrick McHardy6-28/+143
Maintain LCE location table and use it for determining paging mode and setup capabilities. Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-01-07backtrace: remove dead definePatrick McHardy1-2/+0
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-01-07example: update .gitignorePatrick McHardy1-0/+1
Add fp-siemens-proprietary to .gitignore. Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-01-07lce: change PMID/IPUI assignment debugging outputPatrick McHardy1-4/+4
Change PMID/IPUIassignment debugging output to match other debugging messages. Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-23ie: add <<SERVICE-CHANGE>> IEPatrick McHardy2-0/+60
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-22raw: add dect_raw_close() functionPatrick McHardy3-4/+19
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-19netlink: set PARI on dect_llme_mac_me_info_res, clear on dect_llme_scan_reqPatrick Mchardy1-0/+4
Signed-off-by: Patrick Mchardy <kaber@t61.localnet>
2010-11-17netlink: clear ARI to make it usable for dect_ari_cmp()Patrick McHardy1-0/+1
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-16ie: fix SS facility prototol discriminatorPatrick McHardy1-1/+1
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-16netlink: add MAC_ME_INFO-res and SCAN-req primitivesPatrick McHardy4-7/+98
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-16timer: export timer functions declarationsPatrick McHardy3-10/+29
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>
2010-11-16cc: don't stop completion timer if not runningPatrick McHardy1-1/+2
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-16ie: add <<FACILITY>> IEPatrick McHardy2-0/+33
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-16clms: hexdump data section contents, decode header as stringsPatrick McHardy1-3/+14
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-16libdect: also clear dect handle private areaPatrick McHardy1-1/+1
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-14libdect: don't reseed PRNG on dect_open_handle()Patrick McHardy2-3/+6
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-14netlink: restore broadcast reception handler after sending unicast requestsPatrick McHardy1-3/+5
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>
2010-11-14identities: add dect_ari_cmp()Patrick McHardy2-1/+6
Already contained in the header files, but never implemented. Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-14libdect: support allocating per-handle private spacePatrick McHardy3-1/+13
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-12backtrace: fix warnings on 64 bitPatrick McHardy1-2/+2
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>
2010-11-12build: verify that event.h and event library are compatiblePatrick McHardy1-0/+27
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>