From nobody Wed Feb 19 10:40:10 2025 X-Original-To: freebsd-java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YyXwV6BQgz5p9ZQ for ; Wed, 19 Feb 2025 10:40:26 +0000 (UTC) (envelope-from haraldei@anduin.net) Received: from mail.anduin.net (mail.anduin.net [185.42.170.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YyXwR42Ytz3klB for ; Wed, 19 Feb 2025 10:40:23 +0000 (UTC) (envelope-from haraldei@anduin.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=anduin.net header.s=dkim2021 header.b="Msz/CVwq"; dmarc=pass (policy=reject) header.from=anduin.net; spf=pass (mx1.freebsd.org: domain of haraldei@anduin.net designates 185.42.170.45 as permitted sender) smtp.mailfrom=haraldei@anduin.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anduin.net; s=dkim2021; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ILJRBvN8SaoopcOUW6NeNq8x/liBNKueyU3ckdsSRhg=; t=1739961623; x=1740825623; b=Msz/CVwqMaaNvK3P+ulsJpUst2+GoCuwUjbd/8L4nU+MQuI/9Sncc6fs4oApGjBUTLOb63WF66J k5KZh1TKMWqMvcqgRCQ/HRxUp7xux2xyafAGnZfQIrf91mp47rKggFl7fouXhU3QdCf5NlwxZfszz vyF9RBtXCc1uBnVdXSOenb/3IKTlsJWwMdW6X8iZnUOJuZS58+IP49h1YMiUBaiGKv9et0ne3P/7t mRaBLyX2gULMywJx9/7kf9OnAytATnjOxatRB0iQzPdE2U26n3To1jXXcH9cWxq+qzCAd6gwpXjsj KJt/DQXSDvzgKyihnX8Q0Z5oeRr5GTZ84JOQ==; Received: by mail.anduin.net with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.97.1 (FreeBSD)) (envelope-from ) id 1tkhV5-00000000PqP-1121 for freebsd-java@freebsd.org; Wed, 19 Feb 2025 10:40:21 +0000 Date: Wed, 19 Feb 2025 11:40:10 +0100 From: Harald Eilertsen To: FreeBSD Java mailing list Subject: IPv6 in Java on FreeBSD Message-ID: Mail-Followup-To: FreeBSD Java mailing list List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-SA-Authenticated: Yes X-Spam-Score: -1.9 X-Spam-Level: - X-Spam-Report: host: mail.modirum.com | contact: hostmaster@modirum.com | scores: BAYES_00=-1.9,NO_RELAYS=-0.001 | autolearn=no autolearn_force=no, score=0 X-Spamd-Result: default: False [-4.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RBL_SENDERSCORE_REPUT_9(-1.00)[185.42.170.45:from]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[anduin.net,reject]; R_DKIM_ALLOW(-0.20)[anduin.net:s=dkim2021]; R_SPF_ALLOW(-0.20)[+ip4:185.42.170.45/32]; MIME_GOOD(-0.10)[text/plain]; TO_DN_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; FREEFALL_USER(0.00)[haraldei]; ASN(0.00)[asn:62248, ipnet:185.42.170.0/24, country:EE]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-java@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[anduin.net:+] X-Rspamd-Queue-Id: 4YyXwR42Ytz3klB X-Spamd-Bar: ---- Hi, IPv6 support in Java on FreeBSD has been an issue for quite a while. I believe I have found the cause of that, and have created PRs both for the OpenJDK 23[1] and 22[2] ports. In addition this change is also included in the work I've done for the next version (24) and in the patchset I'm working on for the OpenJDK main branch for upstreaming. One question I have is, how far back does it make sense to port this change? Is it ok to patch the most recent JDK versions, or do we want to apply it all the way back to JDK 8 or 11? Also, will this consideration change if we move the default JDK installed to a newer version, say 21? Thanks in advance on any feedback you may have on this! Take care! Harald! [1]: https://github.com/battleblow/jdk23u/pull/5 [2]: https://github.com/battleblow/jdk22u/pull/1