locked
mac adresss

    Question

  •    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;
            }


    U use these method in order to change string to mac address, however the output of that is fixed value 30-30-2D-32-31-2D, whatever the input string

    any ideas
    little83
    Sunday, February 22, 2009 9:23 PM

Answers

  • What does the NDIS_802_3_ADDRESS class  constructor do?
    From Google it looks like it just returns the MAC address of the network card in your machine.
    You can check this by opening a command prompt and running 'ipconfig /all'.
    The line for Physical Address is the MAC address of the network card.

    I've not used NDIS_802_3_ADDRESS so am just guessing. To better answer I'd need to know which namespace NDIS_802_3_ADDRESS is declared in.
    Monday, February 23, 2009 10:37 AM