Contents

ifnet_set_metric

Declaration

errno_t ifnet_set_metric(ifnet_t interface, u_int32_t metric);

Parameters

  • interface:

    The interface.

  • metric:

    The new metric.

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.

See Also

Network Kernel Extensions