TechnologiesNetworking & Connectivity

vmnet

iOSmacOStvOSwatchOSvisionOS

vmnet provides a low-level virtual network interface API for attaching virtual machines to host networking on macOS. Use it to connect a VM to the host network in shared, bridged, or host modes, selecting among the configurations described by operating_modes_t. You send and receive raw packets through vmpktdesc descriptors, respond to interface state changes reported via interface_event_t, and check the outcome of operations with the vmnet_return_t status codes.

Network Modes 1

Select how a virtual machine attaches to host networking.

  • En
    operating_modes_t
    @typedef operating_modes_t

Packet Transfer 1

Send and receive raw packets through the virtual interface.

  • St
    vmpktdesc
    @struct vmpktdesc

Interface Events 1

Observe state changes reported by the virtual network interface.

  • St
    interface_event_t
    @typedef interface_event_t

Status Codes 1

Inspect the outcome of vmnet operations.

  • En
    vmnet_return_t
    @typedef vmnet_return_t

Type Aliases 9

  • Ty
    vmnet_mode_t
  • Ty
    interface_ref
    @typedef interface_ref
  • Ty
    vmnet_start_interface_completion_handler_t
    @typedef vmnet_start_interface_completion_handler_t
  • Ty
    vmnet_interface_event_callback_t
    @typedef vmnet_interface_event_callback_t
  • Ty
    vmnet_interface_completion_handler_t
    @typedef vmnet_interface_completion_handler_t
  • Ty
    vmnet_interface_get_port_forwarding_rules_handler_t
    @typedef vmnet_interface_get_port_forwarding_rules_handler_t
  • Ty
    vmnet_interface_get_ip_port_forwarding_rules_handler_t
    @typedef vmnet_interface_get_ip_port_forwarding_rules_handler_t
  • Ty
    vmnet_network_ref
  • Ty
    vmnet_network_configuration_ref
← Networking & Connectivity