Contents

ifnet_set_stat

Declaration

errno_t ifnet_set_stat(ifnet_t interface, const struct ifnet_stats_param *stats);

Parameters

  • interface:

    The interface.

  • counts:

    The new stats values.

Return Value

0 on success otherwise the errno error.

Discussion

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.

The one exception would be the case where a kext wants to zero all of the counters.

See Also

Network Kernel Extensions