summaryrefslogtreecommitdiff
path: root/apps/nshlib/nsh_netcmds.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-15 13:52:39 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-15 13:52:39 -0600
commit3e32e050072dcda6790295188d3bf7ba11e477f6 (patch)
tree0850aa6f9df6b95493be9e67bde721f3c856ea2f /apps/nshlib/nsh_netcmds.c
parent24a33a43436bcc8430c5c1e6707dedc8c2531171 (diff)
downloadnuttx-3e32e050072dcda6790295188d3bf7ba11e477f6.tar.gz
nuttx-3e32e050072dcda6790295188d3bf7ba11e477f6.tar.bz2
nuttx-3e32e050072dcda6790295188d3bf7ba11e477f6.zip
Network: Various fixes for clean compile with both Ethernet and SLIP
Diffstat (limited to 'apps/nshlib/nsh_netcmds.c')
-rw-r--r--apps/nshlib/nsh_netcmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/nshlib/nsh_netcmds.c b/apps/nshlib/nsh_netcmds.c
index f70d88e3e..f7cd9dc90 100644
--- a/apps/nshlib/nsh_netcmds.c
+++ b/apps/nshlib/nsh_netcmds.c
@@ -589,7 +589,7 @@ int cmd_ifconfig(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
FAR char *gwip = NULL;
FAR char *mask = NULL;
FAR char *tmp = NULL;
-#ifndef CONFIG_NET_SLIP
+#ifdef CONFIG_NET_ETHERNET
FAR char *hw = NULL;
#endif
#if defined(CONFIG_NSH_DHCPC) || defined(CONFIG_NSH_DNS)
@@ -661,7 +661,7 @@ int cmd_ifconfig(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
}
}
-#ifndef CONFIG_NET_SLIP
+#ifdef CONFIG_NET_ETHERNET
/* REVISIT: How will we handle Ethernet and SLIP networks together? */
else if (!strcmp(tmp, "hw"))
@@ -703,7 +703,7 @@ int cmd_ifconfig(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
return ERROR;
}
-#ifndef CONFIG_NET_SLIP
+#ifdef CONFIG_NET_ETHERNET
/* Set Hardware Ethernet MAC address */
/* REVISIT: How will we handle Ethernet and SLIP networks together? */