C# 通过ARP发包获取路由器MAC地址
C# 通过ARP发包获取路由器MAC地址
[DllImport(“Iphlpapi.dll”)]
private static unsafe extern int SendARP(Int32 dest, Int32 host, ref Int32 mac, ref Int32 length);
[DllImport("Ws2_32.dll")]
private static extern Int32 inet_addr(string ip);
public static strin
原创
2020-09-11 17:25:52 ·
577 阅读 ·
0 评论