Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2011 20:13:58 +0400
From:      Yuri Pankov <yuri.pankov@gmail.com>
To:        Pavel Timofeev <timp87@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Fping with WITH_IPV6=YES
Message-ID:  <20110603161358.GB1247@procyon.xvoid.org>
In-Reply-To: <BANLkTi=y0j-rQUEnsn0eRnE-OHRy=H7VWg@mail.gmail.com>
References:  <BANLkTi=y0j-rQUEnsn0eRnE-OHRy=H7VWg@mail.gmail.com>

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

--gatW/ieO32f1wygP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, Jun 03, 2011 at 05:57:44PM +0400, Pavel Timofeev wrote:
> Is it normal that /usr/ports/net/fping doesn't work correct if you have
> WITH_IPV6=YES in /etc/make.conf?

Port's Makefile has the following comment:
# IPv6 not enabled by default, as it does not work together with IPv4.

and looking at the code, it seems that fping can use either ipv6 or ipv4
but not both (see the #if(n)def's in the code).

With -DWITH_IPV6:
$ fping 192.168.1.4 192.168.1.252
fping: hostname nor servname provided, or not known
$ fping 2001:470:28:4ba:89c1:323b:9032:86ea \
  2001:470:28:4ba:4a5b:39ff:feb3:b824
2001:470:28:4ba:89c1:323b:9032:86ea is alive
2001:470:28:4ba:4a5b:39ff:feb3:b824 is alive

Without -DWITH_IPV6:
$ fping 192.168.1.4 192.168.1.252
192.168.1.4 is alive
192.168.1.252 is alive
$ fping 2001:470:28:4ba:89c1:323b:9032:86ea \
  2001:470:28:4ba:4a5b:39ff:feb3:b824
2001:470:28:4ba:89c1:323b:9032:86ea address not found
2001:470:28:4ba:4a5b:39ff:feb3:b824 address not found


HTH,
Yuri

--gatW/ieO32f1wygP
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (FreeBSD)

iQIcBAABAgAGBQJN6QhGAAoJEF9SuVmZPGsqPB4QAJq3gMda347DrH0uRjI3DmQF
HDQQ7StvbKyWHaPmDqMsayZ5A+kk+Qm4+QhlnR8CKwo3aaC40CcVXTouZvlOMWog
a2Ytkol6bXb1RayUKTubUC5K36Bv5wF3ANOp5aE7iH4XtfgTIQFaJWr0tLUPrV2W
yQWjWhU3Nk7SXyeP7cS9N7JMVwCfxX6Z4RJo/jhGKxU6FbYLoDXnjLUTRfYbysUz
0DEDj2tSVzPeLyrjqkbHE5GPUf6GjznSg0D8SEgo/WIPwZNdIXMSLmE8SGZtyOAj
hCO0LUHttDCC1oZHFnqFMtFZW6q7bBIqZPtipwxYg4Ky+fwv/Af0wBadbVOKD9HG
3IpuDvmIGEvyVvNau8qX/Hnb2bo1PqBfhVSsYTAiDk63jggdCNpbuFZgw4UBVkn9
uxBAw4+fOwVdRWquiMoNAKIEdh02r6YR7Pr8NavUCLqWMNiLVi/Vie5+t7EMfeIS
/UOt4vFX0VIgqsmW/HcYRmlFnVPsGjkAcA7JqA07es4TT7q7hFbJEpqBTRfKLFEP
gr+XnJLMF/fCRySkANmQGVh7FRH1q2KqMY5dJ/MmKCUBR1fWxySr/REmQBtXvOYF
N/YdZig/WwSh9C6ph8x26JMBsZA6XyunekLbjsoqF7HVED9V58Mrjqq2GJOMj/vz
rlEx85cu0m8hu0MsXQ8o
=xxtX
-----END PGP SIGNATURE-----

--gatW/ieO32f1wygP--



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