]> git.sesse.net Git - greproxy/commitdiff
Add missing file.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 8 Feb 2015 00:12:56 +0000 (01:12 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 8 Feb 2015 00:12:56 +0000 (01:12 +0100)
rs_parm.h [new file with mode: 0644]

diff --git a/rs_parm.h b/rs_parm.h
new file mode 100644 (file)
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) */