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/webserver/webserver_main.c | |
parent | ad6c6ee858c6f7317b95a4aeab2fcc42614c3b18 (diff) | |
download | px4-nuttx-7726fc06938fe042704ef985b2335cc7f1278f63.tar.gz px4-nuttx-7726fc06938fe042704ef985b2335cc7f1278f63.tar.bz2 px4-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/webserver/webserver_main.c')
-rw-r--r-- | apps/examples/webserver/webserver_main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/examples/webserver/webserver_main.c b/apps/examples/webserver/webserver_main.c index f9c029325..a56bc08b3 100644 --- a/apps/examples/webserver/webserver_main.c +++ b/apps/examples/webserver/webserver_main.c @@ -129,17 +129,17 @@ int webserver_main(int argc, char *argv[]) #else addr.s_addr = HTONL(CONFIG_EXAMPLES_WEBSERVER_IPADDR); #endif - netlib_sethostaddr("eth0", &addr); + netlib_set_ipv4addr("eth0", &addr); /* Set up the default router address */ addr.s_addr = HTONL(CONFIG_EXAMPLES_WEBSERVER_DRIPADDR); - netlib_setdraddr("eth0", &addr); + netlib_set_dripv4addr("eth0", &addr); /* Setup the subnet mask */ addr.s_addr = HTONL(CONFIG_EXAMPLES_WEBSERVER_NETMASK); - netlib_setnetmask("eth0", &addr); + netlib_set_ipv4netmask("eth0", &addr); #ifdef CONFIG_EXAMPLES_WEBSERVER_DHCPC /* Set up the resolver */ @@ -163,16 +163,16 @@ int webserver_main(int argc, char *argv[]) { struct dhcpc_state ds; (void)dhcpc_request(handle, &ds); - netlib_sethostaddr("eth0", &ds.ipaddr); + netlib_set_ipv4addr("eth0", &ds.ipaddr); if (ds.netmask.s_addr != 0) { - netlib_setnetmask("eth0", &ds.netmask); + netlib_set_ipv4netmask("eth0", &ds.netmask); } if (ds.default_router.s_addr != 0) { - netlib_setdraddr("eth0", &ds.default_router); + netlib_set_dripv4addr("eth0", &ds.default_router); } if (ds.dnsaddr.s_addr != 0) |