summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | lib: Fix calling frct_clear in wrong functionSander Vrijders2017-08-221-2/+2
| | | | | | | | | | | | frct_clear was called in ouroboros_fini instead of ouroboros_init.
* | | Merged in sandervrijders/ouroboros/be-crc (pull request #561)Sander Vrijders2017-08-224-16/+43
|\| | | | | | | | | | | lib: Fix CRC check and add frct_clear
| * | lib: Fix CRC check and add frct_clearSander Vrijders2017-08-224-16/+43
|/ / | | | | | | | | | | This adds the CRC check by default on outgoing SDUs. It fixes some errors in the serialization and deserialization of the SDU. frct_clear was added to avoid bad initialization of the array of FRCT instances.
* | Merged in sandervrijders/ouroboros/be-tw (pull request #560)Sander Vrijders2017-08-225-164/+27
|\ \ | | | | | | | | | Be tw
| * | lib: Make timerwheel a passive componentSander Vrijders2017-08-224-162/+25
| | | | | | | | | | | | | | | | | | This turns the timerwheel into a passive component since it is used by application using the library. The user of the timerwheel now has to call timerwheel_move to advance the timerwheel.
| * | lib: Fix check for robust mutexesSander Vrijders2017-08-221-2/+2
| | | | | | | | | | | | | | | There was an else clause matched with the wrong if statement, resulting in robust mutexes being enabled even in glibc 2.25.
* | | Merged in dstaesse/ouroboros/be-connmgr (pull request #559)dimitri staessens2017-08-225-102/+113
|\ \ \ | |/ / |/| | | | | ipcpd: Improve locking in connmgr
| * | lib, irmd: Use static buffer for messagesdimitri staessens2017-08-222-36/+20
| | |
| * | ipcpd: Improve locking in connmgrdimitri staessens2017-08-223-66/+93
|/ /
* | Merged in dstaesse/ouroboros/be-build (pull request #557)dimitri staessens2017-08-2187-638/+645
|\ \ | | | | | | | | | build: Revise the build system
| * | build: Revise the build systemdimitri staessens2017-08-2187-638/+645
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This revises the build system to have configuration per system component. System settings can now be set using cmake. The standard compliance defines were removed from configuration header and are set in the sources where needed. Also some small code refactors, such as moving the data for shims out of the ipcp structure to the respective shims were performed.
* | | Merge branch 'testing' into beSander Vrijders2017-08-202-19/+34
|\ \ \ | |/ / |/| / | |/
| * Merged in dstaesse/ouroboros/testing-bugfix (pull request #558)dimitri staessens2017-08-202-19/+34
| |\ | | | | | | | | | ipcpd, irmd: Fix data races
| | * ipcpd, irmd: Fix data racesdimitri staessens2017-08-192-19/+34
| |/ | | | | | | | | | | Fixes a data race in the IRMd when IPCPs bail immediately after being created (e.g. due to an error). Fixes a race between the acceptor threads and the threads managed by threadpool manager upon shutdown.
* | Merged in sandervrijders/ouroboros/be-frct (pull request #555)Sander Vrijders2017-08-1718-269/+718
|\ \ | |/ |/| | | lib: Add basic FRCT mechanisms
| * lib: Add basic FRCT mechanismsSander Vrijders2017-08-1718-269/+718
|/ | | | | | | | | | This adds the basic FRCT mechanisms to the library. Upon flow alloc or accept an FRCT instance is now created and used when reading or writing to the flow. The timerwheel has been refactored to allow recharging timers and removing them and is now part of the library. The first SDU sent over the connection has the DRF set and this initializes the connection. Sender and receiver inactivity timers are added.
* Merged in dstaesse/ouroboros/be-llc-bpf (pull request #556)dimitri staessens2017-08-177-189/+318
|\ | | | | | | Be llc bpf
| * irmd: Handle IPCP creation fails gracefullydimitri staessens2017-08-172-35/+52
| |
| * ipcpd: Support Berkeley Packet Filter in LLC shimdimitri staessens2017-08-174-148/+260
| | | | | | | | | | This adds support reading Ethernet frames using the Berkeley Packet Filter (BPF). Ouroboros now fully runs on OS X Sierra.
| * lib: Check system-specific call firstdimitri staessens2017-08-171-6/+6
|/ | | | The build failed on OS X if an old version of libgrypt is installed.
* Merged in dstaesse/ouroboros/be-accept-target (pull request #554)dimitri staessens2017-08-163-5/+24
|\ | | | | | | irmd, ipcpd: Signal acceptor only
| * irmd, ipcpd: Signal acceptor onlydimitri staessens2017-08-163-5/+24
|/ | | | | This adds an extra condvar so the mainloops can signal the acceptor thread without waking up all mainloops.
* Merged in dstaesse/ouroboros/be-single-accept (pull request #553)dimitri staessens2017-08-165-166/+349
|\ | | | | | | Be single accept
| * ipcpd: Fix missing clock_gettime in flow allocatordimitri staessens2017-08-161-0/+2
| |
| * ipcpd: Refactor normal IPCP failure handlingdimitri staessens2017-08-161-35/+24
| |
| * irmd, ipcpd: Listen on a dedicated accept() threaddimitri staessens2017-08-163-131/+323
| | | | | | | | | | | | | | | | | | | | | | The IRMd and IPCPs will now call accept on their command sockets from a single thread that will dispatch work to the other threads. This solves a problem on OS X and FreeBSD where accept() doesn't time out when setting SO_RCVTIMEO on the socket. Calling kqueue or select() on that socket to wait for events before calling accept() didn't solve it since select() or kqueue() might wake up multiple threads, with the non-working threads again blocked on the accept() on shutdown.
* | Merged in dstaesse/ouroboros/be-license (pull request #552)dimitri staessens2017-08-13191-270/+191
|\| | | | | | | build: Replace fsf snail mail with contact URL
| * build: Replace fsf snail mail with contact URLdimitri staessens2017-08-13191-270/+191
| |
* | Merged in dstaesse/ouroboros/be-lib-fixes (pull request #551)dimitri staessens2017-08-132-127/+144
|\| | | | | | | Be lib fixes
| * lib: Fix data race on fqueues bitmapdimitri staessens2017-08-131-126/+143
| | | | | | | | | | | | This locks the process when allocating and destroying flow_sets. The flows_lock has been renamed to lock. Refactors and fixes a memleak in ouroboros_init.
| * lib: Fix TPM thread count on failuredimitri staessens2017-08-131-1/+1
|/
* Merged in dstaesse/ouroboros/be-tpm (pull request #550)dimitri staessens2017-08-132-38/+85
|\ | | | | | | lib: Fix instability in threadpool manager
| * ipcpd: Fix tracking of outstanding DHT requestsdimitri staessens2017-08-131-7/+28
| | | | | | | | | | | | The DHT failed when receiving multiple responses in a short timeframe. The lookup struct now keeps track of the number of outstanding requests.
| * lib: Fix instability in threadpool managerdimitri staessens2017-08-121-31/+57
| | | | | | | | | | | | The threadpool manager now tracks threads to prevent cyclic behaviour where too many threads shut down and the TPM responds with creating additional threads.
* | Merged in dstaesse/ouroboros/be-apple (pull request #549)dimitri staessens2017-08-111-2/+2
|\ \ | | | | | | | | | irmd: Fix mainloop timeout on OS X
| * | irmd: Fix mainloop timeout on OS Xdimitri staessens2017-08-111-2/+2
| | |
* | | Merged in dstaesse/ouroboros/be-apple (pull request #548)dimitri staessens2017-08-1114-62/+59
|\| | | |/ |/| | | build: Fix compilation on OS X Sierra
| * build: Fix compilation on OS X Sierradimitri staessens2017-08-1114-62/+59
|/
* Merged in sandervrijders/ouroboros/be-clang (pull request #547)Sander Vrijders2017-08-104-14/+8
|\ | | | | | | lib, ipcpd, tools: Fix enum assignments
| * lib, ipcpd, tools: Fix enum assignmentsSander Vrijders2017-08-104-14/+8
|/ | | | This fixes several assignments to the wrong enum type.
* Merged in sandervrijders/ouroboros/be-gitversiongen (pull request #546)Sander Vrijders2017-08-101-7/+0
|\ | | | | | | build: Simplify GitVersionGen
| * build: Simplify GitVersionGenSander Vrijders2017-08-101-7/+0
|/ | | | | This simplifies the macro GitVersionGen so that it doesn't need to rely on the sort executable.
* Merged in dstaesse/ouroboros/be-cmake-osx (pull request #545)dimitri staessens2017-08-101-0/+2
|\ | | | | | | build: Reset LIBGCRYPT_LIBRARIES when not found
| * build: Reset LIBGCRYPT_LIBRARIES when not founddimitri staessens2017-08-101-0/+2
|/
* Merged in dstaesse/ouroboros/be-libgcrypt (pull request #544)dimitri staessens2017-08-0914-96/+176
|\ | | | | | | build, lib, ipcpd, irmd: Add support for libgcrypt
| * build, lib, ipcpd, irmd: Add support for libgcryptdimitri staessens2017-08-0914-96/+176
|/ | | | | | | | | | | | | | | | This adds support for libgcrypt. If at least version 1.7.0 of libgcrypt is present, it may be used for secure random number generation and is used for hashing in the irmd/ipcp. The hash definitions are moved to the internal hash.h header, and defined independently of the hashes that are defined as part of the directory policy for the normal IPCP. The translation is moved from the IRMd to ipcpd/ipcp.h. The bootstrap call from the IRMd expects the IPCP to return the correct hash algorithm with a dif_info struct, which is in line with the behavior of the enroll call. This also improves how some platform checks in the build system are handled.
* Merged in dstaesse/ouroboros/testing-fa (pull request #543)dimitri staessens2017-08-081-2/+4
|\ | | | | | | ipcpd: Fix assignment of fd's in flow allocator
| * ipcpd: Fix assignment of fd's in flow allocatorDimitri Staessens2017-08-081-2/+4
|/
* Merged in dstaesse/ouroboros/be-irmd-timeo (pull request #542)0.6dimitri staessens2017-08-064-36/+85
|\ | | | | | | irmd: Specify timeout per command
| * ipcpd: Fix finding values in DHTDimitri Staessens2017-08-051-5/+18
| | | | | | | | | | | | | | | | | | The DHT lookup would stop if a node returned no new useful information (i.e. the value for the key or unknown nodes closer to the key) without waiting for other pending requests that could still return useful information. Now it correctly tracks the number of outstanding requests or returns if it doesn't get a response for KAD_T_RESP seconds. This fixes multi-hop flow allocation over the normal.