How can I get MAC address of a selected LivePacketDevice in pcap.net?
var allDevices = LivePacketDevice.AllLocalMachine;
LivePacketDevice dev = allDevices[0];
How can I get MAC address of a selected LivePacketDevice in pcap.net?
var allDevices = LivePacketDevice.AllLocalMachine;
LivePacketDevice dev = allDevices[0];
Use the LivePacketDeviceExtensions
static method:
public static MacAddress GetMacAddress(this LivePacketDevice livePacketDevice)
It is defined in PcapDotNet.Core.Extensions
Assembly in the PcapDotNet.Core.Extensions
namespace.