提交 fbcd8204 编写于 作者: R Rich Felker

add stubs for additional legacy ether.h functions

these would not be expensive to actually implement, but reading
/etc/ethers does not sound like a particularly useful feature, so for
now I'm leaving them as stubs.
上级 d66ab4f1
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
#include <netinet/if_ether.h> #include <netinet/if_ether.h>
char *ether_ntoa (const struct ether_addr *); char *ether_ntoa (const struct ether_addr *);
struct ether_addr *ether_aton (const char *); struct ether_addr *ether_aton (const char *);
char *ether_ntoa_r (const struct ether_addr *, char *); char *ether_ntoa_r (const struct ether_addr *, char *);
struct ether_addr *ether_aton_r (const char *, struct ether_addr *); struct ether_addr *ether_aton_r (const char *, struct ether_addr *);
int ether_line(const char *, struct ether_addr *, char *);
int ether_ntohost(char *, const struct ether_addr *);
int ether_hostton(const char *, struct ether_addr *);
#endif #endif
...@@ -41,3 +41,18 @@ char *ether_ntoa (const struct ether_addr *p_a) { ...@@ -41,3 +41,18 @@ char *ether_ntoa (const struct ether_addr *p_a) {
static char x[18]; static char x[18];
return ether_ntoa_r (p_a, x); return ether_ntoa_r (p_a, x);
} }
int ether_line(const char *l, struct ether_addr *e, char *hostname)
{
return -1;
}
int ether_ntohost(char *hostname, const struct ether_addr *e)
{
return -1;
}
int ether_hostton(const char *hostname, struct ether_addr *e)
{
return -1;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册