From owner-freebsd-ports Sat Oct 26 7: 2: 9 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFB4937B401 for ; Sat, 26 Oct 2002 07:02:05 -0700 (PDT) Received: from purgatory.unfix.org (cust.92.136.adsl.cistron.nl [195.64.92.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 603D243E97 for ; Sat, 26 Oct 2002 07:01:54 -0700 (PDT) (envelope-from jeroen@unfix.org) Received: from localhost (localhost [127.0.0.1]) by purgatory.unfix.org (Postfix) with ESMTP id 8DCFA7E1B; Sat, 26 Oct 2002 16:01:50 +0200 (CEST) Received: from HELL (hell.unfix.org [::ffff:10.100.13.66]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by purgatory.unfix.org (Postfix) with ESMTP id E3D05795A; Sat, 26 Oct 2002 16:01:44 +0200 (CEST) From: "Jeroen Massar" To: "'Kris Kennaway'" Cc: Subject: RE: fping-2.4b2 is in IPv6 ports but doesn't have an IPv6 binary... Date: Sat, 26 Oct 2002 16:01:44 +0200 Organization: Unfix Message-ID: <000801c27cf8$37fb39a0$420d640a@unfix.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal In-Reply-To: <20021026034536.GB92923@xor.obsecurity.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by AMaViS @ purgatory.unfix.org Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Kris Kennaway [mailto:kris@obsecurity.org] wrote: > On Thu, Oct 24, 2002 at 10:31:21PM +0200, Jeroen Massar wrote: > > Like the subjects says, the port is in: > > > > http://www.freebsd.org/ports/ipv6.html > > > > But there is NO IPv6 binary: > > > > root@demun01:/tmp>ftp > > > > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4-stable/Latest/fp ing.tgz > > > > root@demun01:/tmp>tar -zxvlof fping.tgz > > +CONTENTS > > +COMMENT > > +DESC > > > > +MTREE_DIRS > > man/man8/fping.8.gz > > sbin/fping > > root@demun01:/tmp>date > > Thu Oct 24 22:28:43 CEST 2002 > > > > *snickers* > > Eh? Why do you think there should be a separate binary for IPv6 and > IPv4? Well because I made the patch for fping which makes it IPv6 capable ? :) So I am quite sure of it it makes too, check: 8<--------------- root@demun01:/home/sixxs/compiles/fping-2.4b2_to-ipv6>uname -a FreeBSD demun01.sixxs.net 4.6-RELEASE FreeBSD 4.6-RELEASE #2: Wed Jul 3 16:38:39 CEST 2002 root@demun01.sixxs.net:/usr/src/sys/compile/demun01 i386 root@demun01:/home/sixxs/compiles/fping-2.4b2_to-ipv6>./configure checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... missing checking for working autoconf... missing checking for working automake... missing checking for working autoheader... missing checking for working makeinfo... found checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking how to run the C preprocessor... gcc -E checking for a BSD compatible install... /usr/bin/install -c checking for gethostbyname... yes checking for connect... yes checking for unistd.h... yes checking for sys/file.h... yes checking for stdlib.h... yes checking for sys/select.h... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h root@demun01:/home/sixxs/compiles/fping-2.4b2_to-ipv6>make gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c fping.c gcc -g -O2 -o fping fping.o gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c fping.c -o fping6.o -DIPV6 gcc -g -O2 -o fping6 fping6.o ----------------------->8 Yups it generates 2 binaries, one for IPv4 and one for IPv6. Let's find a v4 and v6 capable host: 8<----------------------- root@demun01:/home/sixxs/compiles/fping-2.4b2_to-ipv6>host -t a www.sixxs.net www.sixxs.net is a nickname for noc.sixxs.net noc.sixxs.net has address 213.197.29.32 root@demun01:/home/sixxs/compiles/fping-2.4b2_to-ipv6>host -t aaaa www.sixxs.net www.sixxs.net is a nickname for noc.sixxs.net noc.sixxs.net IPv6 address 3ffe:4007:1:1:210:dcff:fe20:7c7c --------------->8 8<--------------- root@demun01:/home/sixxs/compiles/fping-2.4b2_to-ipv6>./fping -C 3 213.197.29.32 213.197.29.32 : [0], 84 bytes, 22.6 ms (22.6 avg, 0% loss) 213.197.29.32 : [1], 84 bytes, 40.3 ms (31.5 avg, 0% loss) 213.197.29.32 : [2], 84 bytes, 23.9 ms (28.9 avg, 0% loss) 213.197.29.32 : 22.66 40.34 23.92 --------------->8 The following doesn't work as we don't IPv6 support in the v4 binary: 8<--------------- root@demun01:/home/sixxs/compiles/fping-2.4b2_to-ipv6>./fping -C 3 3ffe:4007:1:1:210:dcff:fe20:7c7c 3ffe:4007:1:1:210:dcff:fe20:7c7c address not found --------------->8 The following does work: 8<--------------- root@demun01:/home/sixxs/compiles/fping-2.4b2_to-ipv6>./fping6 -C 3 3ffe:4007:1:1:210:dcff:fe20:7c7c 3ffe:4007:1:1:210:dcff:fe20:7c7c : [0], 64 bytes, 31.1 ms (31.1 avg, 0% loss) 3ffe:4007:1:1:210:dcff:fe20:7c7c : [1], 64 bytes, 49.1 ms (40.1 avg, 0% loss) 3ffe:4007:1:1:210:dcff:fe20:7c7c : [2], 64 bytes, 35.6 ms (38.6 avg, 0% loss) 3ffe:4007:1:1:210:dcff:fe20:7c7c : 31.11 49.19 35.62 --------------->8 And don't forget to suid the fping6 binary, I justed pinged as root, evil me :) Also note that: 8<----------------- root@demun01:/home/sixxs/compiles/fping-2.4b2_to-ipv6>which ping /sbin/ping root@demun01:/home/sixxs/compiles/fping-2.4b2_to-ipv6>which ping6 /sbin/ping6 ------------------>8 Which is common on all systems except I think Solaris which has a combined util. Greets, Jeroen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message