* Fix some issues with uClibc.

This commit is contained in:
Justin Maggard
2009-10-28 07:44:45 +00:00
parent f36047098c
commit 41f204029b
8 changed files with 31 additions and 7 deletions

View File

@ -8,6 +8,14 @@
#define __GETIFADDR_H__
#include <arpa/inet.h>
#define MACADDR_IS_ZERO(x) \
((x[0] == 0x00) && \
(x[1] == 0x00) && \
(x[2] == 0x00) && \
(x[3] == 0x00) && \
(x[4] == 0x00) && \
(x[5] == 0x00))
/* getifaddr()
* take a network interface name and write the
* ip v4 address as text in the buffer