summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'be' of bitbucket.com:dstaesse/ouroboros into beDimitri Staessens2017-08-0412-40/+54
|\
| * Merge branch 'testing' into beSander Vrijders2017-08-042-9/+17
| |\
| | * Merged in dstaesse/ouroboros/testing-irmd (pull request #541)dimitri staessens2017-08-042-9/+17
| | |\ | | | | | | | | | | | | irmd: Release lock before ipcp_query
| | | * ipcpd: Fix missing space in shim-eth-llcdimitri staessens2017-08-041-1/+1
| | | |
| | | * irmd: Release lock before ipcp_querydimitri staessens2017-08-041-8/+16
| | |/ | | | | | | | | | | | | | | | The blocking ipcp_query call was called under reg_lock, causing flow_allocs over the shim-eth-llc to block the irmd for prolonged timespans.
| * | Merge branch 'testing' into beSander Vrijders2017-08-034-16/+54
| |\|
| | * Merged in dstaesse/ouroboros/testing-deadlines (pull request #540)dimitri staessens2017-08-034-16/+54
| | |\ | | | | | | | | | | | | ipcpd: Fix pthread_cond_timedwait deadlines
| * | \ Merged in sandervrijders/ouroboros/be-hurd (pull request #539)Sander Vrijders2017-08-0310-31/+37
| |\ \ \ | | | | | | | | | | | | | | | build: Add check for robust mutexes
| | * | | build: Add check for robust mutexesSander Vrijders2017-08-0310-31/+37
| |/ / / | | | | | | | | | | | | | | | | | | | | This adds a check for robust mutexes. The constant HAVE_ROBUST_MUTEX is set accordingly in config.h. It also adds some other fixes to make the prototype compile on the Hurd.
* | | | Merge remote-tracking branch 'origin/testing-deadlines' into beDimitri Staessens2017-08-034-16/+54
|\ \ \ \ | |/ / / |/| | / | | |/ | |/|
| * | ipcpd: Fix pthread_cond_timedwait deadlinesdimitri staessens2017-08-034-16/+54
| |/ | | | | | | | | | | This fixes pthread_condtimedwaits in the flow allocator of all IPCPs that had bad deadlines set (the interval instead of the actual absolute time).
* | Merged in sandervrijders/ouroboros/be-open-flow (pull request #538)Sander Vrijders2017-08-016-331/+89
|\ \ | | | | | | | | | | | | | | | lib: Simplify opening flows Approved-by: dimitri staessens <[email protected]>
| * | lib: Simplify initializing flowsSander Vrijders2017-08-016-331/+89
|/ / | | | | | | | | This refactors dev.c to have a common function called init_flow that is called whenever a flow is allocated in dev.c
* | Merged in dstaesse/ouroboros/be-fixes (pull request #537)dimitri staessens2017-07-305-48/+64
|\ \ | | | | | | | | | Be fixes
| * | ipcpd: Fix registration bug in DHTdimitri staessens2017-07-291-2/+2
| | |
| * | 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 <[email protected]>
| * 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