If you implement general statistics-gathering in your network driver, you can verify that it is working with the netstat program. Run this program with the -I flag, followed by the name of your driver’s network interface. Here is an example:
% netstat -I en1 |
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll |
en1 1500 <Link> 00.90.27.94.8f.21 17 0 19 0 0 |
en1 1500 192.168.1 192.168.1.1 17 0 19 0 0 |
The output shows that the driver has received 17 packets (Ipkts, or incoming packets) and transmitted 19 (Opkts, or outgoing packets). See the UNIX man page for netstat for more information.
Last updated: 2008-03-11