IONetworkInterface.h



Typedefs

BPF_FUNC

typedef  int  (*BPF_FUNC)(struct  ifnet  *,  struct  mbuf  *);

Prototype of the BPF tap handler. This will disappear when the appropriate DLIL header file is included.


IOOutputAction

typedef UInt32 (OSObject::*IOOutputAction)(struct mbuf * m);

Prototype for an output packet handler that will receive all outbound packets sent to the interface from the network layer. This handler is registered by calling registerOutputHandler().

Parameters

NameDescription
mA packet mbuf.

IOOutputHandler

typedef  struct
{
  OSObject  *  target;
  IOOutputAction  output;
  IORequestAction  request;
}  IOOutputHandler;

A structure that encapsulates information about a target and its output packet and request handlers.

Fields

NameDescription
targetThe target object that implements the handlers.
outputAn IOOutputAction handler.
outputAn IORequestAction handler.

IORequestAction

typedef IOReturn (OSObject::*IORequestAction)(OSObject * sender,
                                              UInt32     type,
                                              void *     arg0,
                                              void *     arg1,
                                              void *     arg2,
                                              void *     arg3);

Prototype for a request handler that will handle all requests originated from the interface.

Parameters

NameDescription
senderThe sender of the request. This is usually the interface object that called the handler.
typeRequest type.
arg0Request argument.
arg1Request argument.
arg2Request argument.
arg3Request argument.

© 2000 Apple Computer, Inc. — (Last Updated 2/23/2000)