summaryrefslogtreecommitdiff
path: root/apps/nshlib
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-02 16:04:25 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-02 16:04:25 -0600
commitd103465a456ac87392afd42dbfebd3252ccbf2c6 (patch)
tree08dbfc80efa9d36da0859d15c514a7d86165625e /apps/nshlib
parent7668388eb7fd1960efaa409e3191cc7b7d5cb014 (diff)
downloadnuttx-d103465a456ac87392afd42dbfebd3252ccbf2c6.tar.gz
nuttx-d103465a456ac87392afd42dbfebd3252ccbf2c6.tar.bz2
nuttx-d103465a456ac87392afd42dbfebd3252ccbf2c6.zip
NET: Rename uiplib/UIPLIB to netlib/NETLIB
Diffstat (limited to 'apps/nshlib')
-rw-r--r--apps/nshlib/nsh_netcmds.c10
-rw-r--r--apps/nshlib/nsh_netinit.c2
-rw-r--r--apps/nshlib/nsh_routecmds.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/apps/nshlib/nsh_netcmds.c b/apps/nshlib/nsh_netcmds.c
index 53efb26e4..b05b547f7 100644
--- a/apps/nshlib/nsh_netcmds.c
+++ b/apps/nshlib/nsh_netcmds.c
@@ -69,18 +69,18 @@
#if defined(CONFIG_NET_ICMP) && defined(CONFIG_NET_ICMP_PING) && \
!defined(CONFIG_DISABLE_CLOCK) && !defined(CONFIG_DISABLE_SIGNALS)
-# include <apps/netutils/uiplib.h>
+# include <apps/netutils/netlib.h>
# include <apps/netutils/dnsclient.h>
#endif
#if defined(CONFIG_NET_UDP) && CONFIG_NFILE_DESCRIPTORS > 0
-# include <apps/netutils/uiplib.h>
+# include <apps/netutils/netlib.h>
# include <apps/netutils/tftp.h>
#endif
#if defined(CONFIG_NET_TCP) && CONFIG_NFILE_DESCRIPTORS > 0
# ifndef CONFIG_NSH_DISABLE_WGET
-# include <apps/netutils/uiplib.h>
+# include <apps/netutils/netlib.h>
# include <apps/netutils/webclient.h>
# endif
#endif
@@ -364,7 +364,7 @@ int tftpc_parseargs(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv,
break;
case 'h':
- if (!uiplib_ipaddrconv(optarg, (FAR unsigned char*)&args->ipaddr))
+ if (!netlib_ipaddrconv(optarg, (FAR unsigned char*)&args->ipaddr))
{
nsh_output(vtbl, g_fmtarginvalid, argv[0]);
badarg = true;
@@ -672,7 +672,7 @@ int cmd_ifconfig(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
{
hw = argv[i+1];
i++;
- badarg = !uiplib_hwmacconv(hw, mac);
+ badarg = !netlib_hwmacconv(hw, mac);
}
else
{
diff --git a/apps/nshlib/nsh_netinit.c b/apps/nshlib/nsh_netinit.c
index 8461df7db..8c09319f8 100644
--- a/apps/nshlib/nsh_netinit.c
+++ b/apps/nshlib/nsh_netinit.c
@@ -46,7 +46,7 @@
#include <net/if.h>
-#include <apps/netutils/uiplib.h>
+#include <apps/netutils/netlib.h>
#if defined(CONFIG_NSH_DHCPC) || defined(CONFIG_NSH_DNS)
# include <apps/netutils/dnsclient.h>
# include <apps/netutils/dhcpc.h>
diff --git a/apps/nshlib/nsh_routecmds.c b/apps/nshlib/nsh_routecmds.c
index 9e6c4fb14..5ca96a5f4 100644
--- a/apps/nshlib/nsh_routecmds.c
+++ b/apps/nshlib/nsh_routecmds.c
@@ -43,7 +43,7 @@
#include <string.h>
#include <net/route.h>
-#include <apps/netutils/uiplib.h>
+#include <apps/netutils/netlib.h>
#include "nsh.h"
#include "nsh_console.h"
@@ -108,7 +108,7 @@ int cmd_addroute(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
/* We need to have a socket (any socket) in order to perform the ioctl */
- sockfd = socket(PF_INET, UIPLIB_SOCK_IOCTL, 0);
+ sockfd = socket(PF_INET, NETLIB_SOCK_IOCTL, 0);
if (sockfd < 0)
{
nsh_output(vtbl, g_fmtcmdfailed, argv[0], "socket", NSH_ERRNO);
@@ -236,7 +236,7 @@ int cmd_delroute(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
/* We need to have a socket (any socket) in order to perform the ioctl */
- sockfd = socket(PF_INET, UIPLIB_SOCK_IOCTL, 0);
+ sockfd = socket(PF_INET, NETLIB_SOCK_IOCTL, 0);
if (sockfd < 0)
{
nsh_output(vtbl, g_fmtcmdfailed, argv[0], "socket", NSH_ERRNO);