summaryrefslogtreecommitdiff
path: root/apps/examples/tcpecho/tcpecho_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/tcpecho/tcpecho_main.c')
-rw-r--r--apps/examples/tcpecho/tcpecho_main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/examples/tcpecho/tcpecho_main.c b/apps/examples/tcpecho/tcpecho_main.c
index 34ca3c063..62dae4963 100644
--- a/apps/examples/tcpecho/tcpecho_main.c
+++ b/apps/examples/tcpecho/tcpecho_main.c
@@ -131,17 +131,17 @@ static int tcpecho_netsetup()
#else
addr.s_addr = HTONL(CONFIG_EXAMPLES_TCPECHO_IPADDR);
#endif
- netlib_sethostaddr("eth0", &addr);
+ netlib_set_ipv4addr("eth0", &addr);
/* Set up the default router address */
addr.s_addr = HTONL(CONFIG_EXAMPLES_TCPECHO_DRIPADDR);
- netlib_setdraddr("eth0", &addr);
+ netlib_set_dripv4addr("eth0", &addr);
/* Setup the subnet mask */
addr.s_addr = HTONL(CONFIG_EXAMPLES_TCPECHO_NETMASK);
- netlib_setnetmask("eth0", &addr);
+ netlib_set_ipv4netmask("eth0", &addr);
#ifdef CONFIG_EXAMPLES_TCPECHO_DHCPC
/* Set up the resolver */
@@ -170,16 +170,16 @@ static int tcpecho_netsetup()
return ERROR;
}
- 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)