]> git.sesse.net Git - greproxy/blob - rs_parm.h
Add missing file.
[greproxy] / rs_parm.h
1 #ifndef _RS_PARM_H
2 #define _RS_PARM_H
3
4 // (255,171); pretty much 50% overhead, can protect against loss bursts of
5 // 84 packets (more if they straddle blocks). Sounds overkill, but sometimes
6 // conditions can be really really crappy...
7 #define RS_SYM_SIZE 255
8 #define RS_PARITY_SIZE 84
9 #define RS_PAD 0
10
11 #define RS_GF_POLY 0x11d  // Taken from rstest.c.
12 #define RS_GROUP_SIZE (RS_SYM_SIZE - RS_PAD)
13 #define RS_PAYLOAD_SIZE (RS_GROUP_SIZE - RS_PARITY_SIZE)
14
15 #endif  /* !defined_(RS_PARM_H) */