From: Steinar H. Gunderson Date: Sun, 8 Feb 2015 00:12:56 +0000 (+0100) Subject: Add missing file. X-Git-Url: https://git.sesse.net/?p=greproxy;a=commitdiff_plain;h=d73da1b012295b0161df7f393b472811ffbb011a Add missing file. --- diff --git a/rs_parm.h b/rs_parm.h new file mode 100644 index 0000000..d9d3e40 --- /dev/null +++ b/rs_parm.h @@ -0,0 +1,15 @@ +#ifndef _RS_PARM_H +#define _RS_PARM_H + +// (255,171); pretty much 50% overhead, can protect against loss bursts of +// 84 packets (more if they straddle blocks). Sounds overkill, but sometimes +// conditions can be really really crappy... +#define RS_SYM_SIZE 255 +#define RS_PARITY_SIZE 84 +#define RS_PAD 0 + +#define RS_GF_POLY 0x11d // Taken from rstest.c. +#define RS_GROUP_SIZE (RS_SYM_SIZE - RS_PAD) +#define RS_PAYLOAD_SIZE (RS_GROUP_SIZE - RS_PARITY_SIZE) + +#endif /* !defined_(RS_PARM_H) */