arp

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: 6 Imported by: 0

Documentation

Overview

@@ @ Author : Eacher @ Date : 2023-06-29 15:13:47 @ LastEditTime : 2023-07-07 14:41:31 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /networkmanager/socket/arp/arp.go @@

Index

Constants

View Source
const (
	ETH_P_ARP  = syscall.ETH_P_ARP
	ETH_P_IP   = syscall.ETH_P_IP
	ETH_P_IPV6 = syscall.ETH_P_IPV6

	ETH_P_8021AD = syscall.ETH_P_8021AD
	ETH_P_8021Q  = syscall.ETH_P_8021Q
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArpConn

type ArpConn struct {
	*socket.Socket
	// contains filtered or unexported fields
}

func NewArpConn

func NewArpConn(name string, ifi *net.Interface) (*ArpConn, error)

func (*ArpConn) GetAllIPMAC

func (ac *ArpConn) GetAllIPMAC(out time.Duration) []*packet.ArpPacket

func (*ArpConn) Read

func (ac *ArpConn) Read(b []byte) (n int, err error)

func (*ArpConn) Request

func (ac *ArpConn) Request(ip net.IP) error

func (*ArpConn) Write

func (ac *ArpConn) Write(b []byte) error

Jump to

Keyboard shortcuts

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