Skip to contentSkip to conversation

LZO 2.00 released--compatibility patch attached

Openvpn-devel Kelledin 2 participants 3 messages May 30, 2005 – May 31, 2005

lore
Share & tools
lore

Kelledin

author
#0 lore raw

Hi all, LZO 2.00 was just released, and it has a few API changes. Specifically the worst-case expansion formula prescribed by LZO.FAQ has changed, and headers now get their own lzo/ directory.

The former is probably best fixed by the attached patch. The latter is a simple include path check, which I won't bother with--it's pretty much a no-brainer. I get by just sticking "-I/usr/include/lzo" in my CPPFLAGS.

--
Kelledin
"If a server crashes in a server farm and no one pings it, does it still cost four figures to fix?"

lzo.h +4 -0
diff -Naur openvpn-2.0/lzo.h openvpn-2.0-lzo2/lzo.h
@@ -44,7 +44,11 @@
 #define LZO_WORKSPACE	LZO1X_1_15_MEM_COMPRESS
 #define LZO_DECOMPRESS  lzo1x_decompress_safe
 
+#if LZO_VERSION>=0x2000
+#define LZO_EXTRA_BUFFER(len) ((len)/16 + 64 + 3)	/* LZO worst case size expansion. */
+#else
 #define LZO_EXTRA_BUFFER(len) ((len)/64 + 16 + 3)	/* LZO worst case size expansion. */
+#endif
 
 /*
  * Don't try to compress any packet smaller than this.
#1 lore raw

Kelledin <[email protected]...> writes:

| Hi all, LZO 2.00 was just released, and it has a few API changes. 
| Specifically the worst-case expansion formula prescribed by LZO.FAQ 
| has changed, and headers now get their own lzo/ directory.

I also thought that the license changed. Isn't this the case?

Signature · 1 line
	Lgb
#2 lore raw

[email protected]... (Lars Gullik Bjønnes) writes:

Quoted 1 line · | Kelledin
| | Hi all, LZO 2.00 was just released, and it has a few API changes. 
| | Specifically the worst-case expansion formula prescribed by LZO.FAQ 
| | has changed, and headers now get their own lzo/ directory.
Quoted 1 line

| I also thought that the license changed. Isn't this the case?

This isn't the case.

Still GPL.

Signature · 1 line
	Lgb