summaryrefslogtreecommitdiff
path: root/apps/examples/tcpecho
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-17 07:21:55 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-17 07:21:55 -0600
commite7f2b413e8291873d51792c56e629f9a127641ad (patch)
tree365df98d0abbefa65e8d060dc955dd287c2d5862 /apps/examples/tcpecho
parent4d15bcb63e0f5c613a424b564d704f13f858e960 (diff)
downloadnuttx-e7f2b413e8291873d51792c56e629f9a127641ad.tar.gz
nuttx-e7f2b413e8291873d51792c56e629f9a127641ad.tar.bz2
nuttx-e7f2b413e8291873d51792c56e629f9a127641ad.zip
These examples all set the IP address of eth1 is DHCP is enabled. That can't be right???
Diffstat (limited to 'apps/examples/tcpecho')
-rw-r--r--apps/examples/tcpecho/tcpecho_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/examples/tcpecho/tcpecho_main.c b/apps/examples/tcpecho/tcpecho_main.c
index 7dbb9dd72..34ca3c063 100644
--- a/apps/examples/tcpecho/tcpecho_main.c
+++ b/apps/examples/tcpecho/tcpecho_main.c
@@ -170,7 +170,7 @@ static int tcpecho_netsetup()
return ERROR;
}
- netlib_sethostaddr("eth1", &ds.ipaddr);
+ netlib_sethostaddr("eth0", &ds.ipaddr);
if (ds.netmask.s_addr != 0)
{
@@ -364,7 +364,7 @@ static int tcpecho_server(void)
****************************************************************************/
/****************************************************************************
- * discover_main
+ * tcpecho_main
****************************************************************************/
#ifdef CONFIG_BUILD_KERNEL