Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Oct 2013 09:43:15 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r256258 - head/sys/netinet6
Message-ID:  <201310100943.r9A9hFfM018555@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Thu Oct 10 09:43:15 2013
New Revision: 256258
URL: http://svnweb.freebsd.org/changeset/base/256258

Log:
  Do not try to detach if the interface does not support IPv6.
  
  Tested by:	hselasky
  PR:		usb/182820
  Approved by:	re (glebius)

Modified:
  head/sys/netinet6/in6_ifattach.c

Modified: head/sys/netinet6/in6_ifattach.c
==============================================================================
--- head/sys/netinet6/in6_ifattach.c	Thu Oct 10 09:42:41 2013	(r256257)
+++ head/sys/netinet6/in6_ifattach.c	Thu Oct 10 09:43:15 2013	(r256258)
@@ -809,6 +809,9 @@ in6_ifdetach(struct ifnet *ifp)
 	struct sockaddr_in6 sin6;
 	struct in6_multi_mship *imm;
 
+	if (ifp->if_afdata[AF_INET6] == NULL)
+		return;
+
 	/* remove neighbor management table */
 	nd6_purge(ifp);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310100943.r9A9hFfM018555>