Do not try to detach if the interface does not support IPv6.

Tested by:	hselasky
PR:		usb/182820
Approved by:	re (glebius)
This commit is contained in:
Hiroki Sato 2013-10-10 09:43:15 +00:00
parent 84b354cb9a
commit 6378e1f369
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256258

View File

@ -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);