1
如何獲得pcap.net中選定LivePacketDevice的MAC地址?我如何獲得pcap.net中選定設備的MAC地址
var allDevices = LivePacketDevice.AllLocalMachine;
LivePacketDevice dev = allDevices[0];
如何獲得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
命名空間。