defines.h 611 Bytes
Newer Older
1
2
3
#ifndef PRRT_DEFINES_H
#define PRRT_DEFINES_H

4
5
6
7
8
9
10
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
#define MIN(x, y) (((x) < (y)) ? (x) : (y))

#define PRRT_MAX_RECEIVER_COUNT 255

#define MAX_PAYLOAD_LENGTH 65528 // maximum UDP packet length (2^16 - 8)

11
12
#define SEQNO_SPACE UINT16_MAX // 2**16 as seqno is uint16_t

13
14
#define TIMESTAMP_SPACE UINT32_MAX

15
16
#define GF_BITS 8

17
18
#define K_START 4
#define N_START 7
19
20
#define N_P_START 1

21
22
#define RRT_ALPHA 0.125

Andreas Schmidt's avatar
Andreas Schmidt committed
23
24
25
26
27
// Uncomment the line below if you are compiling on Windows.
// #define WINDOWS
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
28

29
#endif //PRRT_DEFINES_H