summaryrefslogtreecommitdiff
path: root/src/tools/cbr
Commit message (Collapse)AuthorAgeFilesLines
* lib: Re-enable multi-block supportdimitri staessens2017-10-131-2/+2
| | | | | | Multi-block support was forgotten during the update of the build system. This enables it again and fixes some bugs when it is disabled and larger SDUs are sent.
* lib: Add fccntl configuration commanddimitri staessens2017-08-311-2/+2
| | | | | | | 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".
* build: Replace fsf snail mail with contact URLdimitri staessens2017-08-133-3/+3
|
* include, lib: Rename ap_init/ap_finidimitri staessens2017-04-131-3/+3
| | | | Fixes #35
* lib: Revise flow allocation APIdimitri staessens2017-03-312-29/+19
| | | | | | 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.
* Change email addresses to ugent.beSander Vrijders2017-03-033-6/+6
| | | | | | | 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-031-3/+3
| | | | The CMakeLists files are now properly indented.
* lib: Remove application entity nameSander Vrijders2017-02-242-2/+2
| | | | | 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.
* lib, tools, ipcpd: Fix compilation on FreeBSDdimitri staessens2017-02-091-0/+1
| | | | | | | | | | | | 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.
* build: Update licenses and copyrightdimitri staessens2017-01-093-3/+3
| | | | | Copyright is set to 2016 - 2017. License text on includes and sources in the library are changed to indicate the LGPLv2.1 license.
* ouroboros: Correct license statementsdimitri staessens2016-12-243-9/+6
| | | | | This corrects the license statements on all files. Installed headers are LGPLv2.1, the rest of the code is GPLv2.
* src, tools: Set/get timeout and get qos for flowsdimitri staessens2016-12-121-2/+2
| | | | | | | | | | | | | | | | Receiver timeouts can now be set on a flow using the flow_set_timeout function. Specifying NULL disables the timeout. The flow_get_timeout function gets the value for the timeout. This commit also deprecates fcntl in favor of flow_get_flags and flow_set_flags functions. struct qos_spec is typedef'd as a qosspec_t. The tools and cdap.c are updated to use the new API. Fixes a bug in operf client where the client's writer thread wouldn't cancel on SIGINT.
* tools: Shut down cbr gracefullydimitri staessens2016-12-102-5/+39
| | | | | | | Adds a simple cleanup handler that avoids abrupt termination during an sdu_write call, which potentially locks up the entire system due to the writes in the rdrbuff and rbuff not being handled as a single transaction.
* ipcpd, tools: Fix compilation on 32 bit linuxdimitri staessens2016-12-031-2/+2
| | | | | Fixes issues with uint64_t not corresponding with unsigned long in printf statements. Reorganises a calculation to reduce overflows.
* tools: Deallocate cbr flows when they time outdimitri staessens2016-11-291-0/+2
|
* tools: Fix likely overflow in cbr outputdimitri staessens2016-11-161-3/+3
|
* lib: API for accepting flows with QoSdimitri staessens2016-10-251-1/+2
|
* build: Compile with strict conversiondimitri staessens2016-10-223-13/+12
| | | | | This has the code checked with -Wcast-qual and -Wconversion flags. These flags were removed because SWIG generated code fails.
* build: Comply with -Wextra compiler flagdimitri staessens2016-10-211-0/+7
| | | | | This reduces the risk for some bugs, for instance due to signed/unsigned mismatches and unused variables.
* lib, ipcp: Revise fast path and flow interfacesdimitri staessens2016-10-041-3/+4
| | | | | | | | | | | | IPCPs can now use ap_init() to initialize the memory. All flows are accessed using flow descriptors, this greatly simplifies IPCP development. Reverts the fast path to a single ap_rbuff per process. Splits lib/ipcp into irmd/ipcp and lib/ipcp-dev. Adds a lib/shim-dev holding tailored functions for shims. Moves the buffer_t to utils.h. Fixes the shim-eth-llc length field. Removes the flow from shared.h. Fixes #4 Fixes #5
* src: Fix grammar (SDU's -> SDUs)dimitri staessens2016-09-021-4/+4
|
* irmd, lib: Rebuild the IRMd data modeldimitri staessens2016-08-212-10/+11
| | | | | | | | | | | | | | | | | | | | | | The complete data model inside the IRMd has been restructured. The bind operation was revised to allow binding of AP and AP instances and register those names with different DIFs (see "irm bind" for details). Server applications require to call ap_init with a server name argument, client application that do not the be reachable over any DIF can call ap_init(NULL). Calling ap_init for a client with a specified name will not have adverse consequences for the application, but will consume unnecessary resources in the IRMd. Application servers can now be started at any point after the IRMd has been started. Starting servers, binding AP names and registering names in DIFs can be performed in any order that does not defy temporal logic. Supports naming instances by their pid. In case of IPCP Instances created with the IRM tool, the name assigned during "irm ipcp create" can be used. All the changes required updates in the tools.
* 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.