我如何获得pcap.net中选定设备的MAC地址
问题描述:
如何获得pcap.net中选定LivePacketDevice的MAC地址?我如何获得pcap.net中选定设备的MAC地址
var allDevices = LivePacketDevice.AllLocalMachine;
LivePacketDevice dev = allDevices[0];
答
使用LivePacketDeviceExtensions
静态方法:
public static MacAddress GetMacAddress(this LivePacketDevice livePacketDevice)
它在PcapDotNet.Core.Extensions
大会被定义在PcapDotNet.Core.Extensions
命名空间。