Date: Tue, 05 Sep 2000 01:02:04 +0900 From: Jun-ichiro itojun Hagino <itojun@iijlab.net> To: huntting@glarp.com Cc: core@kame.net Subject: Re: kern/21016: IPV6_JOIN_GROUP doesnt work for mapped IPv4 multicast addresses Message-ID: <200009041602.e84G24X23369@itojun.org> In-Reply-To: ume's message of Tue, 05 Sep 2000 00:34:42 JST. <20000905.003442.96675651.ume@mahoroba.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>Description > When passed a v4 mapped multicast address (e.g. ::ffff:239.255.24.23), > setsockopt(IPV6_JOIN_GROUP) returns EINVAL. Part of the problem stems > from the fact that the IN6_IS_ADDR_MULTICAST() macro in <netinet6/in6.h> > does not recognise V4 mapped addresses. Should it? And should > setsockopt(IPV6_JOIN_GROUP) work on v4 mapped addresses? If you aggree > that it should, let me know and I will patch the include file and the > kernel accordingly. > >How-To-Repeat > Try to use setsockopt(IPV6_JOIN_GROUP) on a v4 mapped multicast address. > >Fix > I just want to make sure that this is a bug and not a feature before > I go and "fix" it. Please let me know ASAP as I have a deadline to meet. this is a feature. IPv4 mapped address on AF_INET6 socket is just to help porting basic IPv4 apps at ease. to manipulate IPv4 traffic in detail (including TOS/TTL, or multicast), you must use AF_INET socket. itojun 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?200009041602.e84G24X23369>