summaryrefslogtreecommitdiff
path: root/apps/examples/tcpecho/tcpecho_main.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-02 16:52:02 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-02 16:52:02 -0600
commitd559bea3ebb08291f2312551bfb43c91ba03c18c (patch)
tree8f2bce9ac07964ef0cc8923400768bf18e10d37e /apps/examples/tcpecho/tcpecho_main.c
parent7f24c737b4d75340484337f5418c08c5de8c981d (diff)
downloadnuttx-d559bea3ebb08291f2312551bfb43c91ba03c18c.tar.gz
nuttx-d559bea3ebb08291f2312551bfb43c91ba03c18c.tar.bz2
nuttx-d559bea3ebb08291f2312551bfb43c91ba03c18c.zip
NET: Rename functions in apps/netutils/netlib to begin with netlib_ vs uip_
Diffstat (limited to 'apps/examples/tcpecho/tcpecho_main.c')
-rw-r--r--apps/examples/tcpecho/tcpecho_main.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/examples/tcpecho/tcpecho_main.c b/apps/examples/tcpecho/tcpecho_main.c
index df8c6983d..4bf09d739 100644
--- a/apps/examples/tcpecho/tcpecho_main.c
+++ b/apps/examples/tcpecho/tcpecho_main.c
@@ -121,7 +121,7 @@ static int tcpecho_netsetup()
mac[3] = 0xad;
mac[4] = 0xbe;
mac[5] = 0xef;
- uip_setmacaddr("eth0", mac);
+ netlib_setmacaddr("eth0", mac);
#endif
/* Set up our host address */
@@ -131,17 +131,17 @@ static int tcpecho_netsetup()
#else
addr.s_addr = HTONL(CONFIG_EXAMPLES_TCPECHO_IPADDR);
#endif
- uip_sethostaddr("eth0", &addr);
+ netlib_sethostaddr("eth0", &addr);
/* Set up the default router address */
addr.s_addr = HTONL(CONFIG_EXAMPLES_TCPECHO_DRIPADDR);
- uip_setdraddr("eth0", &addr);
+ netlib_setdraddr("eth0", &addr);
/* Setup the subnet mask */
addr.s_addr = HTONL(CONFIG_EXAMPLES_TCPECHO_NETMASK);
- uip_setnetmask("eth0", &addr);
+ netlib_setnetmask("eth0", &addr);
#ifdef CONFIG_EXAMPLES_TCPECHO_DHCPC
/* Set up the resolver */
@@ -150,7 +150,7 @@ static int tcpecho_netsetup()
/* Get the MAC address of the NIC */
- uip_getmacaddr("eth0", mac);
+ netlib_getmacaddr("eth0", mac);
/* Set up the DHCPC modules */
@@ -170,16 +170,16 @@ static int tcpecho_netsetup()
return ERROR;
}
- uip_sethostaddr("eth1", &ds.ipaddr);
+ netlib_sethostaddr("eth1", &ds.ipaddr);
if (ds.netmask.s_addr != 0)
{
- uip_setnetmask("eth0", &ds.netmask);
+ netlib_setnetmask("eth0", &ds.netmask);
}
if (ds.default_router.s_addr != 0)
{
- uip_setdraddr("eth0", &ds.default_router);
+ netlib_setdraddr("eth0", &ds.default_router);
}
if (ds.dnsaddr.s_addr != 0)