Date: Wed, 28 Apr 2010 01:04:15 GMT From: Alex Forencich <alex@alexforencich.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/146102: Hamachi port bug on amd64 Message-ID: <201004280104.o3S14Fru049319@www.freebsd.org> Resent-Message-ID: <201004280110.o3S1A37q047298@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 146102 >Category: ports >Synopsis: Hamachi port bug 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: Wed Apr 28 01:10:03 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Alex Forencich >Release: 8.0-STABLE-201004 >Organization: >Environment: FreeBSD ieee.ucsd.edu 8.0-STABLE-201004 FreeBSD 8.0-STABLE-201004 #0: Mon Apr 5 15:59:06 UTC 2010 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: The command hamachi start fails with: [ 6625] tap: bad response 06000000 [ 6625] Failed to configure tap device to use 5.0.0.0/0000000000 This only appears to happen on the amd64 architecture. >How-To-Repeat: Install hamachi from ports on amd64 (cd /usr/ports/security/hamachi; make install clean) then # /usr/local/sbin/hamachi_tuncfg # hamachi init # hamachi start >Fix: Fix described here (in japanese): http://d.hatena.ne.jp/RobinEgg/20090616/p1 Diff (also attached): --- tuncfg.c.old 2010-04-27 10:51:42.271994902 -0700 +++ tuncfg.c 2010-04-27 10:24:20.650421211 -0700 @@ -308,7 +308,7 @@ skip: for (i=0; i<ctx_n; i++) { - unsigned long v[2]; + unsigned int v[2]; char cmd[256]; if (! FD_ISSET(ctx[i].fd, &fdr)) The fix simply involves changing a long to an int on line 311, after the existing ports patch is applied. Patch attached with submission follows: --- tuncfg.c.old 2010-04-27 10:51:42.271994902 -0700 +++ tuncfg.c 2010-04-27 10:24:20.650421211 -0700 @@ -308,7 +308,7 @@ skip: for (i=0; i<ctx_n; i++) { - unsigned long v[2]; + unsigned int v[2]; char cmd[256]; if (! FD_ISSET(ctx[i].fd, &fdr)) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004280104.o3S14Fru049319>