> --- a/configure.ac
> +++ b/configure.ac
> @@ -367,6 +367,10 @@ else
> if test "X$working_icmp6" = "Xyes"; then
> IU_CHECK_MACRO(IPV6_RECVHOPLIMIT, [#include <netinet/in.h>], ,
> [have_recvhoplimt=yes], [have_recvhoplimt=no])
> + IU_CHECK_MACRO(IPV6_2292HOPLIMIT, [#include <netinet/in.h>], , [
> + AC_DEFINE([IPV6_HOPLIMIT], IPV6_2292HOPLIMIT,
> + [Define to IPV6_HOPLIMIT if not available])
> + ], [working_icmp6=no])
> if test "X$have_recvhoplimt" = "Xno"; then
> IU_CHECK_MACRO(IPV6_HOPLIMIT, [#include <netinet/in.h>], , [
> AC_DEFINE([IPV6_RECVHOPLIMIT], IPV6_HOPLIMIT,
This is badly conceived, unfortunately. This conditional disables ping6
at least for OpenBSD, GNU/kFreeBSD, and OpenSolaris.
* Solaris has IPV6_RECVHOPLIMIT, but lacks IPV6_2292HOPLIMIT.
* OpenBSD, FreeBSD, and kFreeBSD all have IPV6_RECVHOPLIMIT,
as well as IPV6_2292HOPLIMIT, but the latter is reserved
for kernel code, unless manually specified.
Ah, that wasn't my intention. I did sit for a while thinking of the
logic here, and tried it on GNU where we have IPV6_HOPLIMIT and such.
I'll think a bit more, if you have a solution please tell.
Thus BSD and Solaris will presently fail in building ping6
by default, in spite of our source being fully functional
also for them.
Yeah, my fault.