summaryrefslogtreecommitdiff
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* lib: Fix destruction of CDAP instancesdimitri staessens2017-07-201-8/+11
| | | | | | | The received message list was not correctly freed upon destruction of the CDAP object. There was also still a rare case in which thread cancellation would keep a lock, blocking the IPCP shutdown, which is also fixed.
* lib: Fix processing state in CDAPdimitri staessens2017-07-201-7/+19
| | | | | | The processing state was not correctly reset at all points in the loop, causing CDAP to block the IPCP on shutdown in some cases. This also adds a missing unlock and reorders some other unlocks.
* lib: Wait for fqueue loop at cdap_del_flowdimitri staessens2017-07-161-62/+80
| | | | | | | The enrollment calls dealloc immediately after cdap_del_flow(), but the CDAP instance may still have that fd in its fqueue loop. cdap_del_flow will now wait for an fqueue loop to end before returning, to make sure the flow is not needed anymore.
* ipcpd, lib, irmd: Hardcode shim hash algorithmsSander Vrijders2017-07-121-1/+1
| | | | | | | This will hardcode the shim hash algorithms as they don't have an enrollment phase. Fixes #44
* irmd: Shutdown sanitizer without cancellationdimitri staessens2017-07-121-6/+25
|
* lib: Fix formatting in irm.cdimitri staessens2017-07-121-2/+1
|
* lib: Make read_msg static in cacep.cdimitri staessens2017-07-121-2/+2
|
* lib: Add secure random generatordimitri staessens2017-07-092-5/+81
| | | | | This adds a secure random number generator. It will use OS specific calls with a fallback to OpenSSL if available.
* lib: Fix bug and add test for time_utilsdimitri staessens2017-07-053-6/+173
|
* lib: Handle errors when creating cdap_req structsdimitri staessens2017-07-041-2/+13
|
* lib: Fix memleak in FRCT enrollmentdimitri staessens2017-07-031-0/+3
|
* lib, ipcpd, irmd: Add full-fledged QoSSander Vrijders2017-06-215-33/+253
| | | | | | | This adds more Quality of Service support to Ouroboros. One part is the network specific characteristics such as bandwidth, delay, ... The other part is end-to-end QoS like reliability, window based flow control, ...
* lib: include missing headers in dev.cdimitri staessens2017-06-211-8/+8
| | | | | The dev.c source file had some missing include headers. This PR fixes inconsistencies between the definitions and declarations in ipcp-dev.h
* lib, irmd: Handle case fallthrough in gcc 7dimitri staessens2017-06-041-0/+1
|
* lib: Fix bug in bitmapdimitri staessens2017-05-242-8/+18
|
* lib: Fix some bugs in dev.cdimitri staessens2017-05-231-45/+55
| | | | | | | Fixed releasing an allocated fd on failure. As the sending of dealloc messages has been deprecated, dealloc was simplified by removing a stale block of code (replaced with an assertion). Fixed reading some variables without a necessary lock.
* ipcpd: normal: Make routing a policySander Vrijders2017-05-152-3/+6
| | | | | | This makes the routing component into a policy since different approaches may exist to do this, depending on how high the rank of the DIF is.
* ipcpd: Allow specifying fixed syntaxdimitri staessens2017-05-154-64/+61
| | | | | | This commits adds the functions and messages to specify a fixed protocol syntax during CACEP. It also revises the messages for specifying the DT protocol syntax from the irm tool.
* ipcpd: Remove FRCT from normal IPCPdimitri staessens2017-05-101-1/+1
| | | | | | | In order to ensure 100% reliable transfer, the protocol state machine that takes care of retransmission and SDU ordering has to be in the application. Flow allocation in the normal now uses fds. The PDU_type field was deprecated and AE's within the DIF can use reserved fds.
* lib: Remove obsolete lock in dev.cdimitri staessens2017-04-281-135/+5
|
* ipcpd: Add capability reportingdimitri staessens2017-04-271-2/+4
| | | | | | | | The IPCP will now report the DIF name and the hash value to the IRMd as a dif_info struct. This can later be extended to add further capability reporting. Some bugfixes in normal. Fixes #24
* lib: Add call to reserve blocks in rdrbuffdimitri staessens2017-04-262-7/+46
| | | | | | | This adds a call ipcp_sdb_reserve to reserve memory in the rdrbuff without directly writing to a flow. The ipcp_flow_del function was renamed to ipcp_sdb_release. The functions operating on sdbs are moved to their own header.
* lib: Fix bad lock in ribdimitri staessens2017-04-201-2/+3
|
* lib: Fix compilation error in hash.cSander Vrijders2017-04-191-0/+2
| | | | | If compiled as release build, an error would be generated as the control reaches the end of a non-void function.
* ipcpd: Allow specifying the hash algorithm to usedimitri staessens2017-04-163-10/+64
| | | | Currently CRC32, MD5, and SHA3 (224, 256, 384 and 512 bit) are supported.
* lib: Add implementation for MD5 hashesdimitri staessens2017-04-164-0/+409
|
* lib: Fix minor things in sha3 implementationdimitri staessens2017-04-162-1/+40
|
* include, lib: Rename ap_init/ap_finidimitri staessens2017-04-131-2/+2
| | | | Fixes #35
* Merged in dstaesse/ouroboros/be-hashes (pull request #479)dimitri staessens2017-04-1313-232/+149
|\ | | | | | | lib, ipcpd, irmd: Register hash instead of name
| * lib, ipcpd, irmd: Register hash instead of namedimitri staessens2017-04-1313-232/+149
| | | | | | | | | | | | | | | | | | All information passed over the IRMd/IPCP boundary for using IPC services (flow allocation, registration) is now hashed. This effectively fixes the shared namespace between DIFs and the IRMDs. This PR also fixes some API issues (adding const identifiers), shuffles the include headers a bit and some small bugs.
* | lib: Fix return values in ap_init()dimitri staessens2017-04-111-4/+4
|/
* dev: Return descriptive errors for flow_allocdimitri staessens2017-04-101-10/+10
|
* lib: Make timeout for flow allocation constdimitri staessens2017-04-101-5/+5
|
* lib, irmd: Implement flow allocation timeoutdimitri staessens2017-04-064-24/+27
| | | | | | Setting the timeouts on flow_alloc and flow_accept will now work. This makes some changes to the UNIX sockets used for management communication between the APs, IRMd and IPCPs.
* lib: Fix insertion in lockless rbuffdimitri staessens2017-04-041-2/+2
|
* lib, irmd, ipcpd: Stabilize flow allocationdimitri staessens2017-04-041-28/+51
|
* lib: Fix some issues in lockless rbuffdimitri staessens2017-04-012-8/+37
|
* lib: Lockless implementation of the rbuffdimitri staessens2017-04-013-404/+789
|
* lib: Add a check if a bitmap ID is in usedimitri staessens2017-04-012-31/+65
|
* lib: Fix data race in rdrbuffdimitri staessens2017-04-011-7/+5
| | | | The blocks should be accessed inside the lock (or later with CAS).
* lib: Fix use-after-free when destroying cdap_reqdimitri staessens2017-04-012-1/+6
|
* lib: Fix missing assignment in flow_allocdimitri staessens2017-04-011-5/+13
|
* lib: Some fixes in CDAPdimitri staessens2017-04-011-1/+10
|
* lib: Fix double typedefdimitri staessens2017-03-311-2/+0
|
* Merged in sandervrijders/ouroboros/be-btree (pull request #444)Sander Vrijders2017-03-312-26/+62
|\ | | | | | | lib: Fix bugs in B-tree
| * lib: Fix bugs in B-treeSander Vrijders2017-03-312-26/+62
| | | | | | | | | | This fixes some bugs in the B-tree implementation. The test has also been rewritten to be more thorough.
* | lib: Cancel outstanding CDAP requests on destroydimitri staessens2017-03-313-1/+15
|/
* lib: Revise flow allocation APIdimitri staessens2017-03-313-145/+69
| | | | | | The flow_alloc_res and flow_alloc_resp calls have been removed. The flow_alloc and flow_accept calls are now both blocking and take an additional timeout argument.
* lib: Fix invalid access in CDAPSander Vrijders2017-03-301-2/+5
| | | | This fixes an invalid access to an object that was already freed.
* lib: Fix heap-use-after-free in CDAPdimitri staessens2017-03-301-1/+1
|