]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/net/if.c
xnu-1228.3.13.tar.gz
[apple/xnu.git] / bsd / net / if.c
index 04b3cadf6087de50ae88a6fc63a0d8008520a6e4..499b4790c617e349e9d1f6471fdc7378c35fc832 100644 (file)
@@ -2048,13 +2048,14 @@ if_down_all(void)
        u_int32_t       count;
        u_int32_t       i;
 
-       if (ifnet_list_get(IFNET_FAMILY_ANY, &ifp, &count) != 0) {
+       if (ifnet_list_get_all(IFNET_FAMILY_ANY, &ifp, &count) == 0) {
                for (i = 0; i < count; i++) {
                        if_down(ifp[i]);
+                       dlil_proto_unplumb_all(ifp[i]);
                }
                ifnet_list_free(ifp);
        }
-       
+
        return 0;
 }