Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet6 Remove the now un-used function in6ifa_ifplocal...



details:   https://anonhg.NetBSD.org/src/rev/adf9ff12871d
branches:  trunk
changeset: 325954:adf9ff12871d
user:      roy <roy%NetBSD.org@localhost>
date:      Mon Jan 13 18:57:48 2014 +0000

description:
Remove the now un-used function in6ifa_ifplocaladdr.

diffstat:

 sys/netinet6/in6.c     |  30 ++----------------------------
 sys/netinet6/in6_var.h |   4 +---
 2 files changed, 3 insertions(+), 31 deletions(-)

diffs (69 lines):

diff -r 13738d44dda6 -r adf9ff12871d sys/netinet6/in6.c
--- a/sys/netinet6/in6.c        Mon Jan 13 18:26:34 2014 +0000
+++ b/sys/netinet6/in6.c        Mon Jan 13 18:57:48 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6.c,v 1.167 2013/09/11 23:15:47 christos Exp $       */
+/*     $NetBSD: in6.c,v 1.168 2014/01/13 18:57:48 roy Exp $    */
 /*     $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $   */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.167 2013/09/11 23:15:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.168 2014/01/13 18:57:48 roy Exp $");
 
 #include "opt_inet.h"
 #include "opt_compat_netbsd.h"
@@ -1870,32 +1870,6 @@
 }
 
 /*
- * find the internet address on a given interface corresponding to a neighbor's
- * address.
- */
-struct in6_ifaddr *
-in6ifa_ifplocaladdr(const struct ifnet *ifp, const struct in6_addr *addr)
-{
-       struct ifaddr *ifa;
-       struct in6_ifaddr *best_ia = NULL, *ia;
-
-       IFADDR_FOREACH(ifa, ifp) {
-               if (ifa->ifa_addr == NULL)
-                       continue;       /* just for safety */
-               if (ifa->ifa_addr->sa_family != AF_INET6)
-                       continue;
-               ia = (struct in6_ifaddr *)ifa;
-               if (!IN6_ARE_MASKED_ADDR_EQUAL(addr,
-                               &ia->ia_addr.sin6_addr,
-                               &ia->ia_prefixmask.sin6_addr))
-                       continue;
-               best_ia = bestia(best_ia, ia);
-       }
-
-       return best_ia;
-}
-
-/*
  * Convert IP6 address to printable (loggable) representation.
  */
 static int ip6round = 0;
diff -r 13738d44dda6 -r adf9ff12871d sys/netinet6/in6_var.h
--- a/sys/netinet6/in6_var.h    Mon Jan 13 18:26:34 2014 +0000
+++ b/sys/netinet6/in6_var.h    Mon Jan 13 18:57:48 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6_var.h,v 1.67 2014/01/02 18:29:01 pooka Exp $       */
+/*     $NetBSD: in6_var.h,v 1.68 2014/01/13 18:57:49 roy Exp $ */
 /*     $KAME: in6_var.h,v 1.81 2002/06/08 11:16:51 itojun Exp $        */
 
 /*
@@ -694,8 +694,6 @@
 void   in6_createmkludge(struct ifnet *);
 void   in6_purgemkludge(struct ifnet *);
 struct in6_ifaddr *in6ifa_ifpforlinklocal(const struct ifnet *, int);
-struct in6_ifaddr *in6ifa_ifplocaladdr(const struct ifnet *,
-    const struct in6_addr *);
 struct in6_ifaddr *in6ifa_ifpwithaddr(const struct ifnet *,
     const struct in6_addr *);
 char   *ip6_sprintf(const struct in6_addr *);



Home | Main Index | Thread Index | Old Index