Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupWithDHCP ¶
func SetupWithDHCP(cfg SetupConfig) (*stacks.PortStack, error)
Types ¶
type SetupConfig ¶
type SetupConfig struct { // MAC address MAC [6]byte // DHCP requested hostname. Hostname string // DHCP requested IP address. On failing to find DHCP server is used as static IP. RequestedIP string Logger *slog.Logger // Number of UDP ports to open for the stack. (we'll actually open one more than this for DHCP) UDPPorts uint16 // Number of TCP ports to open for the stack. TCPPorts uint16 }
Click to show internal directories.
Click to hide internal directories.