Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 Remove unused function (nd6_rem_ifa_lle)



details:   https://anonhg.NetBSD.org/src/rev/f419bce52a7f
branches:  trunk
changeset: 824878:f419bce52a7f
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Thu Jun 22 09:24:02 2017 +0000

description:
Remove unused function (nd6_rem_ifa_lle)

diffstat:

 sys/netinet6/nd6.c |  22 ++--------------------
 sys/netinet6/nd6.h |   3 +--
 2 files changed, 3 insertions(+), 22 deletions(-)

diffs (60 lines):

diff -r 3e194d0b87cf -r f419bce52a7f sys/netinet6/nd6.c
--- a/sys/netinet6/nd6.c        Thu Jun 22 09:23:10 2017 +0000
+++ b/sys/netinet6/nd6.c        Thu Jun 22 09:24:02 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nd6.c,v 1.234 2017/06/21 09:05:31 ozaki-r Exp $        */
+/*     $NetBSD: nd6.c,v 1.235 2017/06/22 09:24:02 ozaki-r Exp $        */
 /*     $KAME: nd6.c,v 1.279 2002/06/08 11:16:51 itojun Exp $   */
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.234 2017/06/21 09:05:31 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6.c,v 1.235 2017/06/22 09:24:02 ozaki-r Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -2423,24 +2423,6 @@
        }
 }
 
-/*
- * Removes ALL lle records for interface address prefix.
- * XXXME: That's probably not we really want to do, we need
- * to remove address record only and keep other records
- * until we determine if given prefix is really going
- * to be removed.
- */
-void
-nd6_rem_ifa_lle(struct in6_ifaddr *ia)
-{
-       struct sockaddr_in6 mask, addr;
-
-       memcpy(&addr, &ia->ia_addr, sizeof(ia->ia_addr));
-       memcpy(&mask, &ia->ia_prefixmask, sizeof(ia->ia_prefixmask));
-       lltable_prefix_free(AF_INET6, sin6tosa(&addr), sin6tosa(&mask),
-           LLE_STATIC);
-}
-
 static void 
 clear_llinfo_pqueue(struct llentry *ln)
 {
diff -r 3e194d0b87cf -r f419bce52a7f sys/netinet6/nd6.h
--- a/sys/netinet6/nd6.h        Thu Jun 22 09:23:10 2017 +0000
+++ b/sys/netinet6/nd6.h        Thu Jun 22 09:24:02 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nd6.h,v 1.84 2017/06/21 09:05:31 ozaki-r Exp $ */
+/*     $NetBSD: nd6.h,v 1.85 2017/06/22 09:24:02 ozaki-r Exp $ */
 /*     $KAME: nd6.h,v 1.95 2002/06/08 11:31:06 itojun Exp $    */
 
 /*
@@ -447,7 +447,6 @@
 int nd6_sysctl(int, void *, size_t *, void *, size_t);
 int nd6_need_cache(struct ifnet *);
 void nd6_llinfo_release_pkts(struct llentry *, struct ifnet *);
-void nd6_rem_ifa_lle(struct in6_ifaddr *);
 
 /* nd6_nbr.c */
 void nd6_na_input(struct mbuf *, int, int);



Home | Main Index | Thread Index | Old Index