Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Oct 2014 10:34:09 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273732 - head/sys/netinet6
Message-ID:  <201410271034.s9RAY9Ib026035@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Mon Oct 27 10:34:09 2014
New Revision: 273732
URL: https://svnweb.freebsd.org/changeset/base/273732

Log:
  Remove unused function.
  
  Sponsored by:	Yandex LLC

Modified:
  head/sys/netinet6/in6.c
  head/sys/netinet6/in6_var.h

Modified: head/sys/netinet6/in6.c
==============================================================================
--- head/sys/netinet6/in6.c	Mon Oct 27 09:30:57 2014	(r273731)
+++ head/sys/netinet6/in6.c	Mon Oct 27 10:34:09 2014	(r273732)
@@ -1584,20 +1584,6 @@ in6_unlink_ifa(struct in6_ifaddr *ia, st
 	ifa_free(&ia->ia_ifa);			/* in6_ifaddrhead */
 }
 
-void
-in6_purgeif(struct ifnet *ifp)
-{
-	struct ifaddr *ifa, *nifa;
-
-	TAILQ_FOREACH_SAFE(ifa, &ifp->if_addrhead, ifa_link, nifa) {
-		if (ifa->ifa_addr->sa_family != AF_INET6)
-			continue;
-		in6_purgeaddr(ifa);
-	}
-
-	in6_ifdetach(ifp);
-}
-
 /*
  * Notifies other other subsystems about address change/arrival:
  * 1) Notifies device handler on first IPv6 address assignment

Modified: head/sys/netinet6/in6_var.h
==============================================================================
--- head/sys/netinet6/in6_var.h	Mon Oct 27 09:30:57 2014	(r273731)
+++ head/sys/netinet6/in6_var.h	Mon Oct 27 10:34:09 2014	(r273732)
@@ -804,7 +804,6 @@ void	in6_prepare_ifra(struct in6_aliasre
 	const struct in6_addr *);
 void	in6_purgeaddr(struct ifaddr *);
 int	in6if_do_dad(struct ifnet *);
-void	in6_purgeif(struct ifnet *);
 void	in6_savemkludge(struct in6_ifaddr *);
 void	*in6_domifattach(struct ifnet *);
 void	in6_domifdetach(struct ifnet *, void *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410271034.s9RAY9Ib026035>