Module Name:    src
Committed By:   ozaki-r
Date:           Thu Jun 22 09:24:02 UTC 2017

Modified Files:
        src/sys/netinet6: nd6.c nd6.h

Log Message:
Remove unused function (nd6_rem_ifa_lle)


To generate a diff of this commit:
cvs rdiff -u -r1.234 -r1.235 src/sys/netinet6/nd6.c
cvs rdiff -u -r1.84 -r1.85 src/sys/netinet6/nd6.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netinet6/nd6.c
diff -u src/sys/netinet6/nd6.c:1.234 src/sys/netinet6/nd6.c:1.235
--- src/sys/netinet6/nd6.c:1.234	Wed Jun 21 09:05:31 2017
+++ src/sys/netinet6/nd6.c	Thu Jun 22 09:24:02 2017
@@ -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 @@ nd6_need_cache(struct ifnet *ifp)
 	}
 }
 
-/*
- * 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)
 {

Index: src/sys/netinet6/nd6.h
diff -u src/sys/netinet6/nd6.h:1.84 src/sys/netinet6/nd6.h:1.85
--- src/sys/netinet6/nd6.h:1.84	Wed Jun 21 09:05:31 2017
+++ src/sys/netinet6/nd6.h	Thu Jun 22 09:24:02 2017
@@ -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 @@ void nd6_cache_lladdr(struct ifnet *, st
 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);

Reply via email to