Received: by mail.netbsd.org (Postfix, from userid 605) id AC8F48560F; Thu, 23 Feb 2017 07:57:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 391E88560B for ; Thu, 23 Feb 2017 07:57:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id EBctrvktgqWA for ; Thu, 23 Feb 2017 07:57:10 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 9823484CE1 for ; Thu, 23 Feb 2017 07:57:10 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 924F4FBE4; Thu, 23 Feb 2017 07:57:10 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 23 Feb 2017 07:57:10 +0000 From: "Ryota Ozaki" Subject: CVS commit: src To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20170223075710.924F4FBE4@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Ryota Ozaki" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: ozaki-r Date: Thu Feb 23 07:57:10 UTC 2017 Modified Files: src/sys/net: if.c if.h src/sys/netinet6: in6.c in6_ifattach.c in6_var.h mld6.c src/sys/netipsec: key.c src/usr.bin/netstat: if.c src/usr.sbin/ifmcstat: ifmcstat.c Log Message: Remove mkludge stuffs For unknown reasons, IPv6 multicast addresses are linked to a first IPv6 address assigned to an interface. Due to the design, when removing a first address having multicast addresses, we need to save them to somewhere and later restore them once a new IPv6 address is activated. mkludge stuffs support the operations. This change links multicast addresses to an interface directly and throws the kludge away. Note that as usual some obsolete member variables remain for kvm(3) users. And also sysctl net.inet6.multicast_kludge remains to avoid breaking old ifmcstat. TODO: currently ifnet has a list of in6_multi but obviously the list should be protocol independent. Provide a common structure (if_multi or something) to handle in6_multi and in_multi together as well as ifaddr does for in_ifaddr and in6_ifaddr. To generate a diff of this commit: cvs rdiff -u -r1.380 -r1.381 src/sys/net/if.c cvs rdiff -u -r1.234 -r1.235 src/sys/net/if.h cvs rdiff -u -r1.237 -r1.238 src/sys/netinet6/in6.c cvs rdiff -u -r1.111 -r1.112 src/sys/netinet6/in6_ifattach.c cvs rdiff -u -r1.92 -r1.93 src/sys/netinet6/in6_var.h cvs rdiff -u -r1.82 -r1.83 src/sys/netinet6/mld6.c cvs rdiff -u -r1.102 -r1.103 src/sys/netipsec/key.c cvs rdiff -u -r1.93 -r1.94 src/usr.bin/netstat/if.c cvs rdiff -u -r1.20 -r1.21 src/usr.sbin/ifmcstat/ifmcstat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.