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

< Previous PageNext Page > Hide TOC

Tips on Bringing Up a UNIX Network Driver

If you’ve never brought up a network driver on a UNIX operating system before, you’ll want to learn about the tools you can use to set up interfaces, test packet transmission and reception, and gather information. Detailed documentation of these tools is outside the scope of this manual, but you can always use the UNIX man command to display the standard system manual pages in a Terminal window.

This chapter assumes you’re using two machines to bring up your driver, one that has your driver, and the other to act as a source or destination for network traffic. “Figure 3-1” shows a typical setup, with the ethernet and IP addresses that will be used. The machine that contains your driver will be referred to as the target. The second machine is typically the machine you use to debug your driver, and will be referred to here as the debug host.


Figure 2-1  Two-machine target-debug setup

Two-machine target-debug setup

The IP addresses shown are merely examples. If you are debugging on the wider network (which is not recommended), you should use legal IP addresses for that network. If you are debugging over a private link between the two machines, you can choose any IP addresses, as long as you set up static address binding as shown below.

Contents:

Activating the Network Link
Testing I/O
Testing Statistics-Gathering
Unloading the Driver




< 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