summaryrefslogtreecommitdiff
path: root/apps/nshlib/README.txt
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-10-05 19:08:57 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-10-05 19:08:57 -0600
commit2b7e0d90d9f174acc184a77b93a972742dec686e (patch)
tree4a4d95140ecc5cef0c8dfd0123253e259d0a34fb /apps/nshlib/README.txt
parent1d8f6485828b1b2f924dddccd74bc225fb531d1a (diff)
downloadnuttx-2b7e0d90d9f174acc184a77b93a972742dec686e.tar.gz
nuttx-2b7e0d90d9f174acc184a77b93a972742dec686e.tar.bz2
nuttx-2b7e0d90d9f174acc184a77b93a972742dec686e.zip
Another case where we should use the routing table: There may be multiple routers on the same network. In that case, we have to search for the routing table for the router that forwards to the destination address. We do this when we determine the MAC address we want in the ARP logic
Diffstat (limited to 'apps/nshlib/README.txt')
-rw-r--r--apps/nshlib/README.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/nshlib/README.txt b/apps/nshlib/README.txt
index 2c8c5f615..7a12ad4b4 100644
--- a/apps/nshlib/README.txt
+++ b/apps/nshlib/README.txt
@@ -242,6 +242,10 @@ o addroute <target> <netmask> <router>
to an external network characterized by the <target> IP address and
a network mask <netmask>
+ Example:
+
+ nsh> addroute 1.1.1.1 2.2.2.2 3.3.3.3
+
o base64dec [-w] [-f] <string or filepath>
o base64dec [-w] [-f] <string or filepath>
@@ -324,13 +328,17 @@ o dd if=<infile> of=<outfile> [bs=<sectsize>] [count=<sectors>] [skip=<sectors>]
brw-rw-rw- 0 ram0
nsh> dd if=/dev/ram0 of=/dev/null
-o delroute <target> <netmask> <router>
+o delroute <target> <netmask>
This command removes an entry from the routing table. The entry
removed will be the first entry in the routing table that matches
the external network characterized by the <target> IP address and
the network mask <netmask>
+ Example:
+
+ nsh> delroute 1.1.1.1 2.2.2.2
+
o df
Show the state of each mounted volume.