Date: Mon, 19 Apr 2021 21:28:10 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 254212] can't initialize an if_wg interface with IPv6 disabled Message-ID: <bug-254212-227-u7uPanajKM@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-254212-227@https.bugs.freebsd.org/bugzilla/> References: <bug-254212-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254212 --- Comment #6 from Mark Johnston <markj@FreeBSD.org> --- (In reply to Jason A. Donenfeld from comment #5) Indeed, I'm not really sure why we prohibit bind() if no addresses from the corresponding family are assigned. That behaviour appears to predate FreeB= SD even. It might be just a matter of removing the corresponding checks. OTO= H, it's perfectly valid to disable the use of either v4 or v6 in system (it's = even possible to compile corresponding support out of the kernel), and in that c= ase it seems rather odd to require that both sockets bind successfully. Is it possible to have wg_socket_bind() succeed if it's able to bind at least one= of the sockets, assuming that sobind() returns EADDRNOTAVAIL for the other? --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254212-227-u7uPanajKM>