diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-18 14:17:00 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-18 14:17:00 -0600 |
commit | 7726fc06938fe042704ef985b2335cc7f1278f63 (patch) | |
tree | a6155f8662c9b0d3ee5cbd241ca04c4e47ca7ea9 /apps/include | |
parent | ad6c6ee858c6f7317b95a4aeab2fcc42614c3b18 (diff) | |
download | nuttx-7726fc06938fe042704ef985b2335cc7f1278f63.tar.gz nuttx-7726fc06938fe042704ef985b2335cc7f1278f63.tar.bz2 nuttx-7726fc06938fe042704ef985b2335cc7f1278f63.zip |
Rename IPv4 netlib functions and files to make room in the namespace for corresponding IPv6 functions and files
Diffstat (limited to 'apps/include')
-rw-r--r-- | apps/include/netutils/netlib.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/apps/include/netutils/netlib.h b/apps/include/netutils/netlib.h index fbff2af1e..882de51f5 100644 --- a/apps/include/netutils/netlib.h +++ b/apps/include/netutils/netlib.h @@ -112,16 +112,18 @@ int netlib_getmacaddr(FAR const char *ifname, uint8_t *macaddr); /* IP address support */ +#ifdef CONFIG_NET_IPv4 +int netlib_get_ipv4addr(FAR const char *ifname, FAR struct in_addr *addr); +int netlib_set_ipv4addr(FAR const char *ifname, FAR const struct in_addr *addr); +int netlib_set_dripv4addr(FAR const char *ifname, FAR const struct in_addr *addr); +int netlib_set_ipv4netmask(FAR const char *ifname, FAR const struct in_addr *addr); +#endif + #ifdef CONFIG_NET_IPv6 -int netlib_gethostaddr(FAR const char *ifname, struct in6_addr *addr); -int netlib_sethostaddr(FAR const char *ifname, const struct in6_addr *addr); -int netlib_setdraddr(FAR const char *ifname, const struct in6_addr *addr); -int netlib_setnetmask(FAR const char *ifname, const struct in6_addr *addr); -#else -int netlib_gethostaddr(FAR const char *ifname, struct in_addr *addr); -int netlib_sethostaddr(FAR const char *ifname, const struct in_addr *addr); -int netlib_setdraddr(FAR const char *ifname, const struct in_addr *addr); -int netlib_setnetmask(FAR const char *ifname, const struct in_addr *addr); +int netlib_get_ipv6addr(FAR const char *ifname, FAR struct in6_addr *addr); +int netlib_set_ipv6addr(FAR const char *ifname, FAR const struct in6_addr *addr); +int netlib_set_dripv6addr(FAR const char *ifname, FAR const struct in6_addr *addr); +int netlib_set_ipv6netmask(FAR const char *ifname, FAR const struct in6_addr *addr); #endif /* HTTP support */ |