Commit Graph

606 Commits

Author SHA1 Message Date
Gregory Nutt
bb6877ed78 apps/nshlib: Fix compile error when CONFIG_NSH_DISABLESCRIPT is not defined. The field np_flags does not exist if scripting is disabled. 2018-01-22 08:32:40 -06:00
Gregory Nutt
e2e53117a5 Remove some section headers when the sections are empty. 2018-01-13 08:35:44 -06:00
Gregory Nutt
661718ee19 apps/nshlib: Add irqinfo command. 2018-01-12 17:58:44 -06:00
Gregory Nutt
d96c236b31 Revert "apps/nshlib: restore space delimiter that was removed in last change to the NSH echo command."
This reverts commit 7cdf9b07d8.
2018-01-10 07:53:03 -06:00
Gregory Nutt
7cdf9b07d8 apps/nshlib: restore space delimiter that was removed in last change to the NSH echo command. 2018-01-10 07:46:24 -06:00
Gregory Nutt
99512b90db apps/nshlib: truncate command will now use ftruncate (vs. truncate) if it had to create the file with creat(). 2018-01-10 07:26:21 -06:00
Masayuki Ishikawa
8ecf618a4d apps/nshlib: Add support for '-n' option to the echo command. 2018-01-10 07:26:20 -06:00
Masayuki Ishikawa
bd6bf35ffd nshlib/nsh_telnetd.c: Add support for telnet character mode.
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2018-01-10 07:15:16 +09:00
Gregory Nutt
7a2aac8876 apps/nshlib: Add support for a truncate command. This will be used to test the new ftruncate file system support. 2018-01-04 12:52:17 -06:00
Gregory Nutt
626f41084b apps/nshlib: Correct error introduced to conditional compilation 2017-11-14 08:42:16 -06:00
Gregory Nutt
e37f4b7004 apps/nshlib: Big simplification of last change. /proc/kmm, umm, and progmem have been replaced with a single procfs file called /proc/meminfo. The NSH free command now degenerates to a simple dump of /proc/meminfo. 2017-11-13 13:35:04 -06:00
Gregory Nutt
0cda4cec15 apps/nshlib: The free commands no longer used mallinfo() to get the state of the use heap. Two reasons: That is not useful information in the kernel build. And (2) there are other memory resources of interest in other configurations such as the Kernel heap in PROTECTED and KERNEL builds, and the prog mem uses when FLASH is used to hold modifiable data. The free command has been extended to just dump the content of procfs entries and to include all of these other memory resources of the procfs entries are available. 2017-11-13 12:55:03 -06:00
Dmitriy Linikov
dea8d93f64 Merged in hardlulz/modem-3.0-nuttx-apps/fix-compile-nsh_routecmds (pull request #118)
Fixed the compilation of nsh_routecmds.c, broken after commit 6b9d23c6aa

Approved-by: Gregory Nutt <gnutt@nuttx.org>
2017-11-03 12:28:19 +00:00
Gregory Nutt
7556eb3814 nshlib/: Fix some botched conditional compilation. 2017-11-02 17:13:49 -06:00
DL
bf209bcf1d Fixed misprint in cmd_wget 2017-11-01 06:18:40 +03:00
Gregory Nutt
ef353ed632 Fix parsing of empty strings when CONFIG_NSH_CMDPARMS is not defined. Problem noted by Juha Niskanen. 2017-10-27 06:41:26 -06:00
Gregory Nutt
62f7838c5e nshlib: Tighten up some conditional logic 2017-10-26 16:07:42 -06:00
Gregory Nutt
40d9701ea0 nshlib: Remove a dangling function that is no longer used after last mount/df chagnes 2017-10-26 13:38:30 -06:00
Gregory Nutt
1f1d114901 Update some comments 2017-10-26 13:31:57 -06:00
Gregory Nutt
3788928cbf nshlib: df command no long uses the non-standard OS interface foreach_mountpoint(). No simply cats /proc/fs/blocks or /proc/fs/usage. 2017-10-26 13:28:37 -06:00
Gregory Nutt
20076688c2 nshlib: mount command no long uses the non-standard OS interface foreach_mountpoint(). No simply cats /proc/fs/mount when there are no arguments to the mount command. 2017-10-26 12:17:03 -06:00
Anthony Merlino
a8bf5718f5 apps/nshlib: ifconfig improvements 2017-10-24 17:26:17 -06:00
Gregory Nutt
749ea9e881 This commit removes the ping6 command from NSH and replaces it with the apps/system/ping6 built-in command. The NSH ping6 command had to be removed because it violated the portable POSIX OS interface. The apps/system/ping6 command uses the sem-standard IPPROTO_ICMP6 socket interface.
Squashed commit of the following:

    apps/system ping and ping6:  Fix a backward test.
    apps/system/ping6: ping6 logic now builds without error.
    apps/system/ping and ping6:  Minor clean-up to configuration settings.
    apps/system/ping6:  Minor clean-up to be able to configure CONFIG_SYSTEM_PING6
    apps/nshlib:  Remove support for ping6 from NSH.
    apps/system/ping6:  Add IPPROTO_ICMPv6 ping6.  Initial commit is simply a clone of the IPPROTO_ICMP ping logic.
    Rename CONFIG_NET_ICMPv6_PING to CONFIG_NET_ICMPv6_SOCKET.
2017-10-24 11:19:41 -06:00
Gregory Nutt
bccf0092a4 nshlib: Remove some dangling IPv4 ping logic. system/ping: Add DNS hostname support. 2017-10-23 09:59:03 -06:00
Gregory Nutt
ed9dd1db53 Update a README.txt file 2017-10-23 09:22:42 -06:00
Gregory Nutt
c1ec7db8a9 This commite eliminates the ping command from NSH and replaces it with a ping 'built-in' at apps/system/ping. The original NSH version of ping violated the portable POSIX interface and, hence, had to be removed. The new system/ping command uses the new IPPROTO_ICMP AF_INET datagram sockets to implement ping.
Squashed commit of the following:

    apps/system/ping:  Fix some timing issues.
    apps/system/ping:  A few timing related corrections.
    apps/nshlib:  Remove support for the NSH 'ping' command.  The implementation of that command violated the portable POSIX interface and has been replaced with a ping 'built-in' command at apps/system/ping.
    apps/system/ping:  Add larger payload.  Verify content of echoed payload.
    apps/system/ping:  Various fixes for a clean compile
    system/ping: Add new build structure for system ping command.
2017-10-23 08:50:01 -06:00
Gregory Nutt
35ec1b9244 Squashed commit of the following:
apps/fsutils/mkfatfs:  New user-space fatfs appears to work fine.
    apps/fsutils/mkfatfs:  Move mkfatfs from the OS to here.  Not fully integrated on the intial commit.
2017-10-20 12:35:19 -06:00
Gregory Nutt
976ce0550c NSH: eliminate a warning 2017-09-27 12:05:19 -06:00
Masayuki Ishikawa
4822878990 nshlib/nsh_netcmds.c: Fix a compilation error when IPv4/IPv6 dual stack is enabled 2017-09-26 11:28:40 +09:00
Bruno Herrera
3fe720d1e2 Fixes for problems found by Coverity in the apps/ repository:
nshlib/nsh_parse.c: Avoid truncating the strcmp result into a unsigned char variable.

    nshlib/nsh_netcmds.c: Check for valid hostip before using it.

    nshlib/nsh_ddcmd.c: Fix resouce leak when 'if=' or 'of=' params are repeated in the command line.  For example:

       dd if=/dev/null if=/dev/zero of=/dev/null or
       dd if=/dev/zero of=/dev/zero of=/dev/null
2017-09-25 07:34:34 -06:00
Gregory Nutt
cdf0528933 examples/dac: Lets use printf instead of _info in application code. 2017-09-01 07:39:39 -06:00
Gregory Nutt
3367bde8fe NSH: Add conditions so that ifconfig and ifup will not be disabled if we are using only PF_IEEE802154 2017-08-21 09:32:07 -06:00
Gregory Nutt
41ce937ed0 Changes to netlib and nsh so that you build build with PF_IEEE802154 enabled and 6LoWPAN disabled. 2017-08-20 09:09:47 -06:00
Gregory Nutt
767b29335c Eliminate some warnings found in build testing. 2017-08-13 12:25:22 -06:00
Gregory Nutt
7a8561728c The last change added .PRECIOUS: $(BIN) to everyway Makefile in hopes the libapps.a will not be deleted on Control-C (unproven so far). However, $(BIN) may contain back slashes in some build platforms and that causes problems for make: It can't handle the backslashes in the .PRECIOUS dependency list. $(BIN) replaced with ../../libapp.a, where the number of ../ depends on the depth of the Makefile in the apps/ source tree. 2017-08-13 11:03:17 -06:00
Gregory Nutt
a66da34f18 All Makefiles: Add .PRECIOUS: apps/libapps.a to every Makefile. Hopefully this will end awkward problems when you Control-C out of a build and libapps.a is deleted. 2017-08-13 09:35:14 -06:00
Gregory Nutt
970e98a902 Additional changes associated with last commit. 2017-08-12 12:11:22 -06:00
Gregory Nutt
90ebda9120 Eliminate another warning about an unused function 2017-08-12 12:09:01 -06:00
Gregory Nutt
1cdf4ad8d1 Fix a warning found in build testing 2017-08-12 11:14:30 -06:00
Gregory Nutt
7a7c7ee93a Update README and fix some conditional compilation from the last commit. 2017-08-11 15:56:53 -06:00
Gregory Nutt
5dcf5620e3 NSH Library: Add a route command that will dump the content of routing table. 2017-08-11 15:33:26 -06:00
Gregory Nutt
1e23b30afe more issues with last change: netmask must be in network order. 2017-08-10 16:08:09 -06:00
Gregory Nutt
654d526a69 NSH addroute/delroute: Fix an indexing problem introduced with previous commit. 2017-08-10 11:40:12 -06:00
Gregory Nutt
52e4da1e41 NSH addroute and delroute: All expression of the netmask in IPv4 CIDR or IPv6 slash notation. This really reduces the pain of using the commands, especially for IPv6. 2017-08-10 10:30:20 -06:00
Gregory Nutt
f58768db3d NSH library: Update addroute and delroute command. The would support either IPv4 or IPv6, but not both. 2017-08-10 09:15:44 -06:00
Gregory Nutt
3b8c97747d netutils/netlib: Fix netlib_nodaddrconv() so that its return type is the same as other address conversion functions. NSH: Correct parsing of ifconfig so that you can specify the HW address without specifying the IP address. 2017-08-02 14:30:34 -06:00
Gregory Nutt
d6050d70a2 NSH library: Extend ifconfig command so that it can set variable length packet radio addresss. 2017-08-02 13:13:19 -06:00
Gregory Nutt
c343fc618e apps/netutils/netlib: Add support for PktRadio IOCTL commands. 2017-08-02 12:40:50 -06:00
Gregory Nutt
7d0037b08a NSH: Misc changes needed for PktRadio support. 2017-07-30 16:03:56 -06:00
Gregory Nutt
7441c5422f Socket I/F: Cleanup for good CONFIG_NET_PKT build. 2017-07-14 13:43:04 -06:00