This project is read-only.

Getting Ethernet Address

Dec 14, 2010 at 1:21 PM
Edited Dec 14, 2010 at 2:18 PM

Hi guys,  I am trying to getting ethernet card address which is like xx:xx:xx:xx:xx:xx.

 But LivePacketDevice.Address[0] give me the ip, broadcast address.

How can i getting the above format of ethernet address...

Documentation  contains single line explanation of classes and interfaces, i need some more explanations sorry to tell this because i am beginner sir...

If any links is there tell me..

 

Thanks in advance

g_shanmuga

Dec 14, 2010 at 6:22 PM

Hi,

 

There is an extension method for LivePacketDevice in PcapDotNet.Core.Extensions which is called GetMacAddress().

This is what you seem to need.

 

Boaz.