icmp34relay

package
v0.0.0-...-095c035 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 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 []netip.Addr) (*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) PacketsForwardedIPv4

func (r *Relay) PacketsForwardedIPv4() uint64

PacketsForwardedIPv4 returns the number of forwarded packets of IPv4 address family.

func (*Relay) PacketsForwardedIPv6

func (r *Relay) PacketsForwardedIPv6() uint64

PacketsForwardedIPv6 returns the number of forwarded packets of IPv6 address family.

func (*Relay) Start

func (r *Relay) Start() error

Start starts the relay

Jump to

Keyboard shortcuts

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