summaryrefslogtreecommitdiff
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* lib: Fix data race in rdrbuffdimitri staessens2017-04-011-7/+5
| | | | The blocks should be accessed inside the lock (or later with CAS).
* lib: Fix use-after-free when destroying cdap_reqdimitri staessens2017-04-012-1/+6
|
* lib: Fix missing assignment in flow_allocdimitri staessens2017-04-011-5/+13
|
* lib: Some fixes in CDAPdimitri staessens2017-04-011-1/+10
|
* lib: Fix double typedefdimitri staessens2017-03-311-2/+0
|
* Merged in sandervrijders/ouroboros/be-btree (pull request #444)Sander Vrijders2017-03-312-26/+62
|\ | | | | | | lib: Fix bugs in B-tree
| * lib: Fix bugs in B-treeSander Vrijders2017-03-312-26/+62
| | | | | | | | | | This fixes some bugs in the B-tree implementation. The test has also been rewritten to be more thorough.
* | lib: Cancel outstanding CDAP requests on destroydimitri staessens2017-03-313-1/+15
|/
* lib: Revise flow allocation APIdimitri staessens2017-03-313-145/+69
| | | | | | 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.
* lib: Fix invalid access in CDAPSander Vrijders2017-03-301-2/+5
| | | | This fixes an invalid access to an object that was already freed.
* lib: Fix heap-use-after-free in CDAPdimitri staessens2017-03-301-1/+1
|
* lib: Reduce locking overhead in rdrbuffdimitri staessens2017-03-301-45/+20
|
* lib: Fix locks in dev.cdimitri staessens2017-03-291-7/+5
|
* lib: Revise handling CDAP messagesdimitri staessens2017-03-293-66/+114
| | | | | | | | | | | | | Fixes a number of issues in CDAP. CDAP keeps track if a message is being processed, and moves it to the end of the request list if it is. It will now correctly wait for new messages. The invoke_ids are generated locally per CDAP instance, invoke_ids can't be used to track incoming requests, we need to keep track of the fd. The keys are now identifiers (taken from the same local pool as the invoke_ids) that are used to track requests.
* lib: Use internal ops for list_moveSander Vrijders2017-03-281-1/+1
|
* lib: Fix list_move on wrong listSander Vrijders2017-03-281-3/+9
| | | | | | The list move was being done on the whole list of sub events, whereas it should only be done on the first entry. A cleanup handler was also added.
* lib: Revise list_move operationSander Vrijders2017-03-281-8/+4
| | | | | This revises the list_move operation, which was giving weird behaviour.
* lib, ipcpd: Fix bugs in ro setsSander Vrijders2017-03-281-1/+9
| | | | | This fixes several bugs in the ro sets, rib. And it fixes several bugs in the graph and routing component of the normal IPCP.
* lib: Fix invoke_ids and failure handling in CDAPdimitri staessens2017-03-251-41/+18
| | | | | When something fails, the successfully sent CDAP messages should be reported back. Invoke_ids were not correctly released.
* ipcpd: normal: Fill in forwarding tableSander Vrijders2017-03-242-14/+14
| | | | | | 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.
* lib: Fix memleaks in cdapdimitri staessens2017-03-221-8/+23
|
* Merge branch 'be' of bitbucket.org:ouroboros-rina/ouroboros into beSander Vrijders2017-03-2144-921/+498
|\
| * lib: Add queued SDUs when adding fd to flow_setdimitri staessens2017-03-212-0/+26
| | | | | | | | | | This solves some race conditions where packets arrive on a flow before it is added to a flow_set.
| * lib: Fix CDAP with multiple fdsdimitri staessens2017-03-141-14/+51
| |
| * lib: Fix typo in cdapdimitri staessens2017-03-031-2/+2
| |
| * lib: Manage multiple flows with a single CDAP instancedimitri staessens2017-03-034-125/+242
| | | | | | | | | | | | | | | | 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-37/+59
| | | | | | | | | | | | | | 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.
| * build: Format CMakeLists.txt filesSander Vrijders2017-03-032-19/+19
| | | | | | | | The CMakeLists files are now properly indented.
| * ipcpd: normal: Add connection managerSander Vrijders2017-03-022-0/+4
| | | | | | | | | | | | | | This adds the connection manager which allows the different AEs of the normal IPCP to register with it. An AE can then use the connection manager to allocate a flow to a neighbor, or to wait for a new connection from a neighbor.
| * lib: Split CACEP into request/response protocoldimitri staessens2017-02-281-26/+6
| |
| * lib: Split authentication from CACEPdimitri staessens2017-02-2711-707/+101
| | | | | | | | | | | | | | By removing authentication as part of CACEP, all policies disappear. CACEP becomes a policy-free connection establishment protocol between Application Entities. Authentication can later be added cleanly as a pure policy function when needed.
| * lib: Remove application entity nameSander Vrijders2017-02-243-42/+20
| | | | | | | | | | The AE name should not be passed over the layer boundaries. If an application has more than one AE it should exchange this in CACEP.
| * Revise CACEP APIdimitri staessens2017-02-245-65/+84
| | | | | | | | | | | | The information passed to CACEP is split between the information about the connection and the information to be used during the authentication exchange.
* | Merge branch 'testing' into beSander Vrijders2017-03-211-2/+0
|\ \ | |/ |/|
| * irmd: Fix timeouts in reg_entrydimitri staessens2017-03-211-2/+0
| | | | | | | | | | This fixes bad timedwaits for the state of the reg_entry. Also slightly revised timedwaits throughout the prototype.
* | lib: Clean up memory management in cacep policiesdimitri staessens2017-02-212-4/+15
| |
* | lib: Exchange protocol info during CACEPdimitri staessens2017-02-219-13/+372
| | | | | | | | | | | | | | | | | | This exchanges a protocol name, a protocol version and concrete syntax for the protocol upon CACEP. For CDAP, only version 1 and GPB are supported. No lists for other supported versions or syntaxes are exchanged (but the proto file supports it). CACEP fails if there is a mismatch between the protocol names, version and syntax specified by the communicating parties.
* | lib: Revise CACEPdimitri staessens2017-02-207-139/+327
| | | | | | | | | | | | | | | | | | Revises CACEP policies to stateless library calls. It provides two policies: an anonymous authentication policy that will generate random credentials for the peer, and a simple authentication policy that will return a name for the peer and an address. Changes the normal IPCP to use the updates API calls.
* | Merged in dstaesse/ouroboros/be-sha3 (pull request #380)dimitri staessens2017-02-181-4/+6
|\ \ | | | | | | | | | lib: Fix bug in sha3
| * | lib: Fix bug in sha3dimitri staessens2017-02-181-4/+6
| |/
* / lib: Set cdap_req state to REQ_NULL after timeoutdimitri staessens2017-02-181-12/+20
|/ | | | | This prevented destruction of a CDAP instance that had a timed out request.
* ipcpd: Move RIB configuration to common headerdimitri staessens2017-02-171-0/+2
| | | | | Moves the definitions of paths in the RIB for the normal IPCP to a header ribconfig.h to avoid repetition.
* lib: Revise endian header and SHA3Sander Vrijders2017-02-162-140/+39
| | | | | | | | This revises the endian header to let the build time checks of endianness be performed by the standard libraries. We just check for the OS that is being used and provide the endian functions from OpenBSD to everyone. It also updates the SHA3 sources to use this new header. The byte order header is removed.
* cdap: Take void * for send operationsdimitri staessens2017-02-101-11/+15
| | | | This facilitates sending arbitrary variables over CDAP.
* ipcpd: Silent shutdown of normaldimitri staessens2017-02-101-0/+5
| | | | | The acceptor will not log disconnects with IRMd. Unexpected disconnects will be reported and handled by management components.
* include: Add header for endiannessdimitri staessens2017-02-101-88/+1
| | | | | | | | | This adds a header for dealing with endianness in ouroboros. It is extracted from the byte_order header in the library (which now includes this header). It also exposes the functions ntohl, ntohll, htonl and htonll, necessary for converting 32 and 64 bit values for storage and retrieval from the RIB (which should store multi-byte values in network byte order).
* lib: Fix bad lock in ribdimitri staessens2017-02-101-1/+1
|
* lib, ipcp: Correctly init condvarsdimitri staessens2017-02-091-1/+9
| | | | | The timerwheel and RIB use timedwaits. The condition variables are now correctly initialised to use the configuration defined clock.
* lib: Fix bug in rib_testdimitri staessens2017-02-091-1/+1
|
* lib, tools, ipcpd: Fix compilation on FreeBSDdimitri staessens2017-02-091-2/+6
| | | | | | | | | | | | FreeBSD defines its own bswap64 in the <sys/endian.h> header, which is now included correctly. POSIX requires XSI or RTS extensions to be enabled for the sa_sigaction field to be visible. Linux doesn't do the check correctly, but FreeBSD does. Removes the LOG_MISSING call which was deprecated with the last revision of the logging system.