1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-12 02:34:59 +03:00

Improving the compliance of Virtual Network Adapters with the local address bit of the MAC address rule.

When installing a new device driver of the Virtual Network Driver card, we changed the initial random MAC address from 00-AC-xx-xx-xx-xx to 5E-xx-xx-xx-xx-xx. This realizes the compliance with the local address bit of the MAC address rule.
This commit is contained in:
Daiyuu Nobori
2018-04-22 18:24:29 +09:00
parent b1f74268b1
commit 683aecaaec
3 changed files with 13 additions and 13 deletions

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;