summaryrefslogtreecommitdiff
path: root/apps/netutils/dhcpc
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/netutils/dhcpc
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/netutils/dhcpc')
-rw-r--r--apps/netutils/dhcpc/dhcpc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/netutils/dhcpc/dhcpc.c b/apps/netutils/dhcpc/dhcpc.c
index 2033be31d..dab1ed8e3 100644
--- a/apps/netutils/dhcpc/dhcpc.c
+++ b/apps/netutils/dhcpc/dhcpc.c
@@ -447,7 +447,7 @@ int dhcpc_request(void *handle, struct dhcpc_state *presult)
/* Save the currently assigned IP address (should be INADDR_ANY) */
oldaddr.s_addr = 0;
- uip_gethostaddr("eth0", &oldaddr);
+ netlib_gethostaddr("eth0", &oldaddr);
/* Loop until we receive the lease (or an error occurs) */
@@ -456,7 +456,7 @@ int dhcpc_request(void *handle, struct dhcpc_state *presult)
/* Set the IP address to INADDR_ANY. */
newaddr.s_addr = INADDR_ANY;
- (void)uip_sethostaddr("eth0", &newaddr);
+ (void)netlib_sethostaddr("eth0", &newaddr);
/* Loop sending DISCOVER until we receive an OFFER from a DHCP
* server. We will lock on to the first OFFER and decline any
@@ -495,7 +495,7 @@ int dhcpc_request(void *handle, struct dhcpc_state *presult)
* out of the loop.
*/
- (void)uip_sethostaddr("eth0", &presult->ipaddr);
+ (void)netlib_sethostaddr("eth0", &presult->ipaddr);
state = STATE_HAVE_OFFER;
}
}
@@ -587,7 +587,7 @@ int dhcpc_request(void *handle, struct dhcpc_state *presult)
{
/* An error other than a timeout was received */
- (void)uip_sethostaddr("eth0", &oldaddr);
+ (void)netlib_sethostaddr("eth0", &oldaddr);
return ERROR;
}
}