#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include "setting.h"
#include "options.h"
#include "errors.h"
#include "config.h"
Defines | |
#define | INITIAL_MSS 2048 |
#define | INITIAL_EXP_TIME 10000000 |
#define | INITIAL_RTO_TIME 3 |
#define | INITIAL_SBUFFERS_MAX_SIZE 0 |
#define | INITIAL_RBUFFERS_MAX_SIZE 0 |
#define | INITIAL_RBUFFERS_RED_LIMIT 0 |
#define | DEFAULT_RED_DROP_PROBABILITY 20 |
#define | DEFAULT_RETRIES_TIMEOUT 15 |
#define | DEFAULT_MAX_ACKS_COUNT 50 |
Functions | |
int | setting_set_defaults (void) |
int | setting_read_file (char *filename) |
ARTP
library for reading and setting ARTP
main settings.
|
initial maximal sequence numbers count in one acknowledgement packet |
|
initial R.E.D. dropping probability (in percent) |
|
default timeout for retransmissions (maximal time for tries) (in seconds) |
|
Initial expiration time (in microseconds) |
|
Initial maximum segment size |
|
initial maximal receive buffers size. When set to 0, buffer size will be unlimited. (in bytes) |
|
initial random early detection (R.E.D.) limit. This limit says when we want to applicate random packet dropping. It has no sense when maximal count is unlimited. When it's set to 0 or it's greater than maximal receive buffer size, it's not applied (buffer works as usual tail drop buffer). |
|
initial retransmit timeout (in seconds) |
|
initial maximal send buffers size. When set to 0, buffer size will be unlimited. (in bytes) |
|
Read setting from a file. This function reads setting from given file.
|
|
Set default setting. This functions sets the default setting to the relevant structure (global_setting).
|