summaryrefslogtreecommitdiff
path: root/sys/netinet6/in6.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet6/in6.c')
-rw-r--r--sys/netinet6/in6.c28
1 files changed, 1 insertions, 27 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index 2f5609ef0ca..21a571257f8 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6.c,v 1.60 2004/10/07 12:08:25 henning Exp $ */
+/* $OpenBSD: in6.c,v 1.61 2005/09/19 19:36:49 brad Exp $ */
/* $KAME: in6.c,v 1.372 2004/06/14 08:14:21 itojun Exp $ */
/*
@@ -277,32 +277,6 @@ in6_ifremloop(struct ifaddr *ifa)
}
int
-in6_ifindex2scopeid(idx)
- int idx;
-{
- struct ifnet *ifp;
- struct ifaddr *ifa;
- struct sockaddr_in6 *sin6;
-
- if (idx < 0 || if_indexlim <= idx)
- return -1;
- ifp = ifindex2ifnet[idx];
- if (!ifp)
- return -1;
-
- for (ifa = ifp->if_addrlist.tqh_first; ifa; ifa = ifa->ifa_list.tqe_next)
- {
- if (ifa->ifa_addr->sa_family != AF_INET6)
- continue;
- sin6 = (struct sockaddr_in6 *)ifa->ifa_addr;
- if (IN6_IS_ADDR_SITELOCAL(&sin6->sin6_addr))
- return sin6->sin6_scope_id & 0xffff;
- }
-
- return -1;
-}
-
-int
in6_mask2len(mask, lim0)
struct in6_addr *mask;
u_char *lim0;