Gregory Nutt
eca2171ab5
apps/nshlib/nsh_netcmds.c: Fix some alignment in output of 'arp -t' command.
2019-11-03 20:10:56 -06:00
Gregory Nutt
400995dec6
nshlib/nsh_netcmds.c: Add a -t option to the arp command which will enable printing the entire ARP table.
2019-11-03 16:19:14 -06:00
Gregory Nutt
94a0d92b54
This commit removes the private network initialization logic from NSH and puts in a common location at apps/netutils/netinit. Now that netork initialization logic can be used by applications that do not include NSH.
...
Squashed commit of the following:
apps/nshlib: Remove NSH initialization. Now uses the common apps/netutils/netinit logic (which was cloned from nshlib to begin with).
apps/netutils/netinit: Clone network initialization logic from NSH to this directory so that it can be available for general use.
2019-04-29 10:22:56 -06:00
Gregory Nutt
fe41f72a95
Fix typo found in building testing. There will probably be a few more.
2019-02-11 13:25:48 -06:00
Gregory Nutt
9db029e318
The file system can no longer be disabled. Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS==0
2019-02-11 13:10:10 -06:00
GregoryN
3bf4b6d245
Merged altconsole into master
2018-12-08 18:53:54 -06:00
Gregory Nutt
36d6348368
apps/nslib: Try to eliminate and uninitialized variable warning.
2018-06-17 15:37:42 -06:00
Gregory Nutt
467a7980f0
apps/nshlib/: In netcommds.c, the UNUSED() macro may be applied to an undefined symbol when IPv6 is enabled but IPv4 is not.
2018-03-31 09:27:52 -06:00
DL
bf209bcf1d
Fixed misprint in cmd_wget
2017-11-01 06:18:40 +03: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
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
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
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
Gregory Nutt
d81d9c419b
Eliminat a warning when both Ethernet and 6LoWPAN are enabled; improve some naming.
2017-07-02 11:28:12 -06:00
Gregory Nutt
033b42789b
NSH: Fix some ieee 802.15.4 initialization logic. It should not set the saddr or panid; those cannot be hard-coded but must come from the coordinator.
2017-06-17 10:04:18 -06:00
Sebastien Lorquet
ea1025ead2
DHCPC: Remove hard-coded interface device. Now passed as a parameter to dhcpc_open().
2017-05-19 15:31:22 -06:00
Gregory Nutt
44ace8e1cc
6loWPAN: Replace some Rime address naming with more consistent short/exended address terminology
2017-05-04 08:21:12 -06:00
Gregory Nutt
08b2fee0fb
NSH: Needs to include tftp.h if TFTP no disabled
2017-04-29 08:42:26 -06:00
Gregory Nutt
ad608c705c
nshlib: nsh_netcmds.c should include netlib.h even if neither TCP nor UDP are enabled
2017-04-25 08:25:23 -06:00
Gregory Nutt
8369052a22
NSH library: Extend ifconfig to support 6loWPAN. Adapt to some changes in configuration variable usage.
2017-04-08 12:21:40 -06:00
Gregory Nutt
efa2de16a4
NSH: Fix some warnings about integer/pointer casts of different sizes (probably only effects 64-bit simulation)
2017-04-03 09:26:10 -06:00
Sebastien Lorquet
2cbad44f1d
This is the Pokemon patch to change all includes fronm <apps/bla/bla.h> to "bla/bla.h"
2016-07-11 10:11:18 -06:00
Gregory Nutt
65899c99e6
apps/nshlib: Change some *err() message to *info() messages if what was a *dbg() message does not indicate and error condition.
2016-06-14 14:18:07 -06:00
Gregory Nutt
586b0aa7e0
Change names of *dbg() * *err()
2016-06-11 15:51:27 -06:00
Gregory Nutt
d5c3bae6cd
apps/: Replace irqsave() with enter_critical_section(); replace irqrestore() with leave_critical_section()
2016-02-14 15:15:37 -06:00
Gregory Nutt
5642e02f77
Fix some incorrect usage of INADDR_ANY
2016-02-09 11:24:30 -06:00
Gregory Nutt
b54aa2b081
NSH: Improve an error message
2016-02-08 16:29:54 -06:00
Gregory Nutt
3df8b716dc
Remove some redundant logic
2016-02-08 16:19:21 -06:00
Gregory Nutt
1482732f18
NetLib: Move functions in netlib.c to separate files; improve some naming
2016-02-08 16:09:24 -06:00
Gregory Nutt
b8c8bea22c
Add an 'arp' command to NSH to support access to the OS ARP table
2016-02-08 14:49:05 -06:00
Gregory Nutt
6febdc60c1
Update to use 64-bit timer when available
2016-01-21 12:03:04 -06:00
Gregory Nutt
510f325ae4
nshlib: Use CONFIG_NSH_PROC_MOUNTPOINT instead of literal /proc; Move readfile() from nsh_proccmds.c to nsh_fsutils.c as nsh_readfile()
2015-11-28 07:23:08 -06:00
Gregory Nutt
0fb32570ff
apps/nshlib: Remove all references to internal OS interface netdev_foreach(). Logic in ifconfig, ifup, and ifown now use the procfs file system to examine networking status.
2015-11-27 17:47:09 -06:00
Gregory Nutt
bb88ff9b12
nshlib/: ifconfig now uses /proc/net/eth0 to display network configuration. You will need to enable the procfs file system in order to use ifconfig
2015-11-27 16:57:22 -06:00
Gregory Nutt
32b992971b
apps/nshlib: The 'ifconfig' command now uses /proc/net/stat to show network statistics. A consequence of this is that you cannot view network statistics if the procfs is not enabled and mounted at /proc
2015-11-27 13:04:11 -06:00
Gregory Nutt
f48d95e941
Use lower case labels in ifconfig driver statistics to better match other labels
2015-11-27 07:36:49 -06:00
Gregory Nutt
981e74b810
If CONFIG_NETDEV_STATISTICS=y, then ifconfig will now print network driver statistics
2015-11-26 14:43:34 -06:00
Gregory Nutt
aacfce081e
Fix several cosmetic, C coding style issues
2015-10-03 11:03:42 -06:00
Gregory Nutt
b7b943067a
NSH: Fix formatting of ifconfig Local Loopback output
2015-08-26 07:59:12 -06:00
Gregory Nutt
ce3a2dc0d4
NSH changes to work with the network local loopback device
2015-08-24 13:59:52 -06:00
Gregory Nutt
25f144fd55
NSH: Fix compile issue from all of the recent NETDB changes. If NETDB is not enabled, we need to use inet_pton() instead of gethostbyname()
2015-07-17 08:33:22 -06:00
Gregory Nutt
25d45d642f
Add an NSH nslookup command
2015-07-13 11:19:02 -06:00