Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Testing Statistics-Gathering

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.



< Previous PageNext Page > Hide TOC


Last updated: 2008-03-11




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice