summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
* build, lib, ipcpd, irmd: Add support for libgcryptdimitri staessens2017-08-093-14/+34
| | | | | | | | | | | | | | | | 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.
* irmd: Specify timeout per commandDimitri Staessens2017-08-051-2/+5
| | | | | | | The commands towards the IPCPs have different time requirements, but the irmd had only a single timeout value to wait for a response. This commit allows setting different timeouts for the IRMd based on the command, configurable globally.
* build: Add check for robust mutexesSander Vrijders2017-08-032-1/+2
| | | | | | 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.
* lib: Simplify initializing flowsSander Vrijders2017-08-012-5/+5
| | | | | This refactors dev.c to have a common function called init_flow that is called whenever a flow is allocated in dev.c
* ipcpd: Add multithreading to schedulerdimitri staessens2017-07-291-1/+1
| | | | | | | | 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.
* lib: Add threadpool managerdimitri staessens2017-07-262-8/+51
| | | | | | | | 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.
* ipcpd: Add DHT as directory in normal IPCPdimitri staessens2017-07-181-2/+3
| | | | | | | | | 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.
* ipcpd, lib, irmd: Hardcode shim hash algorithmsSander Vrijders2017-07-121-2/+5
| | | | | | | 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-1/+3
|
* include: Use offsetof in list.hdimitri staessens2017-07-121-1/+2
|
* include: Fix formatting in list.hdimitri staessens2017-07-092-11/+14
|
* lib: Add secure random generatordimitri staessens2017-07-091-0/+32
| | | | | This adds a secure random number generator. It will use OS specific calls with a fallback to OpenSSL if available.
* lib, ipcpd, irmd: Add full-fledged QoSSander Vrijders2017-06-214-12/+28
| | | | | | | 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, ...
* include: Fix macro for printing hashdimitri staessens2017-06-042-5/+12
|
* build: Fix bad if checkSander Vrijders2017-05-181-2/+1
| | | | This fixes a bad if check for the version of cmake.
* Merged in sandervrijders/ouroboros/be-swig (pull request #507)Sander Vrijders2017-05-181-1/+11
|\ | | | | | | build: Fix deprecation warning
| * build: Fix deprecation warningSander Vrijders2017-05-161-1/+11
| | | | | | | | | | | | This fixes a deprecation warning for CMake 3.8 and higher. swig_add_module has been deprecated in favor of swig_add_library.
* | ipcpd: normal: Make routing a policySander Vrijders2017-05-151-0/+5
|/ | | | | | 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-155-26/+62
| | | | | | 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-0/+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.
* ipcpd: Add capability reportingdimitri staessens2017-04-271-0/+8
| | | | | | | | 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-263-20/+59
| | | | | | | 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: Remove dependency on installed headersSander Vrijders2017-04-243-10/+12
| | | | | | | The header ipcp.h was not installed systemwide, giving compile time errors when trying to compile external programs that use irm.h. ipcp.h also included hash.h, which exposes project interal functions. The enum was moved to ipcp.h to prevent this.
* ipcpd: Allow specifying the hash algorithm to usedimitri staessens2017-04-163-4/+19
| | | | Currently CRC32, MD5, and SHA3 (224, 256, 384 and 512 bit) are supported.
* include: Fix typo in endian.hdimitri staessens2017-04-161-1/+1
|
* lib: Add implementation for MD5 hashesdimitri staessens2017-04-162-2/+75
|
* lib: Fix minor things in sha3 implementationdimitri staessens2017-04-161-3/+3
|
* lib: Fix error in SWIG wrapperSander Vrijders2017-04-131-1/+3
| | | | This fixes an error in the SWIG wrapper.
* include: Add C++ directives in headersdimitri staessens2017-04-139-2/+79
| | | | Fixes #34
* 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-1311-30/+214
|\ | | | | | | lib, ipcpd, irmd: Register hash instead of name
| * lib, ipcpd, irmd: Register hash instead of namedimitri staessens2017-04-1311-30/+214
| | | | | | | | | | | | | | | | | | 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.
* | build: Add STATUS to message statementsSander Vrijders2017-04-121-2/+2
|/ | | | | | This adds the STATUS variable to the message() call in CMakeLists.txt in places where it was missing. This ensures that the message is printed to stdout instead of stderr.
* lib: Make timeout for flow allocation constdimitri staessens2017-04-101-5/+5
|
* build: Change compiler check output and update wrapSander Vrijders2017-04-071-1/+1
| | | | | | This removes some of the log messages spewed out during a check of a compiler flag. It also makes the SWIG compiler flag for C99 independent of the compiler.
* lib, irmd: Implement flow allocation timeoutdimitri staessens2017-04-061-2/+0
| | | | | | 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.
* ipcpd: Add dynamic threadpooling for IPCPsdimitri staessens2017-04-021-1/+5
|
* lib: Fix some issues in lockless rbuffdimitri staessens2017-04-011-1/+1
|
* lib: Lockless implementation of the rbuffdimitri staessens2017-04-011-0/+1
|
* irmd: Add dynamic threadpooldimitri staessens2017-04-011-3/+8
| | | | | | | | | | | 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.
* lib: Add a check if a bitmap ID is in usedimitri staessens2017-04-011-1/+4
|
* include: Fix indentation in fcntl.hdimitri staessens2017-04-011-9/+9
|
* lib: Revise flow allocation APIdimitri staessens2017-03-311-14/+9
| | | | | | 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.
* ipcpd: normal: Fill in forwarding tableSander Vrijders2017-03-241-1/+3
| | | | | | The routing now takes the results of the routing table to fill in the forwarding table, by going through the neighbors and filling in the right fd.
* include: fflush stdout after printing a log msgdimitri staessens2017-03-221-0/+1
|
* Merge branch 'testing' into beSander Vrijders2017-03-211-2/+2
|\
| * ipcpd: local: Handle failed flow allocationSander Vrijders2017-03-211-3/+3
| | | | | | | | | | | | When the flow_req_arr returned a negative error, it was not handled correctly in the local IPCP, and an access was made into a table with a negative integer. This handles it correctly.
* | lib: Add queued SDUs when adding fd to flow_setdimitri staessens2017-03-211-0/+2
| | | | | | | | | | This solves some race conditions where packets arrive on a flow before it is added to a flow_set.
* | lib: Manage multiple flows with a single CDAP instancedimitri staessens2017-03-031-3/+8
| | | | | | | | | | | | | | | | You can now add multiple flows to a CDAP instance. This will simplify sending messages to different peers (e.g. for syncing the RIB). A request will now return an array of keys terminated by CDAP_KEY_INVALID. Removes the enum from the CDAP proto file to just take the opcode as an integer.
* | Change email addresses to ugent.beSander Vrijders2017-03-0329-47/+67
| | | | | | | | | | | | | | 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.