summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* ipcpd: Revise internals of normal IPCPdimitri staessens2017-09-1235-4111/+701
| | | | | | | | This removes the RIB as a datastructure and CDAP as the protocol between IPCPs. CDAP, the rib and related sources are deprecated. The link-state protocol policy is udpated to use its own protocol based on a simple broadcast strategy along a tree. The neighbors struct is deprecated and moved to the library as a generic notifier component.
* Merged in dstaesse/ouroboros/be-dht-deadlock (pull request #588)dimitri staessens2017-09-081-6/+4
|\ | | | | | | ipcpd: Shutdown DHT work thread first at destroy
| * ipcpd: Shutdown DHT work thread first at destroydimitri staessens2017-09-071-6/+4
| | | | | | | | This prevents a potential deadlock on the wrlock.
* | ipcpd: Fix double finalization after some failuresdimitri staessens2017-09-071-5/+4
|/ | | | | When enroll or bootstrap failed, finalize_components could be called twice, resulting in double frees or use-after-free.
* Merged in sandervrijders/ouroboros/be-redef (pull request #586)Sander Vrijders2017-09-071-2/+1
|\ | | | | | | ipcpd: normal: Avoid redefining a typedef
| * ipcpd: normal: Avoid redefining a typedefSander Vrijders2017-09-061-2/+1
| | | | | | | | | | This avoids a redefinition of a typedef which is a C11 feature, and thus not supported by clang when the c89 switch is enabled.
* | build: Add systemd unit on installSander Vrijders2017-09-051-1/+1
|/ | | | This adds a systemd unit for the irmd on installation of Ouroboros.
* ipcpd: normal: Simplify enroll APISander Vrijders2017-09-015-12/+10
| | | | | | | This will remove the dst parameter from enroll_boot, since it was only being used in logging. It also turns some other debug logs into info logs, and makes the component names as they are used in logs all lowercase.
* lib: Add per instance FRCT lockSander Vrijders2017-09-011-21/+35
| | | | | This adds a per instance FRCT lock, since it was taking a write lock, thereby severely impacting parallelism in dev.c
* Merged in dstaesse/ouroboros/be-fccntl (pull request #583)dimitri staessens2017-08-318-163/+140
|\ | | | | | | lib: Add fccntl configuration command
| * lib: Add fccntl configuration commanddimitri staessens2017-08-318-163/+140
| | | | | | | | | | | | | | This replaces the flow_set_* commands with a single fccntl command that can configure flows and the FRCT instance. For more details, see "man 3 fccntl".
* | ipcpd: Add check if name was already registeredSander Vrijders2017-08-305-31/+20
| | | | | | | | | | This adds a check in the shims if a name was already registered, since it should not return an error.
* | irmd: Add specific timeout for IPCP connectSander Vrijders2017-08-303-0/+7
|/ | | | | | This adds a specific timeout for IPCP connect, since it may take a lot longer than the regular socket timeout due to flow allocations in the IPCP.
* Merged in sandervrijders/ouroboros/be-corrupt (pull request #581)Sander Vrijders2017-08-296-15/+28
|\ | | | | | | Be corrupt
| * tools: irm: Fix matching of name parameterSander Vrijders2017-08-294-14/+15
| | | | | | | | | | The name parameter was not being matched correctly in ipcp connect and disconnect.
| * irmd: Fix deleting corrupt shm fileSander Vrijders2017-08-292-1/+13
| | | | | | | | | | This will delete the rdrbuff also when it has been corrupted before. Otherwise the irmd won't start, as experienced on my desktop.
* | Merged in dstaesse/ouroboros/be-ipcp-thread-leaks (pull request #580)dimitri staessens2017-08-292-2/+2
|\ \ | | | | | | | | | ipcpd: Fix thread leaks in normal IPCP
| * | ipcpd: Fix thread leaks in normal IPCPdimitri staessens2017-08-292-2/+2
| |/
* / irmd: Remove temporary debugging logsdimitri staessens2017-08-291-4/+1
|/
* ipcpd: Fix missing unlock in dhtdimitri staessens2017-08-291-1/+2
|
* Merged in sandervrijders/ouroboros/be-dir-query (pull request #576)Sander Vrijders2017-08-293-61/+87
|\ | | | | | | shim-eth-llc: Hide directory query locking
| * shim-eth-llc: Hide directory query lockingSander Vrijders2017-08-293-61/+87
| | | | | | | | | | | | | | The locking of the directory queries was happening in the shim-eth-llc, but it should be done within the shim-data functions. Fixes #30
* | Merged in dstaesse/ouroboros/be-dht (pull request #577)dimitri staessens2017-08-292-40/+71
|\ \ | | | | | | | | | ipcpd: Fix state in dht lookup at lookup_wait
| * | ipcpd: Fix state in dht lookup at lookup_waitdimitri staessens2017-08-292-40/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The correct state was returned but not set internally in the lookup_struct, causing lookup_wait to return a lookup in LU_PENDING if the wait timedout. This also unlocks the IRMd during register calls and fixes some cleanup if lookup_wait gets interrupted. Fixes #48
* | | Merged in sandervrijders/ouroboros/be-fix-authors (pull request #575)Sander Vrijders2017-08-2910-20/+20
|\ \ \ | |/ / |/| | | | | lib, ipcpd: Fix e-mail addresses in protobuf files
| * | lib, ipcpd: Fix e-mail addresses in protobuf filesSander Vrijders2017-08-2910-20/+20
| |/ | | | | | | This fixes the wrong e-mail addresses in the protobuf files.
* / dev: Revise fqueue API and add man pagesdimitri staessens2017-08-2910-93/+89
|/
* lib, ipcpd, irmd: Fix bugs reported by static analysisSander Vrijders2017-08-2912-36/+73
| | | | This fixes several bugs as reported by the clang static analyzer.
* Merged in dstaesse/ouroboros/be-deprecate-gam (pull request #572)dimitri staessens2017-08-2852-1340/+1447
|\ | | | | | | Be deprecate gam
| * ipcpd: Address comments on 176698edimitri staessens2017-08-285-10/+4
| |
| * tools: Add tool to connect IPCP componentsdimitri staessens2017-08-2823-61/+619
| | | | | | | | | | | | | | | | | | | | | | | | This enables user-written tools to instruct IPCPs to establish and tear down connections (a.k.a. adjacencies) between its internal components (Management and Data Transfer). For more info, do "irm ipcp connect" or "irm ipcp disconnect" on the command line. This commit exposes a deletion bug in the RIB where FSO's fail to unpack/parse. This will be fixed when the RIB is deprecated.
| * ipcpd: Deprecate gam as autonomous componentdimitri staessens2017-08-2838-1309/+864
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The graph adjacency manager has been deprecated in favor of providing an external interface into the connectivity manager so that adjacencies can be controlled from the command line, user scripts or user applications. The gam and its associated policies were removed from the normal IPCP and the IRM configuration tools. The "/members" part of the RIB was deprecated. Removal of the gam means that initial connectivity based on changes in the RIB can't be provided, so some changes were required throughout the normal IPCP. The enrollment procedure was revised to establish its own connectivity. First, it gets boot information from a peer by establishing a connection to the remote enrollment component and downloading the IPCP configuratoin. This is now done using its own protocol buffers message in anticipation of deprecation of the RIB and CDAP for communication within a DIF. After the boot information is downloaded, it establishes a data transfer flow for enrolling the directory (DHT). After the DHT has enrolled, it signals the peer to that enrollment is done, and the data transfer connection is torn down. Signaling connections is done via the nbs struct, which is now passed to the connmgr, which enables control of the connectivity graph from external sources.
* | Merged in sandervrijders/ouroboros/be-config (pull request #570)Sander Vrijders2017-08-262-95/+173
|\ \ | |/ |/| | | lib: Add configuration message to FRCT
| * lib: Add configuration message to FRCTSander Vrijders2017-08-262-95/+173
| | | | | | | | | | This adds the configuration message to FRCT, which allows for configuring the connection.
* | irmd: Don't warn on failed write to terminated IPCPdimitri staessens2017-08-251-1/+2
|/
* lib: Fix bad locking in frcti_readSander Vrijders2017-08-251-1/+1
| | | | A read lock was taken when a write lock was needed.
* lib, ipcpd, irmd: Fix several memleaksSander Vrijders2017-08-236-9/+10
| | | | | This fixes several memleaks as reported by valgrind. It also fixes some calls to close() with -1.
* lib: Make sender and receiver inactivity simple checksSander Vrijders2017-08-231-153/+68
| | | | | | This makes the sender and receiver inactivity timers into simple checks that compare when the last SDU was sent to the current time to set the receiver or sender inactivity.
* Merge branch 'testing' into beSander Vrijders2017-08-231-3/+5
|\
| * irmd: Fix potential data race in irmdSander Vrijders2017-08-231-3/+5
| | | | | | | | | | If the IPCP was not created, the printing of the log may use a variable that was already freed.
* | ipcpd: shim-eth-llc: Fix building LLC shimSander Vrijders2017-08-232-3/+6
| | | | | | | | | | | | | | The LLC shim was not being built even though it should be build. This is due to CMake behaviour that when you set a var in the parent scope, it is not set in the local scope. It also adds back THIS_TYPE to the shim-eth-llc.
* | lib: Remove bad assertionSander Vrijders2017-08-231-1/+0
| | | | | | | | | | Timeout was asserted not to be NULL, but sometimes timeout can be NULL and is a valid parameter when NULL.
* | ipcpd: Fix data race in connmgrdimitri staessens2017-08-221-0/+5
| | | | | | | | The removal of the mutex and signal in 198b709 was a mistake.
* | lib: Fix timeout value of flow_event_waitSander Vrijders2017-08-222-5/+7
| | | | | | | | | | shm_flow_set_wait was called with a timeout even though flow_event_wait was called with timeout NULL.
* | lib: Fix calling frct_clear in wrong functionSander Vrijders2017-08-221-2/+2
| | | | | | | | frct_clear was called in ouroboros_fini instead of ouroboros_init.
* | lib: Fix CRC check and add frct_clearSander Vrijders2017-08-223-16/+41
| | | | | | | | | | | | 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-224-164/+25
|\ \ | | | | | | | | | Be tw
| * | lib: Make timerwheel a passive componentSander Vrijders2017-08-223-162/+23
| | | | | | | | | | | | | | | | | | 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.
* | | lib, irmd: Use static buffer for messagesdimitri staessens2017-08-222-36/+20
| | |