Don't require a configured network interface to start up, and add network interface monitoring support on Linux.

This commit is contained in:
Justin Maggard
2013-05-08 23:52:02 -07:00
parent 1e4cf74436
commit 62b6e235b1
10 changed files with 249 additions and 360 deletions

View File

@ -38,21 +38,12 @@
(x[4] == 0x00) && \
(x[5] == 0x00))
/* getifaddr()
* take a network interface name and write the
* ip v4 address as text in the buffer
* returns: 0 success, -1 failure */
int
getifaddr(const char * ifname, char * buf, int len);
int getsyshwaddr(char *buf, int len);
int get_remote_mac(struct in_addr ip_addr, unsigned char *mac);
void reload_ifaces(void);
int
getsysaddrs(void);
int
getsyshwaddr(char * buf, int len);
int
get_remote_mac(struct in_addr ip_addr, unsigned char * mac);
int OpenAndConfMonitorSocket();
void ProcessMonitorEvent(int s);
#endif