Skip to content
Snippets Groups Projects
Commit 95be6425 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Another case where we should use the routing table: There may be multiple...

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
parent 28915376
No related branches found
No related tags found
No related merge requests found
...@@ -242,6 +242,10 @@ o addroute <target> <netmask> <router> ...@@ -242,6 +242,10 @@ o addroute <target> <netmask> <router>
to an external network characterized by the <target> IP address and to an external network characterized by the <target> IP address and
a network mask <netmask> 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>
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>] ...@@ -324,13 +328,17 @@ o dd if=<infile> of=<outfile> [bs=<sectsize>] [count=<sectors>] [skip=<sectors>]
brw-rw-rw- 0 ram0 brw-rw-rw- 0 ram0
nsh> dd if=/dev/ram0 of=/dev/null 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 This command removes an entry from the routing table. The entry
removed will be the first entry in the routing table that matches removed will be the first entry in the routing table that matches
the external network characterized by the <target> IP address and the external network characterized by the <target> IP address and
the network mask <netmask> the network mask <netmask>
Example:
nsh> delroute 1.1.1.1 2.2.2.2
o df o df
Show the state of each mounted volume. Show the state of each mounted volume.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment