Contents

SCNetworkInterfaceForceConfigurationRefresh(_:)

Sends a notification to interested network configuration agents to immediately retry their configuration.

Declaration

func SCNetworkInterfaceForceConfigurationRefresh(_ interface: SCNetworkInterface) -> Bool

Parameters

  • interface:

    The desired network interface.

Return Value

TRUE if the notification was sent; otherwise, FALSE.

Discussion

Calling this function causes the DHCP client to contact the DHCP server immediately rather than waiting until its timeout has expired. The caller uses this function to inform the system that the network infrastructure or configuration has changed.

Note that this function requires root privilege; alternatively, you can pass in an interface that is derived from a sequence of calls to:

See Also

Configuring Network Interfaces