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/examples/poll | |
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/examples/poll')
-rw-r--r-- | apps/examples/poll/net_listener.c | 6 | ||||
-rw-r--r-- | apps/examples/poll/net_reader.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/examples/poll/net_listener.c b/apps/examples/poll/net_listener.c index 996e63c3b..ce068585a 100644 --- a/apps/examples/poll/net_listener.c +++ b/apps/examples/poll/net_listener.c @@ -312,17 +312,17 @@ static void net_configure(void) /* Set up our host address */ addr.s_addr = HTONL(CONFIG_EXAMPLES_POLL_IPADDR); - netlib_sethostaddr("eth0", &addr); + netlib_set_ipv4addr("eth0", &addr); /* Set up the default router address */ addr.s_addr = HTONL(CONFIG_EXAMPLES_POLL_DRIPADDR); - netlib_setdraddr("eth0", &addr); + netlib_set_dripv4addr("eth0", &addr); /* Setup the subnet mask */ addr.s_addr = HTONL(CONFIG_EXAMPLES_POLL_NETMASK); - netlib_setnetmask("eth0", &addr); + netlib_set_ipv4netmask("eth0", &addr); } /**************************************************************************** diff --git a/apps/examples/poll/net_reader.c b/apps/examples/poll/net_reader.c index d50181bf7..8597acdab 100644 --- a/apps/examples/poll/net_reader.c +++ b/apps/examples/poll/net_reader.c @@ -106,17 +106,17 @@ static void net_configure(void) /* Set up our host address */ addr.s_addr = HTONL(CONFIG_EXAMPLES_POLL_IPADDR); - netlib_sethostaddr("eth0", &addr); + netlib_set_ipv4addr("eth0", &addr); /* Set up the default router address */ addr.s_addr = HTONL(CONFIG_EXAMPLES_POLL_DRIPADDR); - netlib_setdraddr("eth0", &addr); + netlib_set_dripv4addr("eth0", &addr); /* Setup the subnet mask */ addr.s_addr = HTONL(CONFIG_EXAMPLES_POLL_NETMASK); - netlib_setnetmask("eth0", &addr); + netlib_set_ipv4netmask("eth0", &addr); } /**************************************************************************** |