* Track MAC addresses in the client cache (when we can find them); so if we have an expired cache entry, but the MAC hasn't changed, we can assume the original ID is still valid.

This commit is contained in:
Justin Maggard
2009-07-31 01:41:10 +00:00
parent 780ae7ad8b
commit 51e61e3973
4 changed files with 66 additions and 7 deletions

View File

@ -6,6 +6,7 @@
#ifndef __GETIFADDR_H__
#define __GETIFADDR_H__
#include <arpa/inet.h>
/* getifaddr()
* take a network interface name and write the
@ -20,5 +21,8 @@ getsysaddr(char * buf, int len);
int
getifhwaddr(const char * ifname, char * buf, int len);
int
get_remote_mac(struct in_addr ip_addr, unsigned char * mac);
#endif