https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227243
Bug ID: 227243 Summary: getaddrinfo(3): IPv4-only jail on IPv4+6 host gets ipv6 inaddr_any Product: Base System Version: 11.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: p...@freebsd.org On 11.1-RELEASE-p4 amd64. The host has both IPv4 and IPv6 addresses configured. The jail has only an IPv4 address configured. getaddrinfo(3) with a NULL argument an AI_PASSIVE returns IPv6 address ("::") which cannot used to establish a listen socket because there are no IPv6 addresses in the jail. As far as I can tell, this happens because IPv6 is before IPv4 in afdl[] and explore_null() is not smart enough to spot it is in an IPv4-only jail. I'm not sure if this should be fixed in getaddrinfo.c or in the kernel (to make socket(2) fail in IPv6 in IPv4 only jails). -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"