SCNetworkInterfaceForceConfigurationRefresh(_:)
Sends a notification to interested network configuration agents to immediately retry their configuration.
Declaration
func SCNetworkInterfaceForceConfigurationRefresh(_ interface: SCNetworkInterface) -> BoolParameters
- 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:
The appropriate
SCNetworkSetCopy...function, such as SCNetworkSetCopyServices(_:)
See Also
Configuring Network Interfaces
SCNetworkInterfaceCopyAll()SCNetworkInterfaceCopyMTU(_:_:_:_:)SCNetworkInterfaceCopyMediaOptions(_:_:_:_:_:)SCNetworkInterfaceCopyMediaSubTypeOptions(_:_:)SCNetworkInterfaceCopyMediaSubTypes(_:)SCNetworkInterfaceCreateWithInterface(_:_:)SCNetworkInterfaceGetBSDName(_:)SCNetworkInterfaceGetConfiguration(_:)SCNetworkInterfaceGetExtendedConfiguration(_:_:)SCNetworkInterfaceGetHardwareAddressString(_:)SCNetworkInterfaceGetInterface(_:)SCNetworkInterfaceGetInterfaceType(_:)SCNetworkInterfaceGetLocalizedDisplayName(_:)SCNetworkInterfaceGetSupportedInterfaceTypes(_:)SCNetworkInterfaceGetSupportedProtocolTypes(_:)