* Don't use getifaddrs(), since it's not portable; and rework the MAC address reading code.

This commit is contained in:
Justin Maggard
2009-10-23 22:01:05 +00:00
parent 6df206efc0
commit 745457e814
4 changed files with 58 additions and 74 deletions

View File

@ -19,7 +19,7 @@ int
getsysaddr(char * buf, int len);
int
getifhwaddr(const char * ifname, char * buf, int len);
getsyshwaddr(char * buf, int len);
int
get_remote_mac(struct in_addr ip_addr, unsigned char * mac);