dhcpv4

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Overview

@@ @ Author : Eacher @ Date : 2023-06-29 15:13:47 @ LastEditTime : 2023-07-07 10:57:23 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /networkmanager/socket/dhcpv4/dhcpv4.go @@

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DhcpV4Conn

type DhcpV4Conn struct {
	*net.UDPConn
	// contains filtered or unexported fields
}

func NewDhcpV4Conn

func NewDhcpV4Conn(dev string, addr packet.IPv4) (*DhcpV4Conn, error)

func (*DhcpV4Conn) Discover

func (v4 *DhcpV4Conn) Discover() (offer *packet.DhcpV4Packet, err error)

func (*DhcpV4Conn) Request

func (v4 *DhcpV4Conn) Request(offer packet.DhcpV4Packet) (ack *packet.DhcpV4Packet, err error)

Jump to

Keyboard shortcuts

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