Date: Mon, 31 Dec 2001 22:43:18 +0000 From: "June Carey" <carey_june@hotmail.com> To: bugs@freebsd.org Subject: FreeBSD-4.3 IPv6 bug Message-ID: <F261mOlbcrYP0QzBxhJ0000446e@hotmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F261mOlbcrYP0QzBxhJ0000446e>