summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/pol/flat.c
Commit message (Collapse)AuthorAgeFilesLines
* build: Replace fsf snail mail with contact URLdimitri staessens2017-08-131-1/+1
|
* ipcpd: Add DHT as directory in normal IPCPdimitri staessens2017-07-181-2/+2
| | | | | | | | | 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.
* Change email addresses to ugent.beSander Vrijders2017-03-031-2/+2
| | | | | | | 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.
* ipcpd: normal: Change address authority policySander Vrijders2017-02-211-0/+10
| | | | | | This changes the address authority to follow a similar approach to that of the other policies. No function pointers are passed to its user anymore.
* ipcpd: Move RIB configuration to common headerdimitri staessens2017-02-171-0/+1
| | | | | Moves the definitions of paths in the RIB for the normal IPCP to a header ribconfig.h to avoid repetition.
* ipcpd, lib: Report IPCP creation failuredimitri staessens2017-02-091-9/+1
| | | | | | | | The IPCP will now respond with an ipcp_create_r message when it fails, informing the IRMd. Also adds some const qualifiers in the public headers and fixes some formatting in dev.c.
* lib: Log to the logging systemdimitri staessens2017-02-081-7/+7
| | | | | | | | | | This removes the logfile and outputs log messages to the logging system. The creation of the logfiles (as well as the ap_init() call) were moved into ipcp_init() to simplify the IPCP creation and shutdown. Fixes #25 Fixes #27
* ipcpd, lib: Revise normal IPCPdimitri staessens2017-02-061-204/+88
| | | | | | | | | | This PR updates the normal IPCP to use the new RIB. The old ribmgr is removed and replaced by a stub that needs to be implemented. All components (dir, fmgr, frct) were adapted to the new RIB API. A lot of functionality was moved outside of the ribmgr, such as the addr_auth, which is now a component of the IPCP. The address is also stored to the ipcpi struct. The irm tool has an option to set the gam policy of the rib manager.
* build: Update licenses and copyrightdimitri staessens2017-01-091-1/+1
| | | | | Copyright is set to 2016 - 2017. License text on includes and sources in the library are changed to indicate the LGPLv2.1 license.
* ipcpd: Rename normal/path to normal/pathnamedimitri staessens2016-12-281-1/+1
|
* ipcpd: Check for duplicate RO in flat addr policydimitri staessens2016-12-251-0/+11
|
* ipcpd: Use high resolution seed for flat policydimitri staessens2016-12-241-1/+4
| | | | | This avoids normal ipcps using the flat address policy having a high probability for picking the same address when created from a script.
* ouroboros: Correct license statementsdimitri staessens2016-12-241-3/+2
| | | | | This corrects the license statements on all files. Installed headers are LGPLv2.1, the rest of the code is GPLv2.
* ipcpd: normal: Fix errors on IPCP shutdownSander Vrijders2016-12-061-8/+10
| | | | | This fixes several bad cleanups in the normal IPCP when it is shutting down.
* ipcpd: normal: Fix release buildSander Vrijders2016-12-021-0/+1
| | | | | The release build failed since an assert was optimized out, which resulted in a unused variable error.
* ipcpd: normal: Address review commentsSander Vrijders2016-12-021-13/+21
| | | | This addresses some comments after a code review by Dimitri.
* ipcpd: normal: Add helper functions for pathnamesSander Vrijders2016-11-291-13/+22
| | | | | This adds some helper functions to construct pathnames. Users of the RIB manager may find these handy when constructing RIB objects.
* ipcpd: normal: Change ro_attr initializationSander Vrijders2016-11-291-50/+27
| | | | | | | This changes the way RIB object attributes are set. Previously the struct was called ro_props and it had to be allocated on the heap. Now it follows the model of pthreads closely. This commit also changes the callbacks of the RO subscribers to return void instead of int.
* ipcpd: normal: Complete flat address policySander Vrijders2016-11-291-0/+261
This will add a check in the flat address policy to see if the address is in use or not.