From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15871 invoked by alias); 6 Apr 2006 19:40:59 -0000 Received: (qmail 15848 invoked by uid 48); 6 Apr 2006 19:40:59 -0000 Date: Thu, 06 Apr 2006 19:40:00 -0000 Subject: [Bug libgcj/27066] New: libgcj native socket code does not support IPv6 X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "cjw at daneel dot dyndns dot org" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2006-q2/txt/msg00057.txt.bz2 List-Id: Java Sockets do not know on creation if they will be used for IPv6 or IPv4, so the gnu::java::net::PlainSocketImpl::create method should use PF_INET6 instead of AF_INET. The other methods - bind and connect - must then translate IPv4 addresses to IPv4-in-IPv6. Behavior with HAVE_INET6 not defined should probably not be changed. The code is in libjava/gnu/java/net/natPlainSocketImplPosix.cc . -- Summary: libgcj native socket code does not support IPv6 Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: cjw at daneel dot dyndns dot org GCC host triplet: powerpc-mandriva-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27066