Contents

ifnet_stat_increment_out

Declaration

errno_t ifnet_stat_increment_out(ifnet_t interface, u_int32_t packets_out, u_int32_t bytes_out, u_int32_t errors_out);

Parameters

  • interface:

    The interface.

  • packets_out:

    The number of additional packets sent.

  • bytes_out:

    The number of additional bytes sent.

  • errors_out:

    The number of additional send errors.

Return Value

0 on success otherwise the errno error.

Discussion

This function is intended to be called by the driver. This function allows a driver to update the outbound interface counts.

A lock protects the counts, this makes the increment functions expensive. The increment function will update the lastchanged value.

See Also

Network Kernel Extensions