Fping with WITH_IPV6=YES

Yuri Pankov yuri.pankov at gmail.com
Fri Jun 3 16:42:16 UTC 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20110603/fd706e63/attachment.pgp


More information about the freebsd-ports mailing list