Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Dec 2008 12:26:54 +0100 (CET)
From:      Bjoern Groenvall <bg@sics.se>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        bg@sics.se
Subject:   ports/129815: port vtun-3.0.2 broken on amd64
Message-ID:  <200812211126.mBLBQsEG062035@duvel.sics.se>
Resent-Message-ID: <200812211150.mBLBo1gx074322@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         129815
>Category:       ports
>Synopsis:       port vtun-3.0.2 broken on amd64
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 21 11:50:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Bjoern Groenvall
>Release:        FreeBSD 7.1-RC1 amd64
>Organization:
SICS
>Environment:
System: FreeBSD duvel.sics.se 7.1-RC1 FreeBSD 7.1-RC1 #22: Wed Dec 17 16:17:37 CET 2008 bg@duvel.sics.se:/usr/obj/usr/src/sys/DUVEL amd64


	

lzo2-2.03_2         Portable speedy, lossless data compression library
vtun-3.0.2          Virtual Tunnels over TCP/IP networks with traffic shaping

>Description:

On systems (e.g FreeBSD amd64) where sizeof(unsigned int) differs from
sizeof(lzo_uint) this patch is necessary for the correct operation of
vtun when LZO compression is enabled.

>How-To-Repeat:

Enable LZO compression (e.g like this)

# UDP compressed
udpz {
  passwd  xxx;
  type  tun;
  proto udp;
  compress  lzo:9;      # LZO compression level 9 - breaks on amd64
}


>Fix:

Add this patch file /usr/ports/net/vtun/files/patch-lfd_lzo.c:


--- lfd_lzo.c-	2008-01-07 23:35:35.000000000 +0100
+++ lfd_lzo.c	2008-12-19 17:58:55.293292741 +0100
@@ -103,7 +103,7 @@
  */  
 int comp_lzo(int len, char *in, char **out)
 { 
-     unsigned int zlen = 0;    
+     lzo_uint zlen = 0;    
      int err;
      
      if( (err=lzo1x_compress((void *)in,len,zbuf,&zlen,wmem)) != LZO_E_OK ){
@@ -117,7 +117,7 @@
 
 int decomp_lzo(int len, char *in, char **out)
 {
-     unsigned int zlen = 0;
+     lzo_uint zlen = 0;    
      int err;
 
      if( (err=lzo1x_decompress((void *)in,len,zbuf,&zlen,wmem)) != LZO_E_OK ){

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812211126.mBLBQsEG062035>