vmnet_network_configuration_add_dhcp_reservation(_:_:_:)
Configures a new dhcp reservation for a vmnet network.
Declaration
func vmnet_network_configuration_add_dhcp_reservation(_ config: vmnet_network_configuration_ref, _ client: UnsafePointer<ether_addr_t>, _ reservation: UnsafePointer<in_addr>) -> vmnet_return_tParameters
- config:
The network configuration object to be modified.
- client:
The mac address for which the DHCP address is reserved.
- reservation:
The DHCP address to be reserved.
Return Value
VMNET_SUCCESS on success, an error otherwise.
Discussion
This method reserves a DHCP address for a client with certain MAC address. The framework doesn’t allow modifying reservation while a network is active.
See Also
Customizing a network configuration
vmnet_network_configuration_refvmnet_network_configuration_add_port_forwarding_rule(_:_:_:_:_:_:)vmnet_network_configuration_disable_router_advertisement(_:)vmnet_network_configuration_disable_nat66(_:)vmnet_network_configuration_disable_nat44(_:)vmnet_network_configuration_disable_dns_proxy(_:)vmnet_network_configuration_disable_dhcp(_:)vmnet_nat66_prefix_length_keyvmnet_nat66_prefix_keyvmnet_port_forwarding_rule_get_details(_:_:_:_:_:)vmnet_network_configuration_set_external_interface(_:_:)vmnet_network_configuration_set_ipv4_subnet(_:_:_:)vmnet_network_configuration_set_ipv6_prefix(_:_:_:)vmnet_network_configuration_set_mtu(_:_:)vmnet_network_get_ipv6_prefix(_:_:_:)