【发布时间】:2016-06-14 07:58:15
【问题描述】:
如何在 pcap.net 中获取选定 LivePacketDevice 的 MAC 地址?
var allDevices = LivePacketDevice.AllLocalMachine;
LivePacketDevice dev = allDevices[0];
【问题讨论】:
标签: c# network-programming pcap.net
如何在 pcap.net 中获取选定 LivePacketDevice 的 MAC 地址?
var allDevices = LivePacketDevice.AllLocalMachine;
LivePacketDevice dev = allDevices[0];
【问题讨论】:
标签: c# network-programming pcap.net
使用LivePacketDeviceExtensions静态方法:
public static MacAddress GetMacAddress(this LivePacketDevice livePacketDevice)
在PcapDotNet.Core.Extensions命名空间的PcapDotNet.Core.ExtensionsAssembly中定义。
【讨论】: