Categorygithub.com/mdlayher/arp
modulepackage
0.0.0-20220512170110-6706a2966875
Repository: https://github.com/mdlayher/arp.git
Documentation: pkg.go.dev

# README

arp Build Status GoDoc Go Report Card

Package arp implements the ARP protocol, as described in RFC 826. MIT Licensed.

Portions of this code are taken from the Go standard library. The Go standard library is Copyright (c) 2012 The Go Authors. All rights reserved. The Go license can be found at https://golang.org/LICENSE.

# Packages

No description provided by the author

# Functions

Dial creates a new Client using the specified network interface.
New creates a new Client using the specified network interface and net.PacketConn.
NewPacket creates a new Packet from an input Operation and hardware/IPv4 address values for both a sender and target.

# Constants

Operation constants which indicate an ARP request or reply.
Operation constants which indicate an ARP request or reply.

# Variables

ErrInvalidHardwareAddr is returned when one or more invalid hardware addresses are passed to NewPacket.
ErrInvalidIP is returned when one or more invalid IPv4 addresses are passed to NewPacket.

# Structs

A Client is an ARP client, which can be used to send and receive ARP packets.
A Packet is a raw ARP packet, as described in RFC 826.

# Type aliases

An Operation is an ARP operation, such as request or reply.