lfd_lzo.c defines size of the output buffer as: static int zbuf_size = VTUN_FRAME_SIZE * VTUN_FRAME_SIZE / 64 + 16 + 3;
This translates to 65555 bytes Where does this value come from? According to LZO FAQ http://www.oberhumer.com/opensource/lzo/lzofaq.php LZO will expand incompressible data by a little amount. I still haven't computed the exact values, but I suggest using these formulas for a worst-case expansion calculation: Algorithm LZO1, LZO1A, LZO1B, LZO1C, LZO1F, LZO1X, LZO1Y, LZO1Z: ---------------------------------------------------------------- output_block_size = input_block_size + (input_block_size / 16) + 64 + 3 Which comes to 2245 bytes
vtun_lzo.patch
Description: Binary data
------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________ VTun-devel mailing list VTun-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vtun-devel