Contents

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_t

Parameters

  • 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