From owner-freebsd-bugs Mon Sep 4 9: 2:34 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from itojun.org (dhcp0.itojun.org [210.160.95.106]) by hub.freebsd.org (Postfix) with ESMTP id 1108E37B423 for ; Mon, 4 Sep 2000 09:02:32 -0700 (PDT) Received: from kiwi.itojun.org (localhost [127.0.0.1]) by itojun.org (8.10.0/3.7W) with ESMTP id e84G24X23369; Tue, 5 Sep 2000 01:02:04 +0900 (JST) Message-Id: <200009041602.e84G24X23369@itojun.org> Cc: Hajimu UMEMOTO Cc: core@kame.net To: bugs@freebsd.org To: huntting@glarp.com In-reply-to: ume's message of Tue, 05 Sep 2000 00:34:42 JST. <20000905.003442.96675651.ume@mahoroba.org> X-Template-Reply-To: itojun@itojun.org X-Template-Return-Receipt-To: itojun@itojun.org X-PGP-Fingerprint: F8 24 B4 2C 8C 98 57 FD 90 5F B4 60 79 54 16 E2 Subject: Re: kern/21016: IPV6_JOIN_GROUP doesnt work for mapped IPv4 multicast addresses From: Jun-ichiro itojun Hagino Date: Tue, 05 Sep 2000 01:02:04 +0900 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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 > 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