Displaying 2 results from an estimated 2 matches for "compress_packet".
2011 Jul 18
1
Question on how to get involved in 1.1 development
A while back I expressed interest in trying to add additional
compression formats (XZ, ZPAQ-derived). What would be the best way for
me to try these with the 1.1 codebase? And can 1.1 be used with 1.0.x
nets out-of-box?
http://en.wikipedia.org/wiki/Xz
http://mattmahoney.net/dc/zpaq.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2010 Sep 20
0
No subject
...n =3D outlen + outpad;
inpkt =3D outpkt;
}
@@ -346,9 +353,7 @@
=20
/* Decompress the packet */
=20
- length_t origlen =3D inpkt->len;
-
- if(n->incompression) {
+ if(n->incompression && inpkt->flags.compress) {
outpkt =3D pkt[nextpkt++];
=20
if((outpkt->len =3D uncompress_packet(outpkt->data, inpkt->data, =
inpkt->len, n->incompression)) < 0) {
@@ -357,22 +362,21 @@
return;
}
=20
+ outpkt->flag_bits =3D inpkt->flag_bits;
inpkt =3D outpkt;
-
- origlen -=3D MTU/64 + 20;
}
=20
inpkt->priority =3D 0;
=20
- if(!inpkt->data[12] &&am...