summaryrefslogtreecommitdiff
path: root/src/lib/sockets.c
Commit message (Collapse)AuthorAgeFilesLines
* lib, irmd, ipcp: Add socket timeoutSander Vrijders2016-08-101-1/+15
| | | | | | This will add a timeout to the socket so that a process won't be blocked by the actions of the process with which it is communicating over the socket.
* lib: Fix cleanup for sending messagesdimitri staessens2016-08-091-17/+4
| | | | Cleanup handlers were not always popped.
* lib: sockets: Fix cancellation cleanupdimitri staessens2016-08-041-2/+13
| | | | | When cancelled in read() the fd should be closed and the allocated memory freed.
* ouroboros: Use ouroboros errno.hdimitri staessens2016-07-071-1/+1
| | | | | All includes of <errno.h> within ouroboros are replaced with the ouroboros errno.
* lib: Provide first implementation of revised CDAPSander Vrijders2016-07-051-3/+4
| | | | | | | | This commit introduces a first version of the revised CDAP specification. CACEP (for authentication purposes) has been separated from CDAP. Application developers may use CDAP if they find it useful. Within Ouroboros CDAP will be used to perform operations on the RIB of an IPCP.
* lib, irmd, ipcpd: Change pid to apiSander Vrijders2016-06-281-9/+9
| | | | Changes the variable name as well to API instead of PID.
* build: Change install directories and set correct permissionsSander Vrijders2016-06-201-1/+5
| | | | | | | | | This sets the correct install directories for all the binaries, library and header files. It also sets the right permissions on the sockets and shared memory so that regular users can also use the ouroboros library. Root privileges are required to run the irmd. Fixes #7
* lib, irmd, ipcpd: Flow deallocation over shim UDPdimitri staessens2016-05-211-0/+3
| | | | | | The shim UDP now supports deallocating a flow end-to-end. Contains some stability fixes for flow allocation and some missing close() calls in lib/sockets.
* ipcpd: initial IPC processesdimitri staessens2016-04-181-5/+2
| | | | | | | | | | | Basic functions for implementation of IPC processes, and implementation of core functions of the shim IPCP over UDP. Updates to the build system to compile these IPC processes, as well as some fixes in the irmd (rudimentary capturing exit signals) and some fixes in the library, mainly relating to the messaging. Basic implementation of creation / bootstrapping / deletion of the shim UDP. Placeholders for other functions.
* lib: include stdlib.h, not malloc.hdimitri staessens2016-04-021-1/+1
|
* lib, irmd: Update communication with IRMdSander Vrijders2016-03-301-35/+0
| | | | | All messages sent to the IRMd now also get a reply back with the result of the operation.
* lib: Add ipcp_messages proto fileSander Vrijders2016-03-281-245/+0
| | | | | This removes the custom ser/des methods for communicating with the IPCP daemon and also uses GPB instead.
* lib, irmd: Use GPB for dev.c and IRMdSander Vrijders2016-03-281-411/+58
| | | | | IRMd and dev.c now also use GPB instead of our own ser/des. irm_msg struct has been dropped as well as the methods associated with it.
* lib: Update irm.h APISander Vrijders2016-03-281-0/+7
| | | | | | Removes rina_name_t from that API. Passing ap_name and api_id as params instead. The IRM tool has been updated accordingly. Some errors in the build related to protobuf-c have also been resolved.
* lib: Adds IRMd messages for the dev.h API callsSander Vrijders2016-03-241-33/+252
| | | | | | This adds several messages for the dev.h API calls to communicate with the IRM daemon. The deserializing of these messages is still missing and the irmd hasn't been updated with them either.
* lib: Add communication with IPCP daemonSander Vrijders2016-03-171-65/+281
| | | | | This adds the messages required for the IRMd to communicate with an IPC Process through the library.
* lib, irmd: Fix memleaksSander Vrijders2016-03-171-0/+1
| | | | | This removes some memleaks present in the sockets layer. It also fixes the bad initialization of the difs_size param in the irm_msg.
* lib: Add helpers for RINA namesSander Vrijders2016-03-111-22/+11
| | | | This adds helper functions for RINA names, to aid with handling them.
* include: Fixed missing 'struct', renamed dif_infoDimitri Staessens2016-03-031-1/+1
| | | | | common.h: dif_info renamed to dif_config missing struct fixed
* tools: Parse command line paramsSander Vrijders2016-03-021-1/+1
| | | | | This adds initial support to the irm tool for parsing command line parameters.
* lib, irmd, tools: Provide more IRM messagesSander Vrijders2016-03-011-83/+145
| | | | | | | This provides the other messages that are used to communicate between the library and the IRM Daemon. The IRM tool just calls the library right now to see if it works. A full fledged program will be provided in a next commit.
* lib: Add identifier for non-literal stringSander Vrijders2016-02-261-1/+1
| | | | | This adds the %s identifier in a sprintf. A non-literal was passed and used as a literal.
* lib: Fix two errorsSander Vrijders2016-02-261-1/+1
| | | | | | Fixes two errors in the library. The return code of a write to a socket was ignored. A non literal string was passed to sprintf as a literal one.
* lib, irmd: Address Dimitri's commentsSander Vrijders2016-02-261-19/+51
| | | | This addresses several comments Dimitri had on the sockets layer code.
* lib, irmd, tools: Support to create IPCPsSander Vrijders2016-02-251-0/+193
| | | | | | | Provides the initial support to create IPCPs via a command-line tool. It extends the socket layer with a message that is sent over a socket to the irmd when the irm_create_ipcp library function is called from a program.
* lib: Initial messages for the IRMSander Vrijders2016-02-231-0/+94
This provides the initial messages to be passed between the irmd and libouroboros-irm.