summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | ipcpd: Add multithreading to schedulerdimitri staessens2017-07-292-26/+44
| | | | | | | | | | | | | | | | | | | | | | | | The scheduler in the normal IPCP is now multithreaded. While useful in itself for scalability, it currently solves thread starvation in case of executing post_sdu operations that may require a response. This could be further revised in the future to split the SDU handling threads from the component tasks.
| * | ipcpd: Cleanup sdb after unpackeddimitri staessens2017-07-291-6/+3
| | |
| * | ipcpd: Harmonize logs in directorydimitri staessens2017-07-291-1/+5
| | |
| * | ipcpd: Some fixes in DHTdimitri staessens2017-07-291-13/+10
|/ / | | | | | | | | | | | | Fixes a memory leak when the DHT is destroyed during a send_msg. Fixes a deadlock when destroying the DHT with a pending lookup. Removes some debug logs that clutter output due to expected redundant FIND_VALUE responses.
* | Merged in dstaesse/ouroboros/be-tpm (pull request #536)dimitri staessens2017-07-267-360/+365
|\ \ | | | | | | | | | lib: Add threadpool manager
| * | lib: Add threadpool managerdimitri staessens2017-07-267-360/+365
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merged in dstaesse/ouroboros/be-dht-retry (pull request #535)dimitri staessens2017-07-241-4/+16
|\| | | | | | | | | | | ipcpd: Retry sending DHT response messages
| * | ipcpd: Retry sending DHT response messagesdimitri staessens2017-07-241-4/+16
|/ / | | | | | | | | | | | | This will make the remote retry sending responses when the DT component can't send the message. This is most useful at enrollment, when the remote's routing table may need to wait a bit on the routing component for a path to the new member,
* | Merge branch 'testing' into beSander Vrijders2017-07-201-8/+11
|\|
| * Merged in dstaesse/ouroboros/testing-cdap-destroy (pull request #534)dimitri staessens2017-07-201-8/+11
| |\ | | | | | | | | | lib: Fix destruction of CDAP instances
| | * 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.
* | | Merge branch 'testing' into beSander Vrijders2017-07-201-7/+19
|\| |
| * | Merged in dstaesse/ouroboros/testing-cdap (pull request #533)dimitri staessens2017-07-201-7/+19
| |\| | | | | | | | | | lib: Fix processing state in CDAP
| | * 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.
* | Merged in dstaesse/ouroboros/be-dht-lookup (pull request #532)dimitri staessens2017-07-201-20/+25
|\ \ | | | | | | | | | ipcpd: Fix DHT lookup processing
| * | ipcpd: Fix DHT lookup processingdimitri staessens2017-07-201-20/+25
|/ / | | | | | | | | Not all returned contacts were processed when a FIND_NODE or FIND_VALUE message was returned.
* | Merged in sandervrijders/ouroboros/be-ipcp-select (pull request #531)Sander Vrijders2017-07-181-1/+1
|\ \ | | | | | | | | | irmd: Fix order of IPCPs
| * | 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.
* | Merged in dstaesse/ouroboros/be-dht (pull request #529)dimitri staessens2017-07-1817-163/+2745
|\ \ | |/ |/| | | ipcpd: Add DHT as directory in normal IPCP
| * ipcpd: Add DHT as directory in normal IPCPdimitri staessens2017-07-1817-163/+2745
| | | | | | | | | | | | | | | | | | This implements a Distributed Hash Table (DHT) based on the Kademlia protocol, with default parameters set as used in the BitTorrent Mainline DHT. This initial implementation is almost feature complete, except for some things to be done after a testing period: caching and stale peer bumping, and setting the expiration timeout via the IRM tool.
* | Merged in dstaesse/ouroboros/be-fixes (pull request #530)0.5dimitri staessens2017-07-182-64/+82
|\ \ | |/ |/| | | Be fixes
| * 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: Log exit status before log_fini()dimitri staessens2017-07-161-2/+2
|/
* Merged in sandervrijders/ouroboros/be-hash (pull request #528)Sander Vrijders2017-07-128-51/+69
|\ | | | | | | | | | | ipcpd, lib, irmd: Hardcode shim hash algorithms Approved-by: dimitri staessens <dimitri.staessens@ugent.be>
| * ipcpd, lib, irmd: Hardcode shim hash algorithmsSander Vrijders2017-07-128-51/+69
|/ | | | | | | This will hardcode the shim hash algorithms as they don't have an enrollment phase. Fixes #44
* Merged in dstaesse/ouroboros/be-irmd-shutdown (pull request #527)dimitri staessens2017-07-123-13/+31
|\ | | | | | | irmd: Shutdown sanitizer without cancellation
| * irmd: Shutdown sanitizer without cancellationdimitri staessens2017-07-123-13/+31
| |
* | Merged in dstaesse/ouroboros/be-fixes (pull request #526)dimitri staessens2017-07-124-22/+19
|\| | | | | | | Be fixes
| * ipcpd: Shutdown shim-udp without cancellationdimitri staessens2017-07-121-17/+14
| |
| * ipcpd: Check connmgr acceptor thread at createdimitri staessens2017-07-121-1/+2
| |
| * lib: Fix formatting in irm.cdimitri staessens2017-07-121-2/+1
| |
| * lib: Make read_msg static in cacep.cdimitri staessens2017-07-121-2/+2
| |
* | Merged in dstaesse/ouroboros/be-list (pull request #525)dimitri staessens2017-07-121-1/+2
|\| | | | | | | include: Use offsetof in list.h
| * include: Use offsetof in list.hdimitri staessens2017-07-121-1/+2
| |
* | Merged in dstaesse/ouroboros/be-fmt (pull request #524)dimitri staessens2017-07-102-11/+14
|\| | | | | | | include: Fix formatting in list.h
| * include: Fix formatting in list.hdimitri staessens2017-07-092-11/+14
| |
* | Merged in dstaesse/ouroboros/be-rng (pull request #523)dimitri staessens2017-07-093-5/+113
|\| | | | | | | Be rng
| * lib: Add secure random generatordimitri staessens2017-07-093-5/+113
| | | | | | | | | | This adds a secure random number generator. It will use OS specific calls with a fallback to OpenSSL if available.
* | Merged in dstaesse/ouroboros/be-time (pull request #522)dimitri staessens2017-07-093-6/+173
|\| | | | | | | lib: Fix bug and add test for time_utils
| * lib: Fix bug and add test for time_utilsdimitri staessens2017-07-053-6/+173
| |
* | Merged in dstaesse/ouroboros/be-cdap-req (pull request #521)dimitri staessens2017-07-041-2/+13
|\| | | | | | | lib: Handle errors when creating cdap_req structs
| * lib: Handle errors when creating cdap_req structsdimitri staessens2017-07-041-2/+13
| |
* | Merged in dstaesse/ouroboros/be-lib (pull request #520)dimitri staessens2017-07-031-0/+3
|\| | | | | | | lib: Fix memleak in FRCT enrollment
| * lib: Fix memleak in FRCT enrollmentdimitri staessens2017-07-031-0/+3
|/
* Merged in sandervrijders/ouroboros/be-qos (pull request #517)Sander Vrijders2017-06-2120-68/+298
|\ | | | | | | lib, ipcpd, irmd: Add full-fledged QoS
| * lib, ipcpd, irmd: Add full-fledged QoSSander Vrijders2017-06-2120-68/+298
|/ | | | | | | 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-dev-include (pull request #519)dimitri staessens2017-06-211-8/+8
|\ | | | | | | lib: include missing headers in dev.c
| * 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
* | Merged in dstaesse/ouroboros/be-fix-alloc (pull request #518)dimitri staessens2017-06-192-3/+1
|\| | | | | | | ipcpd: Fix flow allocation over normal
| * ipcpd: Fix flow allocation over normaldimitri staessens2017-06-192-3/+1
|/