arp

package
Version: v0.0.0-...-0e9ae86 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2015 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Type_Request = 1
	Type_Reply   = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ARP

type ARP struct {
	HWType      uint16
	ProtoType   uint16
	HWLength    uint8
	ProtoLength uint8
	Operation   uint16
	HWSrc       net.HardwareAddr
	IPSrc       net.IP
	HWDst       net.HardwareAddr
	IPDst       net.IP
}

func New

func New(opt int) (*ARP, error)

func (*ARP) Len

func (a *ARP) Len() (n uint16)

func (*ARP) MarshalBinary

func (a *ARP) MarshalBinary() (data []byte, err error)

func (*ARP) UnmarshalBinary

func (a *ARP) UnmarshalBinary(data []byte) error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL