gratuitous_arp

package module
v0.0.0-...-50c82e3 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 6 Imported by: 0

README

Allows sending gratuitous ARP replies on interfaces.

Requires kernel to be built with AF_PACKET.

Documentation

Overview

Allows sending of gratuitous ARP replies on an interface. This potentially populate the ARP table of the peer, speeding up connectivity between the two peers if they have not yet communicated.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArpNetInterfaces

func ArpNetInterfaces() ([]net.Interface, error)

Returns interfaces which are acceptable to send ARP replies on:

  • They must not be Loopback
  • They must be up
  • They must have at least 1 IPv4 address

func SendGarpOnIface

func SendGarpOnIface(ifa net.Interface) error

Sends a gratuitous ARP on a net.Interface, provided the interface meets the same criteria as in ArpNetInterfaces.

Types

This section is empty.

Jump to

Keyboard shortcuts

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