Date: Sat, 26 Oct 2002 16:01:44 +0200 From: "Jeroen Massar" <jeroen@unfix.org> To: "'Kris Kennaway'" <kris@obsecurity.org> Cc: <ports@FreeBSD.org> Subject: RE: fping-2.4b2 is in IPv6 ports but doesn't have an IPv6 binary... Message-ID: <000801c27cf8$37fb39a0$420d640a@unfix.org> In-Reply-To: <20021026034536.GB92923@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000801c27cf8$37fb39a0$420d640a>