summaryrefslogtreecommitdiff
path: root/apps/examples/poll
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/poll
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/poll')
-rw-r--r--apps/examples/poll/net_listener.c8
-rw-r--r--apps/examples/poll/net_reader.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/apps/examples/poll/net_listener.c b/apps/examples/poll/net_listener.c
index a71b03942..4094753a5 100644
--- a/apps/examples/poll/net_listener.c
+++ b/apps/examples/poll/net_listener.c
@@ -304,23 +304,23 @@ static void net_configure(void)
mac[3] = 0xad;
mac[4] = 0xbe;
mac[5] = 0xef;
- uip_setmacaddr("eth0", mac);
+ netlib_setmacaddr("eth0", mac);
#endif
/* Set up our host address */
addr.s_addr = HTONL(CONFIG_EXAMPLES_POLL_IPADDR);
- uip_sethostaddr("eth0", &addr);
+ netlib_sethostaddr("eth0", &addr);
/* Set up the default router address */
addr.s_addr = HTONL(CONFIG_EXAMPLES_POLL_DRIPADDR);
- uip_setdraddr("eth0", &addr);
+ netlib_setdraddr("eth0", &addr);
/* Setup the subnet mask */
addr.s_addr = HTONL(CONFIG_EXAMPLES_POLL_NETMASK);
- uip_setnetmask("eth0", &addr);
+ netlib_setnetmask("eth0", &addr);
}
/****************************************************************************
diff --git a/apps/examples/poll/net_reader.c b/apps/examples/poll/net_reader.c
index 0b0c108d8..812600d77 100644
--- a/apps/examples/poll/net_reader.c
+++ b/apps/examples/poll/net_reader.c
@@ -97,23 +97,23 @@ static void net_configure(void)
mac[3] = 0xad;
mac[4] = 0xbe;
mac[5] = 0xef;
- uip_setmacaddr("eth0", mac);
+ netlib_setmacaddr("eth0", mac);
#endif
/* Set up our host address */
addr.s_addr = HTONL(CONFIG_EXAMPLES_POLL_IPADDR);
- uip_sethostaddr("eth0", &addr);
+ netlib_sethostaddr("eth0", &addr);
/* Set up the default router address */
addr.s_addr = HTONL(CONFIG_EXAMPLES_POLL_DRIPADDR);
- uip_setdraddr("eth0", &addr);
+ netlib_setdraddr("eth0", &addr);
/* Setup the subnet mask */
addr.s_addr = HTONL(CONFIG_EXAMPLES_POLL_NETMASK);
- uip_setnetmask("eth0", &addr);
+ netlib_setnetmask("eth0", &addr);
}
/****************************************************************************