From owner-freebsd-bugs Mon Dec 31 14:43:21 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from hotmail.com (f261.law11.hotmail.com [64.4.16.136]) by hub.freebsd.org (Postfix) with ESMTP id D470C37B41E for ; Mon, 31 Dec 2001 14:43:18 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 31 Dec 2001 14:43:18 -0800 Received: from 212.159.191.183 by lw11fd.law11.hotmail.msn.com with HTTP; Mon, 31 Dec 2001 22:43:18 GMT X-Originating-IP: [212.159.191.183] From: "June Carey" To: bugs@freebsd.org Subject: FreeBSD-4.3 IPv6 bug Date: Mon, 31 Dec 2001 22:43:18 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 31 Dec 2001 22:43:18.0712 (UTC) FILETIME=[8ACFAB80:01C1924C] Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, I've tried and failed to send this problem-report in a few times, so here it comes for the umpteenth time: Hi, I seem to have discovered a kernel/networking bug in FreeBSD-4.3: I have written an IPv6 SOCK_STREAM listening server, which can handle IPv4 and IPv6 connections. However, when the server is operating with an IPv6 listening socket, and accepts a new IPv4 connection, accept(2) fills in the address structure (a union of sockaddr_in and sockaddr_in6) with a "sin_family" of 28 (AF_INET6). Surely it should be 2 (AF_INET). I have checked with a netstat -a to make sure it is actually a IPv4 connection. I am 100% positive that there is no mistake in my programming; for example when I run the server in IPv4 "mode", accept(2) correctly fills in the address structure with a "sin_family" of 2. And BTW when the server is running in IPv4 mode I get connection refused when I try to connect with a IPv6 socket. Cheers, Robin _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message