dhcp

package
v0.0.0-...-e890a9a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLease

func GetLease(version IPVersion, iface string) ([]string, error)

GetLease is a function that retrieves the lease for the specified IP version and interface. It returns a list of string representations of the packets exchanged during the DHCP transaction and an error if any.

Types

type IPVersion

type IPVersion uint

IPVersion is a type used to distinguish between IPv4 and IPv6.

const (
	// IPv4 represents the IP version 4.
	IPv4 IPVersion = iota
	// IPv6 represents the IP version 6.
	IPv6
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL