diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-17 07:21:55 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-17 07:21:55 -0600 |
commit | e7f2b413e8291873d51792c56e629f9a127641ad (patch) | |
tree | 365df98d0abbefa65e8d060dc955dd287c2d5862 /apps/examples/xmlrpc | |
parent | 4d15bcb63e0f5c613a424b564d704f13f858e960 (diff) | |
download | px4-nuttx-e7f2b413e8291873d51792c56e629f9a127641ad.tar.gz px4-nuttx-e7f2b413e8291873d51792c56e629f9a127641ad.tar.bz2 px4-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/xmlrpc')
-rw-r--r-- | apps/examples/xmlrpc/xmlrpc_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/examples/xmlrpc/xmlrpc_main.c b/apps/examples/xmlrpc/xmlrpc_main.c index f6c278f8b..a93c89fc7 100644 --- a/apps/examples/xmlrpc/xmlrpc_main.c +++ b/apps/examples/xmlrpc/xmlrpc_main.c @@ -331,7 +331,7 @@ static int xmlrpc_netinit(void) { struct dhcpc_state ds; (void)dhcpc_request(handle, &ds); - netlib_sethostaddr("eth1", &ds.ipaddr); + netlib_sethostaddr("eth0", &ds.ipaddr); if (ds.netmask.s_addr != 0) { |