|
|
Log In | Not a Member? |
Contact ADC |
|
ADC Home > Reference Library > Reference > Hardware & Drivers > I/O Kit Framework Reference
|
IONetworkLib.h |
| Includes: |
This header defines functions you use to open and close connections to IONetworkInterface objects
and to read from and write to the buffers of network data objects.
IONetworkClose |
Close the connection to an IONetworkInterface object.
IOReturn IONetworkClose( io_connect_t con);
IONetworkGetDataCapacity |
Get the capacity (in bytes) of a network data object.
IOReturn IONetworkGetDataCapacity( io_connect_t conObject, IONDHandle dataHandle, UInt32 *capacityP);
conObjectdataHandlecapacityPkIOReturnSuccess on success, or an error code otherwise.
IONetworkGetDataHandle |
Get the handle of a network data object with the given name.
IOReturn IONetworkGetDataHandle( io_connect_t conObject, const char *dataName, IONDHandle *dataHandleP);
conObjectdataNamedataHandlePkIOReturnSuccess on success, or an error code otherwise.
IONetworkGetPacketFiltersMask |
Get the packet filters for a given filter group.
IOReturn IONetworkGetPacketFiltersMask( io_connect_t connect, const io_name_t filterGroup, UInt32 *filtersMask, IOOptionBits options );
connectfilterGroupfiltersMaskoptionsAn IOReturn error code.
A network controller may support a number of packets filters that can accept or reject a type of packet seen on the network. A filter group identifies a set of related filters, such as all filters that will allow a packet to pass upstream based on the destination address encoded within the packet. This function allows an user-space program to get the filtering performed by a given filter group.
IONetworkOpen |
Open a connection to an IONetworkInterface object. An IONetworkUserClient object is created to manage the connection.
IOReturn IONetworkOpen( io_object_t obj, io_connect_t *con);
IONetworkReadData |
Read the buffer of a network data object.
IOReturn IONetworkReadData( io_connect_t conObj, IONDHandle dataHandle, UInt8 *destBuf, UInt32 *inOutSizeP);
conObjdataHandledestBufinOutSizePkIOReturnSuccess on success, or an error code otherwise.
IONetworkResetData |
Fill the buffer of a network data object with zeroes.
IOReturn IONetworkResetData( io_connect_t conObject, IONDHandle dataHandle);
conObjectdataHandlekIOReturnSuccess on success, or an error code otherwise.
IONetworkSetPacketFiltersMask |
Set the packet filters for a given filter group.
IOReturn IONetworkSetPacketFiltersMask( io_connect_t connect, const io_name_t filterGroup, UInt32 filtersMask, IOOptionBits options );
connectfilterGroupfiltersMaskoptionsAn IOReturn error code.
A network controller may support a number of packets filters that can accept or reject a type of packet seen on the network. A filter group identifies a set of related filters, such as all filters that will allow a packet to pass upstream based on the destination address encoded within the packet. This function allows an user-space program to set the filtering performed by a given filter group.
IONetworkWriteData |
Write to the buffer of a network data object.
IOReturn IONetworkWriteData( io_connect_t conObj, IONDHandle dataHandle, UInt8 *srcBuf, UInt32 inSize);
conObjdataHandlesrcBufinSizekIOReturnSuccess on success, or an error code otherwise.
IONetworkPacketFilterOptions |
enum { kIONetworkSupportedPacketFilters = 0x0001 };
kIONetworkSupportedPacketFilters- Indicate the filters that are supported by the hardware.
|