Librasta & Libsci
A C implementation of the RaSTA protocol stack
Data Structures | Macros | Typedefs | Enumerations
config.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RastaConfigKex
 
struct  rasta_config_sending
 
struct  rasta_config_receive
 
struct  rasta_config_retransmission
 
struct  rasta_ip_data
 
struct  RastaConfigRedundancyConnections
 
struct  crc_options
 
struct  rasta_config_redundancy
 
struct  rasta_config_general
 
struct  rasta_config_tls
 
struct  rasta_config_info
 
struct  rasta_connection_config
 

Macros

#define CONFIG_BUFFER_LENGTH   10000
 
#define KEX_PSK_MAX   128
 
#define MAX_DOMAIN_LENGTH   64
 

Typedefs

typedef unsigned int MD4_u32plus
 
typedef struct rasta_config_sending rasta_config_sending
 
typedef struct rasta_config_receive rasta_config_receive
 
typedef struct rasta_config_retransmission rasta_config_retransmission
 
typedef struct rasta_ip_data rasta_ip_data
 
typedef struct rasta_config_redundancy rasta_config_redundancy
 
typedef struct rasta_config_general rasta_config_general
 
typedef struct rasta_config_tls rasta_config_tls
 
typedef struct rasta_config_info rasta_config_info
 
typedef struct rasta_connection_config rasta_connection_config
 

Enumerations

enum  KEY_EXCHANGE_MODE { KEY_EXCHANGE_MODE_NONE }
 
enum  rasta_checksum_type { RASTA_CHECKSUM_NONE = 0 , RASTA_CHECKSUM_8B = 1 , RASTA_CHECKSUM_16B = 2 }
 
enum  rasta_hash_algorithm { RASTA_ALGO_MD4 = 0 , RASTA_ALGO_BLAKE2B = 1 , RASTA_ALGO_SIPHASH_2_4 = 2 }
 
enum  log_level { LOG_LEVEL_DEBUG = 3 , LOG_LEVEL_INFO = 2 , LOG_LEVEL_ERROR = 1 , LOG_LEVEL_NONE = 0 }
 
enum  logger_type { LOGGER_TYPE_CONSOLE = 0 , LOGGER_TYPE_FILE = 1 , LOGGER_TYPE_BOTH = 2 }
 

Macro Definition Documentation

◆ CONFIG_BUFFER_LENGTH

#define CONFIG_BUFFER_LENGTH   10000

◆ KEX_PSK_MAX

#define KEX_PSK_MAX   128

◆ MAX_DOMAIN_LENGTH

#define MAX_DOMAIN_LENGTH   64

Typedef Documentation

◆ MD4_u32plus

typedef unsigned int MD4_u32plus

◆ rasta_config_general

defined in 8.1

◆ rasta_config_info

stores all presets after load

◆ rasta_config_receive

Non-standard extension

◆ rasta_config_redundancy

defined in 7.3

◆ rasta_config_retransmission

Non-standard extension

◆ rasta_config_sending

defined in 7.2

◆ rasta_config_tls

Non-standard extension

◆ rasta_connection_config

◆ rasta_ip_data

typedef struct rasta_ip_data rasta_ip_data

represents an IP and Port

Enumeration Type Documentation

◆ KEY_EXCHANGE_MODE

Enumerator
KEY_EXCHANGE_MODE_NONE 
20  {
22 #ifdef ENABLE_OPAQUE
23  KEY_EXCHANGE_MODE_OPAQUE
24 #endif
25 };
@ KEY_EXCHANGE_MODE_NONE
Definition: config.h:21

◆ log_level

enum log_level

the log level

Enumerator
LOG_LEVEL_DEBUG 

Messages meant for debugging

LOG_LEVEL_INFO 

Messages for general connection status

LOG_LEVEL_ERROR 

Error messages

LOG_LEVEL_NONE 

Symbolic log level: nothing will be logged Can only be used as maximum log level

292  {
296  LOG_LEVEL_DEBUG = 3,
300  LOG_LEVEL_INFO = 2,
304  LOG_LEVEL_ERROR = 1,
309  LOG_LEVEL_NONE = 0
310 } log_level;
log_level
Definition: config.h:292
@ LOG_LEVEL_DEBUG
Definition: config.h:296
@ LOG_LEVEL_ERROR
Definition: config.h:304
@ LOG_LEVEL_NONE
Definition: config.h:309
@ LOG_LEVEL_INFO
Definition: config.h:300

◆ logger_type

represents the type of logging that should be used

Enumerator
LOGGER_TYPE_CONSOLE 

log messages to console

LOGGER_TYPE_FILE 

log messages to file

LOGGER_TYPE_BOTH 

log to console and file

315  {
323  LOGGER_TYPE_FILE = 1,
327  LOGGER_TYPE_BOTH = 2
328 } logger_type;
logger_type
Definition: config.h:315
@ LOGGER_TYPE_CONSOLE
Definition: config.h:319
@ LOGGER_TYPE_BOTH
Definition: config.h:327
@ LOGGER_TYPE_FILE
Definition: config.h:323

◆ rasta_checksum_type

used checksum type

Enumerator
RASTA_CHECKSUM_NONE 

no checksum

RASTA_CHECKSUM_8B 

8 byte checksum

RASTA_CHECKSUM_16B 

16 byte checksum

55  {
rasta_checksum_type
Definition: config.h:55
@ RASTA_CHECKSUM_8B
Definition: config.h:63
@ RASTA_CHECKSUM_NONE
Definition: config.h:59
@ RASTA_CHECKSUM_16B
Definition: config.h:67

◆ rasta_hash_algorithm

Algorithms that can be used for the RaSTA SR layer checksum

Enumerator
RASTA_ALGO_MD4 

MD4

RASTA_ALGO_BLAKE2B 

Blake2b

RASTA_ALGO_SIPHASH_2_4 

SipHash-2-4

73  {
77  RASTA_ALGO_MD4 = 0,
rasta_hash_algorithm
Definition: config.h:73
@ RASTA_ALGO_BLAKE2B
Definition: config.h:81
@ RASTA_ALGO_MD4
Definition: config.h:77
@ RASTA_ALGO_SIPHASH_2_4
Definition: config.h:85