summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2014-10-27 10:34:09 +0000
committerae <ae@FreeBSD.org>2014-10-27 10:34:09 +0000
commit8d3b28e72b441800be2d280baced412ea6a78805 (patch)
treeae9d90d00d39c67ed6f442b4a3334f10f2e59312
parent981411c14ee33b40717b9ca1151bd411b7add9b7 (diff)
downloadFreeBSD-src-8d3b28e72b441800be2d280baced412ea6a78805.zip
FreeBSD-src-8d3b28e72b441800be2d280baced412ea6a78805.tar.gz
Remove unused function.
Sponsored by: Yandex LLC
-rw-r--r--sys/netinet6/in6.c14
-rw-r--r--sys/netinet6/in6_var.h1
2 files changed, 0 insertions, 15 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index 56f9aa1..687d9d6 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -1584,20 +1584,6 @@ in6_unlink_ifa(struct in6_ifaddr *ia, struct ifnet *ifp)
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
diff --git a/sys/netinet6/in6_var.h b/sys/netinet6/in6_var.h
index 3fc7fee..3ac124a 100644
--- a/sys/netinet6/in6_var.h
+++ b/sys/netinet6/in6_var.h
@@ -804,7 +804,6 @@ void in6_prepare_ifra(struct in6_aliasreq *, const struct in6_addr *,
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 *);
OpenPOWER on IntegriCloud