summaryrefslogtreecommitdiff
path: root/src/irmd
Commit message (Collapse)AuthorAgeFilesLines
...
* | lib: Add threadpool managerdimitri staessens2017-07-261-183/+26
| | | | | | | | | | | | | | | | This adds a threadpool manager component in the library that is used in the IRMd and IPCPs. The threadpool manager now doesn't detach threads but does a join when they exit. This solves a data race in the previous implementation where some threads were not completely finished upon release of some resources.
* | irmd: Fix order of IPCPsSander Vrijders2017-07-181-1/+1
|/ | | | | This fixes the order of the IPCPs in the IRMd, so that the right type is queried first on flow allocation.
* ipcpd, lib, irmd: Hardcode shim hash algorithmsSander Vrijders2017-07-121-2/+16
| | | | | | | 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/+3
|
* lib, ipcpd, irmd: Add full-fledged QoSSander Vrijders2017-06-214-3/+5
| | | | | | | 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, ...
* Merged in dstaesse/ouroboros/be-macro (pull request #514)dimitri staessens2017-06-051-1/+1
|\ | | | | | | include: Fix macro for printing hash
| * include: Fix macro for printing hashdimitri staessens2017-06-041-1/+1
| |
* | lib, irmd: Handle case fallthrough in gcc 7dimitri staessens2017-06-041-0/+1
|/
* ipcpd: Allow specifying fixed syntaxdimitri staessens2017-05-152-7/+7
| | | | | | 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.
* irmd: Fix unbinding AP and AP-Is from a namedimitri staessens2017-05-093-4/+16
| | | | | | | APs and AP-Is were not removed from the registry entry for that name. Reported by: loic.vervaeke@ugent.be Tested by: loic.vervaeke@ugent.be
* irmd: Remove some debug logsdimitri staessens2017-04-281-6/+0
|
* ipcpd: Add capability reportingdimitri staessens2017-04-273-36/+61
| | | | | | | | 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
* Merged in dstaesse/ouroboros/be-hashing (pull request #484)dimitri staessens2017-04-164-22/+28
|\ | | | | | | Be hashing
| * ipcpd: Allow specifying the hash algorithm to usedimitri staessens2017-04-164-22/+28
| | | | | | | | Currently CRC32, MD5, and SHA3 (224, 256, 384 and 512 bit) are supported.
* | irmd, ipcpd: Include socket in select() for FreeBSDdimitri staessens2017-04-161-1/+1
|/ | | | Fixes #41
* include, lib: Rename ap_init/ap_finidimitri staessens2017-04-131-1/+1
| | | | Fixes #35
* Merged in dstaesse/ouroboros/be-hashes (pull request #479)dimitri staessens2017-04-136-171/+253
|\ | | | | | | lib, ipcpd, irmd: Register hash instead of name
| * lib, ipcpd, irmd: Register hash instead of namedimitri staessens2017-04-136-171/+253
| | | | | | | | | | | | | | | | | | 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.
* | irmd: Fix mixed declarationdimitri staessens2017-04-111-2/+2
|/
* irmd: Remove unnecessary state locksdimitri staessens2017-04-061-207/+36
|
* irmd: Prevent impatient user deadlock on shutdowndimitri staessens2017-04-061-0/+18
|
* lib, irmd: Implement flow allocation timeoutdimitri staessens2017-04-066-112/+213
| | | | | | 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.
* irmd: Initialize in stack memorydimitri staessens2017-04-041-482/+485
|
* ipcpd, irmd: Fix cleanup of thread resourcesdimitri staessens2017-04-041-23/+17
|
* lib, irmd, ipcpd: Stabilize flow allocationdimitri staessens2017-04-044-48/+86
|
* irmd: Fix dealloc of pending flowdimitri staessens2017-04-021-2/+5
|
* irmd: Fix thread creation orderdimitri staessens2017-04-021-1/+1
|
* irmd: Add dynamic threadpooldimitri staessens2017-04-011-31/+196
| | | | | | | | | | | This makes the IRMd add/remove worker threads dynamically. IRMD_TPM_TIMEOUT sets a timer in the threadpool manager for checking idle threads. Each time this timer expires, it will reduce the threadpool by one. IRMD_MIN_AV_THREADS is the minimum number of available worker threads. If the number of active threads goes under this threshold, the threadpool manager will create threads to get the number of threads to IRMD_MAX_AV_THREADS, unless IRMD_MAX_THREADS is reached.
* irmd: Keep track of qos in irm_flowdimitri staessens2017-03-315-19/+17
| | | | This fixes the bug in handling multiple concurrent flow allocations.
* irmd: Fix assignment bugdimitri staessens2017-03-311-2/+2
|
* lib: Revise flow allocation APIdimitri staessens2017-03-313-154/+68
| | | | | | 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.
* irmd: Fix shutdown with active acceptdimitri staessens2017-03-291-0/+1
|
* irmd: Exit blocking threads from irm_sanitizerdimitri staessens2017-03-291-21/+25
| | | | | | Some blocking calls caused mainloops to never exit. The irm_sanitizer will now clean up those structs before exiting. This will speed up regular exit and avoids non-cancelling threads.
* irmd: Set failed flows to FLOW_NULL before destroydimitri staessens2017-03-292-1/+1
|
* Merged in dstaesse/ouroboros/be-irmd (pull request #410)dimitri staessens2017-03-221-0/+3
|\ | | | | | | irmd: Fix some missing locks
| * irmd: Fix some missing locksdimitri staessens2017-03-221-0/+3
| |
* | irmd: Fix clock used for timedwaitdimitri staessens2017-03-221-1/+1
| |
* | ipcpd: normal: Several bugfixesSander Vrijders2017-03-211-2/+3
|/ | | | These solve several bugfixes in the normal.
* Merge branch 'be' of bitbucket.org:ouroboros-rina/ouroboros into beSander Vrijders2017-03-2114-45/+43
|\
| * Change email addresses to ugent.beSander Vrijders2017-03-0313-15/+27
| | | | | | | | | | | | | | Our mailserver was migrated from intec.ugent.be to the central ugent.be emailserver. This PR updates the header files to reflect this change as well. Some header files were also homogenized if the parameters within the functions were badly aligned.
| * build: Format CMakeLists.txt filesSander Vrijders2017-03-031-11/+11
| | | | | | | | The CMakeLists files are now properly indented.
| * lib: Remove application entity nameSander Vrijders2017-02-245-19/+5
| | | | | | | | | | The AE name should not be passed over the layer boundaries. If an application has more than one AE it should exchange this in CACEP.
* | Merge branch 'testing' into beSander Vrijders2017-03-213-6/+25
|\ \ | |/ |/|
| * irmd: Fix timeouts in reg_entrydimitri staessens2017-03-213-6/+25
| | | | | | | | | | This fixes bad timedwaits for the state of the reg_entry. Also slightly revised timedwaits throughout the prototype.
* | Merge branch 'testing' into beSander Vrijders2017-02-241-1/+1
|\|
| * irmd: Fix bug in name comparison of IPCPsdimitri staessens2017-02-241-1/+1
| |
* | Merge branch 'testing' into beSander Vrijders2017-02-231-3/+32
|\|
| * irmd: Check IPCP name when creating an IPCPdimitri staessens2017-02-231-3/+25
| |
| * irmd: Check IPCP type before bootstrapdimitri staessens2017-02-221-0/+7
| | | | | | | | | | This prevents assertion failures in the IPCP in some cases. IPCPs can now safely assert the type.
* | irmd: Fix detection of IRMddimitri staessens2017-02-211-22/+22
|/ | | | | | | When starting two IRMds, the second one exits, but applications can't contact the first because the second instance took the UNIX socket. Now the lockfile is checked for running IRMd instances before opening the UNIX socket.