阅读背景:

Linux C ++如何以编程方式获取LAN上所有适配器的MAC地址

来源:互联网 

How may I use C or C++ PROGRAM (no command line) to get the MAC addresses (I'll take the IP addresses too if they are "free") on my (small) local network. It's an embedded Busybox Linux so I need a minimalist answer that hopefully doesn't require porting some library. I don't have libnet or libpcap. The arp cache seems to never contain anything but the MAC if the DHCP host. (no command line




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: