On Tue, Jan 29, 2013 at 11:09:49AM +0100, Julien Dhaille wrote:
> Hi.
> With a non INET6 kernel, relayd is not working :
> fatal: icmp_init: socket: Protocol not supported.
>
> Cheers
>
> Index: check_icmp.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/relayd/check_icmp.c,v
> retrieving revision 1.34
> diff -u -r1.34 check_icmp.c
> --- check_icmp.c 17 Jan 2013 20:34:18 -0000 1.34
> +++ check_icmp.c 28 Jan 2013 13:36:19 -0000
> @@ -69,8 +69,11 @@
> {
> icmp_setup(env, &env->sc_icmp_send, AF_INET);
> icmp_setup(env, &env->sc_icmp_recv, AF_INET);
> +#ifdef INET6
> icmp_setup(env, &env->sc_icmp6_send, AF_INET6);
> icmp_setup(env, &env->sc_icmp6_recv, AF_INET6);
> +#endif
> +
The proper fix would be to fix icmp_setup to not error out when
EPROTONOSUPPORT is returned.
> env->sc_id = getpid() & 0xffff;
> }
>
> --
> Julien Dhaille
--
:wq Claudio