Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 C 或 C++ 以编程方式在 wifi 网络中找到所有其他启用 wifi 的设备的 MAC 地址,如果可以,请告诉我方法或方向,我该如何在 Visual Studio 2012 中做到这一点。
如果它们在您设备旁边的同一 LAN 中(中间没有路由器/交换机,ARP 的范围是链路层。)您应该使用向设备发送ARP数据包。
地址解析协议 (ARP) 是一种电信协议,用于将网络层地址解析为链路层地址。
要发送 ARP,您可以使用Pcap或SendARP。