Hello, in inetutils-1.6, in file inetd/inetd.c, at line 587:
#ifdef IPV6
if (sep->se_family == AF_INET6)
{
int val = sep->se_v4mapped;
if (setsockopt (sep->se_fd, IPPROTO_IPV6, IPV6_V6ONLY,
(char *) &val, sizeof (val)) < 0)
syslog (LOG_ERR, "setsockopt (IPV6_V6ONLY): %m");
}
#endif
should't the assignment for val be negated:
int val = !(sep->se_v4mapped);
Otherwise inetd will only accept ipv6 connections when se_v4mapped is
1. Shouldn't it be the opposite?
Regards,
Peppe
