全球MAC地址与本地MAC地址

未分类

苹果在IOS8中, Wi-Fi scanning behavior has changed to use random, locally administrated MAC addresses

http://devstreaming.apple.com/videos/wwdc/2014/715xx4loqo5can9/715/715_user_privacy_in_ios_and_os_x.pdf

参考https://en.wikipedia.org/wiki/MAC_address

本地MAC地址

在最高字节,即通常写MAC时的第一个字节

最低bit位的第2个bit

这个bit又叫做U/L bit, short for Universal/Local

写代码判断的时候将第一个字节与2位与即可

为0 – 全球唯一MAC地址

为1 – 本地MAC地址

但是根据IEEE的OUI分配

http://www.ieee.org/netstorage/standards/oui.txt

这样判断不完全准确

因为

有 02-07-01 这样的OUI分配了

发表回复