Contents

ifnet_stat_increment_in

Declaration

errno_t ifnet_stat_increment_in(ifnet_t interface, u_int32_t packets_in, u_int32_t bytes_in, u_int32_t errors_in);

Parameters

  • interface:

    The interface.

  • packets_in:

    The number of additional packets received.

  • bytes_in:

    The number of additional bytes received.

  • errors_in:

    The number of additional receive 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 inbound interface counts. The most efficient time to update these counts is when calling ifnet_input.

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

See Also

Network Kernel Extensions