]> git.saurik.com Git - apple/libc.git/blobdiff - uuid/uuidsrc/gen_uuid.c
Libc-997.1.1.tar.gz
[apple/libc.git] / uuid / uuidsrc / gen_uuid.c
index cad4eb70d7bfbda21130dae072791b9ce63b159b..c56c8c9aa73bff3b1ffcf7e0c4929e4050f39928 100644 (file)
@@ -146,7 +146,11 @@ static int get_node_id(unsigned char *node_id)
 #endif /* AF_LINK */
 #endif /* SIOCGENADDR */
 #endif /* SIOCGIFHWADDR */
-               if (!a[0] && !a[1] && !a[2] && !a[3] && !a[4] && !a[5])
+               /*
+                * Skip interfaces that return either 00:00:00:00:00:00 or
+                * 02:00:00:00:00:00.
+                */
+               if ((!a[0] || a[0] == 0x02) && !a[1] && !a[2] && !a[3] && !a[4] && !a[5])
                        continue;
                if (node_id) {
                        memcpy(node_id, a, 6);