Date: Tue, 18 Oct 2011 09:32:52 GMT From: Damien Fleuriot <dam@my.gd> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/161765: [ports] relayd fails to initialize on systems without IPv6 in kernel Message-ID: <201110180932.p9I9WqQQ074512@red.freebsd.org> Resent-Message-ID: <201110180940.p9I9e8VV003131@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 161765 >Category: ports >Synopsis: [ports] relayd fails to initialize on systems without IPv6 in kernel >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 18 09:40:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Damien Fleuriot >Release: 8.2-RELEASE >Organization: Hi-Media >Environment: >Description: When trying to start relayd 4.6 on a host without INET6 in the kernel, relayd exits with an error that I'm sadly unable to recall. The error may have been with check_icmp.c in function icmp_setup() starting at line 54: void icmp_setup(struct relayd *env, struct ctl_icmp_event *cie, int af) { int proto = IPPROTO_ICMP; if (af == AF_INET6) proto = IPPROTO_ICMPV6; if ((cie->s = socket(af, SOCK_RAW, proto)) < 0) fatal("icmp_init: socket"); socket_set_blockmode(cie->s, BM_NONBLOCK); cie->env = env; cie->af = af; } This was present on 4.6, I can't confirm for 5.0 as the host now has INET6 compiled in the kernel. >How-To-Repeat: On a 8.2-RELEASE box, build a custom kernel without INET6 support (disable IPv6). Build relayd, try to start. >Fix: Not sure if this is an actual bug, or intended. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110180932.p9I9WqQQ074512>