libs/libc/net: implement ether_aton/ether_aton_r

Reference here:
https://www.unix.com/man-page/linux/3/ether_aton

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2020-12-09 10:57:56 +08:00
committed by Xiang Xiao
parent 84bbc9f5fd
commit 866bb35d2d
3 changed files with 134 additions and 1 deletions
+2
View File
@@ -70,6 +70,8 @@ int ether_ntohost(FAR char *hostname, FAR const struct ether_addr *addr);
int ether_hostton(FAR const char *hostname, FAR struct ether_addr *addr);
int ether_line(FAR const char *line, FAR struct ether_addr *addr,
FAR char *hostname);
FAR struct ether_addr *ether_aton_r(FAR const char *asc,
FAR struct ether_addr *addr);
#undef EXTERN
#ifdef __cplusplus