Adds the network protocol of the specified type to the specified service.
SDK
- macOS 10.4+
Framework
- System
Configuration
Declaration
func SCNetworkServiceAddProtocolType(_ service: SCNetwork Service, _ protocolType: CFString) -> Bool
Parameters
service
The network service.
protocolType
The type of network protocol to add to the service.
Return Value
TRUE
if the protocol was added to the service; FALSE
if the protocol was already present or an error occurred.
Discussion
The protocol configuration is set to default values that are appropriate for the interface associated with the service.