Merge pull request #511 from dnobori/b4_mac

Improving the compliance of Virtual Network Adapters with the local address bit of the MAC address rule.
This commit is contained in:
Daiyuu Nobori authored and GitHub committed 2018-05-24 18:04:32 +09:00
commit ab54b73737
3 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -431,7 +431,7 @@ void CiChangeAllVLanMacAddress(CLIENT *c)
RPC_CLIENT_ENUM_VLAN_ITEM *e = t.Items[i];
UCHAR mac[6];
if (StrToMac(mac, e->MacAddress) && mac[1] == 0xAC)
if (StrToMac(mac, e->MacAddress) && ((mac[0] == 0x00 && mac[1] == 0xAC) || (mac[0] == 0x5E)))
{
char *name = e->DeviceName;
RPC_CLIENT_SET_VLAN s;