Categorygithub.com/Code-Hex/gvisor-vmnet
modulepackage
0.0.0-20240122100406-1579d1a4ee55
Repository: https://github.com/code-hex/gvisor-vmnet.git
Documentation: pkg.go.dev

# Functions

New initializes new network stack with a network gateway.
WithDNSConfig is an option to configure DNS.
WithGatewayMACAddress is an option to specify the gateway MAC address.
WithLogger is an option for debug logging which is using the given logger.
WithMTU is an option to set MTU (maximum transmission unit) between the gateway and some link devices.
WithPcapFile is an option to create a pcap file based on the given file for writing packet data.
WithSendBufferSize is an option sets SO_SNDBUF size between ethernet device and guest system.
WithTCPIncomingForward is an option to set TCP forward from host machine to guest machine.
WithTCPMaxInFlight is an option initializes a new TCP forwarder with the given maximum number of in-flight connection attempts.
WithTCPReceiveBufferSize is an option when use initialize a new TCP forwarder with the given buffer size of TCP Recieve window.

# Structs

DHCPLease is a lease info of DHCP.
DNSConfig is a configuration to resolve DNS in the guest OS.
Gateway is a network gateway.
LinkDevice is a link device with vmnet network.
Network is network for any virtual machines.

# Type aliases

LinkDeviceOpts is a optional type for NewLinkDevice.
NetworkOpts is functional options.