]> git.sesse.net Git - greproxy/blobdiff - rs_parm.h
Merge branch 'master' of /srv/git.sesse.net/www/greproxy
[greproxy] / rs_parm.h
index 446f1640f8fa0146d2865583dc540a85b8bfa84d..c6d85a6b5742aad924203431038b7ac87ac93510 100644 (file)
--- a/rs_parm.h
+++ b/rs_parm.h
@@ -1,15 +1,14 @@
 #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
+// (255,191); pretty much 33% overhead, can protect against loss bursts of
+// 64 packets (more if they straddle blocks). Sounds overkill, but sometimes
 // conditions can be really really crappy...
 #define RS_SYM_SIZE 8
 #define RS_NUM_SYM ((1 << RS_SYM_SIZE) - 1)
-#define RS_PARITY_SIZE 84
-#define RS_PAD 0
+#define RS_PARITY_SIZE 64
+#define RS_PAD 0  // RS_PAD currently needs to be 0.
 
-#define RS_GF_POLY 0x11d  // Taken from rstest.c.
 #define RS_GROUP_SIZE (RS_NUM_SYM - RS_PAD)
 #define RS_PAYLOAD_SIZE (RS_GROUP_SIZE - RS_PARITY_SIZE)