SCNetworkConfiguration
Overview
The SCNetworkConfiguration programming interface provides access to the stored network configuration. The functions include providing access to the network-capable devices on the system, the network sets, network services, and network protocols. Note that these functions follow Core Foundation function-name conventions. A function that has “Create” or “Copy” in its name returns a reference you must release with the CFRelease function.
Note that when using the functions in this programming interface, you must call the SCPreferencesCommitChanges(_:) function to ensure that your changes are committed to permanent storage.
Topics
Configuring Ethernet Bond Interfaces
SCBondInterfaceCopyAll(_:)SCBondInterfaceCopyAvailableMemberInterfaces(_:)SCBondInterfaceCopyStatus(_:)SCBondInterfaceCreate(_:)SCBondInterfaceGetMemberInterfaces(_:)SCBondInterfaceGetOptions(_:)SCBondInterfaceRemove(_:)SCBondInterfaceSetLocalizedDisplayName(_:_:)SCBondInterfaceSetMemberInterfaces(_:_:)SCBondInterfaceSetOptions(_:_:)SCBondStatusGetInterfaceStatus(_:_:)SCBondStatusGetMemberInterfaces(_:)SCBondStatusGetTypeID()
Configuring Network Interfaces
SCNetworkInterfaceCopyAll()SCNetworkInterfaceCopyMTU(_:_:_:_:)SCNetworkInterfaceCopyMediaOptions(_:_:_:_:_:)SCNetworkInterfaceCopyMediaSubTypeOptions(_:_:)SCNetworkInterfaceCopyMediaSubTypes(_:)SCNetworkInterfaceCreateWithInterface(_:_:)SCNetworkInterfaceForceConfigurationRefresh(_:)SCNetworkInterfaceGetBSDName(_:)SCNetworkInterfaceGetConfiguration(_:)SCNetworkInterfaceGetExtendedConfiguration(_:_:)SCNetworkInterfaceGetHardwareAddressString(_:)SCNetworkInterfaceGetInterface(_:)SCNetworkInterfaceGetInterfaceType(_:)SCNetworkInterfaceGetLocalizedDisplayName(_:)SCNetworkInterfaceGetSupportedInterfaceTypes(_:)SCNetworkInterfaceGetSupportedProtocolTypes(_:)SCNetworkInterfaceGetTypeID()SCNetworkInterfaceSetConfiguration(_:_:)SCNetworkInterfaceSetExtendedConfiguration(_:_:_:)SCNetworkInterfaceSetMTU(_:_:)SCNetworkInterfaceSetMediaOptions(_:_:_:)
Configuring Network Protocols
SCNetworkProtocolGetConfiguration(_:)SCNetworkProtocolGetEnabled(_:)SCNetworkProtocolGetProtocolType(_:)SCNetworkProtocolGetTypeID()SCNetworkProtocolSetConfiguration(_:_:)SCNetworkProtocolSetEnabled(_:_:)
Configuring Network Services
SCNetworkServiceAddProtocolType(_:_:)SCNetworkServiceCopy(_:_:)SCNetworkServiceCopyAll(_:)SCNetworkServiceCopyProtocol(_:_:)SCNetworkServiceCopyProtocols(_:)SCNetworkServiceCreate(_:_:)SCNetworkServiceEstablishDefaultConfiguration(_:)SCNetworkServiceGetEnabled(_:)SCNetworkServiceGetInterface(_:)SCNetworkServiceGetName(_:)SCNetworkServiceGetServiceID(_:)SCNetworkServiceGetTypeID()SCNetworkServiceRemove(_:)SCNetworkServiceRemoveProtocolType(_:_:)SCNetworkServiceSetEnabled(_:_:)SCNetworkServiceSetName(_:_:)
Configuring Network Sets
SCNetworkSetAddService(_:_:)SCNetworkSetContainsInterface(_:_:)SCNetworkSetCopy(_:_:)SCNetworkSetCopyAll(_:)SCNetworkSetCopyCurrent(_:)SCNetworkSetCopyServices(_:)SCNetworkSetCreate(_:)SCNetworkSetGetName(_:)SCNetworkSetGetServiceOrder(_:)SCNetworkSetGetSetID(_:)SCNetworkSetGetTypeID()SCNetworkSetRemove(_:)SCNetworkSetRemoveService(_:_:)SCNetworkSetSetCurrent(_:)SCNetworkSetSetName(_:_:)SCNetworkSetSetServiceOrder(_:_:)
Configuring VLAN Interfaces
SCVLANInterfaceCopyAll(_:)SCVLANInterfaceCopyAvailablePhysicalInterfaces()SCVLANInterfaceCreate(_:_:_:)SCVLANInterfaceGetOptions(_:)SCVLANInterfaceGetPhysicalInterface(_:)SCVLANInterfaceGetTag(_:)SCVLANInterfaceRemove(_:)SCVLANInterfaceSetLocalizedDisplayName(_:_:)SCVLANInterfaceSetOptions(_:_:)SCVLANInterfaceSetPhysicalInterfaceAndTag(_:_:_:)
Data Types
SCNetworkInterfaceSCBondInterfaceSCBondStatusSCVLANInterfaceSCNetworkProtocolSCNetworkServiceSCNetworkSet
Constants
See Also
Reference
SCDynamicStoreSCDynamicStoreCopySpecificSCDynamicStoreKeySCNetworkSCNetworkConnectionSCNetworkReachabilitySCPreferencesSCPreferencesPathSCPreferencesSetSpecificSCSchemaDefinitionsSystem ConfigurationSystemConfiguration EnumerationsSystemConfiguration ConstantsSystemConfiguration FunctionsSystemConfiguration Data Types