Contents

ifnet_set_link_mib_data

Declaration

errno_t ifnet_set_link_mib_data(ifnet_t interface, void *mibData, u_int32_t mibLen);

Parameters

  • interface:

    Interface to set the unit number of.

  • mibData:

    A pointer to the data.

  • mibLen:

    Length of data pointed to.

Return Value

0 on success otherwise the errno error.

Discussion

Sets the mib link data. The ifnet_t will store the pointer you supply and copy mibLen bytes from the pointer whenever the sysctl for getting interface specific MIB data is used. Since the ifnet_t stores a pointer to your data instead of a copy, you may update the data at the address at any time.

This function is intended to be called by the driver. A kext must not call this function on an interface the kext does not own.

See Also

Network Kernel Extensions