icmp34relay

package
v0.0.0-...-60c9cd7 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Relay

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

Relay is a packet relay

func New

func New(ifName string, backends []net.IP) (*Relay, error)

New creates a new relay

func (*Relay) GetIfName

func (r *Relay) GetIfName() string

GetIfName gets the interface name the relay is listening on

func (*Relay) PacketsForwarded

func (r *Relay) PacketsForwarded() uint64

PacketsForwarded gets the amount of forwarded packets

func (*Relay) Start

func (r *Relay) Start() error

Start starts the relay

func (*Relay) Stop

func (r *Relay) Stop()

Stop stops the relay

func (*Relay) WaitForStop

func (r *Relay) WaitForStop()

WaitForStop waits for the relay to stop

Jump to

Keyboard shortcuts

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