svn commit: r299290 - head/sys/netinet6

Mark Johnston markj at FreeBSD.org
Mon May 9 23:43:14 UTC 2016


Author: markj
Date: Mon May  9 23:43:12 2016
New Revision: 299290
URL: https://svnweb.freebsd.org/changeset/base/299290

Log:
  Remove obsolescent comments from nd6_purge().
  
  MFC after:	1 week

Modified:
  head/sys/netinet6/nd6.c

Modified: head/sys/netinet6/nd6.c
==============================================================================
--- head/sys/netinet6/nd6.c	Mon May  9 22:21:09 2016	(r299289)
+++ head/sys/netinet6/nd6.c	Mon May  9 23:43:12 2016	(r299290)
@@ -1097,8 +1097,8 @@ regen_tmpaddr(struct in6_ifaddr *ia6)
 }
 
 /*
- * Nuke neighbor cache/prefix/default router management table, right before
- * ifp goes away.
+ * Remove prefix and default router list entries corresponding to ifp. Neighbor
+ * cache entries are freed in in6_domifdetach().
  */
 void
 nd6_purge(struct ifnet *ifp)
@@ -1147,14 +1147,6 @@ nd6_purge(struct ifnet *ifp)
 			 */
 			pr->ndpr_refcnt = 0;
 
-			/*
-			 * Previously, pr->ndpr_addr is removed as well,
-			 * but I strongly believe we don't have to do it.
-			 * nd6_purge() is only called from in6_ifdetach(),
-			 * which removes all the associated interface addresses
-			 * by itself.
-			 * (jinmei at kame.net 20010129)
-			 */
 			prelist_remove(pr);
 		}
 	}
@@ -1167,14 +1159,6 @@ nd6_purge(struct ifnet *ifp)
 		/* Refresh default router list. */
 		defrouter_select();
 	}
-
-	/* XXXXX
-	 * We do not nuke the neighbor cache entries here any more
-	 * because the neighbor cache is kept in if_afdata[AF_INET6].
-	 * nd6_purge() is invoked by in6_ifdetach() which is called
-	 * from if_detach() where everything gets purged. So let
-	 * in6_domifdetach() do the actual L2 table purging work.
-	 */
 }
 
 /* 


More information about the svn-src-head mailing list