summaryrefslogtreecommitdiff
path: root/src/tools/cbr
Commit message (Collapse)AuthorAgeFilesLines
* lib, irmd: Bind AP instances to AP_subsetsdimitri staessens2016-08-101-2/+7
| | | | | | | This call will allow grouping AP instances of a certain AP together which are configured identically. Adds the bind operation to dev and updates the applications to make use of this call. Flow_alloc is now only called with the pid and doesn't send the apn anymore.
* tools: cbr: Fix server cleanupdimitri staessens2016-08-041-15/+7
| | | | The server should cleanup whenever the listen thread exits.
* tools: cbr: Fix missing check on ap_initdimitri staessens2016-08-041-2/+4
| | | | If ap_init() fails, the program should exit.
* tools: cbr: Fix optionsdimitri staessens2016-08-042-10/+10
| | | | The server apn is a client-only option. Also fixes some indentation.
* lib: Portability to FreeBSDdimitri staessens2016-07-291-0/+5
| | | | | | | | | | Various portability fixes for FreeBSD. POSIX requires shm file names to start with a "/" to be portable. lseek(2) can be undefined on POSIX shm, replaced with ftruncate(2). IRMd check on existing lockfile more portable. FreeBSD 11.0 is preferred as it natively supports robust mutexes. Full working LLC implementation pending.
* build: correct sandboxingdimitri staessens2016-06-271-1/+1
| | | | | paths cannot start with "/" or PREFIX will be omitted. PREFIX must be set before the project() call.
* build: Fix installation prefixSander Vrijders2016-06-271-1/+1
| | | | | | The installation prefix was taking a trailing backslash, while it is common not to do so. Fixed it so that any trailing backslash is removed by the compilation and installation scripts.
* build: Change install directories and set correct permissionsSander Vrijders2016-06-201-1/+1
| | | | | | | | | 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
* tools: fixed application shutdowndimitri staessens2016-06-161-2/+0
| | | | Tools would do a double ap_fini when an error occurred.
* Fixed comments on #122dimitri staessens2016-06-141-2/+0
|
* lib, irmd, tools, ipcpd: updates to dev API.dimitri staessens2016-06-133-48/+40
| | | | | | | | | | | | | | | The registration function has been moved to the irm tool, applications now need to be registered by an administrator. Currently only supports one instance per registered name, and an AP can be registered under only one name. The irmd can now start a registered server application on demand. For the full functionality of the tool, execute "irm register". AP name removed from flow allocation. Flow allocation does not send the source ap name as it is quite useless. The accept() call now only returns the AE name.
* tools: updated cbr with flood and sleep optionsdimitri staessens2016-05-272-21/+60
| | | | | | | The cbr client will now use busy waiting by default to control the sending rate. A --sleep option has been added to allow low CPU usage when sending at low data rates. A --flood option has been added that writes SDU's as fast as possible.
* tools: Add threadpool to cbrSander Vrijders2016-05-262-36/+125
| | | | | This adds a threadpool to cbr, so that it is not overflooded with client requests.
* tools: cbr continues when a write failsdimitri staessens2016-05-251-2/+2
| | | | | the CBR tool would stop if the buffer is full. Now it will continue sending SDU's until the duration expires.
* tools: fixes comments on d74d67adimitri staessens2016-05-243-10/+10
|
* tools, lib: cbr tool for bandwidth testingdimitri staessens2016-05-244-0/+411
The tool sends constant bandwidth traffic between a client and a server. cbr --help for more info. Adds time_utils.h to the library containing useful functions for arithmetic with timespec and timeval structures.