public static NDIS_802_3_ADDRESS StrToByteArray(string str)
{
ASCIIEncoding encoding = new ASCIIEncoding();
byte[] m = encoding.GetBytes(str);
NDIS_802_3_ADDRESS mac = new NDIS_802_3_ADDRESS(m);
return mac;
}
You use this method to change the string to the mac address, however the output of this value is a fixed value of 30-30-2D-32-31-2D, regardless of the input string.
Any ideas?
little83
source
share