forked from Imagelibrary/rtems
2008-03-29 Chris Johns <chrisj@rtems.org>
* networking/testing.t: Cleaned up the patch from Ian.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2008-03-29 Chris Johns <chrisj@rtems.org>
|
||||||
|
|
||||||
|
* networking/testing.t: Cleaned up the patch from Ian.
|
||||||
|
|
||||||
2008-03-29 Chris Johns <chrisj@rtems.org>
|
2008-03-29 Chris Johns <chrisj@rtems.org>
|
||||||
|
|
||||||
* networking/testing.t: Patch from Ian Caddy to document the
|
* networking/testing.t: Patch from Ian Caddy to document the
|
||||||
|
|||||||
@@ -106,9 +106,11 @@ is a list of them:
|
|||||||
This command shows the current routing information for the TCP/IP stack. Following is an
|
This command shows the current routing information for the TCP/IP stack. Following is an
|
||||||
example showing the output of this command.
|
example showing the output of this command.
|
||||||
|
|
||||||
@code{Destination Gateway/Mask/Hw Flags Refs Use Expire Interface
|
@example
|
||||||
|
Destination Gateway/Mask/Hw Flags Refs Use Expire Interface
|
||||||
10.0.0.0 255.0.0.0 U 0 0 17 smc1
|
10.0.0.0 255.0.0.0 U 0 0 17 smc1
|
||||||
127.0.0.1 127.0.0.1 UH 0 0 0 lo0}
|
127.0.0.1 127.0.0.1 UH 0 0 0 lo0
|
||||||
|
@end example
|
||||||
|
|
||||||
In this example, there is only one network interface with an IP address of 10.8.1.1. This
|
In this example, there is only one network interface with an IP address of 10.8.1.1. This
|
||||||
link is currently not up.
|
link is currently not up.
|
||||||
@@ -118,48 +120,58 @@ loopback interface (127.0.0.1).
|
|||||||
|
|
||||||
Since the stack comes from BSD, this command is very similar to the netstat command. For more
|
Since the stack comes from BSD, this command is very similar to the netstat command. For more
|
||||||
details on the network routing please look the following
|
details on the network routing please look the following
|
||||||
URL: (@code{http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-routing.html})
|
URL: (@url{http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-routing.html})
|
||||||
|
|
||||||
For a quick reference to the flags, see the table below:
|
For a quick reference to the flags, see the table below:
|
||||||
|
|
||||||
U Up: The route is active.
|
@table @samp
|
||||||
H Host: The route destination is a single host.
|
@item U
|
||||||
G Gateway: Send anything for this destination on to this remote
|
Up: The route is active.
|
||||||
system, which will figure out from there where to send it.
|
@item H
|
||||||
S Static: This route was configured manually, not automatically
|
Host: The route destination is a single host.
|
||||||
generated by the system.
|
@item G
|
||||||
C Clone: Generates a new route based upon this route for machines
|
Gateway: Send anything for this destination on to this remote system, which
|
||||||
we connect to. This type of route is normally used for local
|
will figure out from there where to send it.
|
||||||
networks.
|
@item S
|
||||||
W WasCloned: Indicated a route that was auto-configured based upon
|
Static: This route was configured manually, not automatically generated by the
|
||||||
a local area network (Clone) route.
|
system.
|
||||||
L Link: Route involves references to Ethernet hardware.
|
@item C
|
||||||
|
Clone: Generates a new route based upon this route for machines we connect
|
||||||
|
to. This type of route is normally used for local networks.
|
||||||
|
@item W
|
||||||
|
WasCloned: Indicated a route that was auto-configured based upon a local area
|
||||||
|
network (Clone) route.
|
||||||
|
@item L
|
||||||
|
Link: Route involves references to Ethernet hardware.
|
||||||
|
@end table
|
||||||
|
|
||||||
@item @code{mbuf}
|
@item @code{mbuf}
|
||||||
|
|
||||||
This command shows the current MBUF statistics. An example of the command is shown below:
|
This command shows the current MBUF statistics. An example of the command is shown below:
|
||||||
|
|
||||||
@code{************ MBUF STATISTICS ************
|
@example
|
||||||
|
************ MBUF STATISTICS ************
|
||||||
mbufs:4096 clusters: 256 free: 241
|
mbufs:4096 clusters: 256 free: 241
|
||||||
drops: 0 waits: 0 drains: 0
|
drops: 0 waits: 0 drains: 0
|
||||||
free:4080 data:16 header:0 socket:0
|
free:4080 data:16 header:0 socket:0
|
||||||
pcb:0 rtable:0 htable:0 atable:0
|
pcb:0 rtable:0 htable:0 atable:0
|
||||||
soname:0 soopts:0 ftable:0 rights:0
|
soname:0 soopts:0 ftable:0 rights:0
|
||||||
ifaddr:0 control:0 oobdata:0
|
ifaddr:0 control:0 oobdata:0
|
||||||
}
|
@end example
|
||||||
|
|
||||||
@item @code{if}
|
@item @code{if}
|
||||||
|
|
||||||
This command shows the current statistics for your Ethernet driver as long as the ioctl hook
|
This command shows the current statistics for your Ethernet driver as long as the ioctl hook
|
||||||
@code{SIO_RTEMS_SHOW_STATS} has been implemented. Below is an example:
|
@code{SIO_RTEMS_SHOW_STATS} has been implemented. Below is an example:
|
||||||
|
|
||||||
@code{************ INTERFACE STATISTICS ************
|
@example
|
||||||
|
************ INTERFACE STATISTICS ************
|
||||||
***** smc1 *****
|
***** smc1 *****
|
||||||
Ethernet Address: 00:12:76:43:34:25
|
Ethernet Address: 00:12:76:43:34:25
|
||||||
Address:10.8.1.1 Broadcast Address:10.255.255.255 Net mask:255.0.0.0
|
Address:10.8.1.1 Broadcast Address:10.255.255.255 Net mask:255.0.0.0
|
||||||
Flags: Up Broadcast Running Simplex
|
Flags: Up Broadcast Running Simplex
|
||||||
Send queue limit:50 length:0 Dropped:0
|
Send queue limit:50 length:0 Dropped:0
|
||||||
SMC91C111 RTEMS driver A0.01 11/03/2002 Ian Caddy (ianc@microsol.iinet.net.au)
|
SMC91C111 RTEMS driver A0.01 11/03/2002 Ian Caddy (ianc@@microsol.iinet.net.au)
|
||||||
Rx Interrupts:0 Not First:0 Not Last:0
|
Rx Interrupts:0 Not First:0 Not Last:0
|
||||||
Giant:0 Runt:0 Non-octet:0
|
Giant:0 Runt:0 Non-octet:0
|
||||||
Bad CRC:0 Overrun:0 Collision:0
|
Bad CRC:0 Overrun:0 Collision:0
|
||||||
@@ -171,7 +183,7 @@ SMC91C111 RTEMS driver A0.01 11/03/2002 Ian Caddy (ianc@microsol.iinet.net.au)
|
|||||||
Address:127.0.0.1 Net mask:255.0.0.0
|
Address:127.0.0.1 Net mask:255.0.0.0
|
||||||
Flags: Up Loopback Running Multicast
|
Flags: Up Loopback Running Multicast
|
||||||
Send queue limit:50 length:0 Dropped:0
|
Send queue limit:50 length:0 Dropped:0
|
||||||
}
|
@end example
|
||||||
|
|
||||||
@item @code{ip}
|
@item @code{ip}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user