arp

package
v1.4.4-alpha910 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: AGPL-3.0, Apache-2.0, MIT, + 1 more Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArpReply

type ArpReply struct {
	SenderMacAddress tcpip.LinkAddress
	SenderIPAddress  tcpip.Address
	TargetMacAddress tcpip.LinkAddress
	TargetIPAddress  tcpip.Address
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(
	s *stack.Stack,
	nicID tcpip.NICID,
) (*Client, error)

func (*Client) ArpRequest

func (c *Client) ArpRequest(ctx context.Context, ipAddress string, linkAddress tcpip.LinkAddress) (*ArpReply, error)

ArpRequest sends an ARP request to the given IP address. if linkAddress is empty, the ARP request will be broadcast.

Jump to

Keyboard shortcuts

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